Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spr0cketeer
Icecast-Server
Commits
ec6a8552
Commit
ec6a8552
authored
Aug 07, 2018
by
Marvin Scholz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: Add some tests with invalid auth
parent
261ef337
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/admin.test
tests/admin.test
+3
-0
No files found.
tests/admin.test
View file @
ec6a8552
...
...
@@ -10,6 +10,7 @@ MOUNT_SOURCE_AUTH="test.ogg"
AUTH_MOUNT
=
"foobar:hackmemore"
AUTH_SOURCE
=
"source:hackme"
AUTH_ADMIN
=
"admin:hackme"
AUTH_INVALID
=
"somenonsense123:morenonsense321"
L_USER
=
"foo"
L_PASS
=
"bar"
...
...
@@ -144,6 +145,7 @@ test_endpoint "authmount-noauth" "$MOUNT_LISTENER_AUTH" 401
test_endpoint
"authmount-sourceauth"
"
$MOUNT_LISTENER_AUTH
"
401
"
$AUTH_SOURCE
"
test_endpoint
"authmount-listenerauth"
"
$MOUNT_LISTENER_AUTH
"
200
"
$L_AUTH
"
test_endpoint
"authmount-adminauth"
"
$MOUNT_LISTENER_AUTH
"
401
"
$AUTH_ADMIN
"
test_endpoint
"authmount-invalidauth"
"
$MOUNT_LISTENER_AUTH
"
401
"
$AUTH_INVALID
"
echo
"#"
echo
"# Testing mountpoint which doesn't require auth"
...
...
@@ -151,6 +153,7 @@ test_endpoint "mount-noauth" "$MOUNT_SOURCE_AUTH" 200
test_endpoint
"mount-sourceauth"
"
$MOUNT_SOURCE_AUTH
"
200
"
$AUTH_SOURCE
"
test_endpoint
"mount-listenerauth"
"
$MOUNT_SOURCE_AUTH
"
200
"
$L_AUTH
"
test_endpoint
"mount-adminauth"
"
$MOUNT_SOURCE_AUTH
"
200
"
$AUTH_ADMIN
"
test_endpoint
"mount-invalidauth"
"
$MOUNT_SOURCE_AUTH
"
200
"
$AUTH_INVALID
"
echo
"#"
echo
"# Testing admin/killsource endpoint"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment