Commit 261ef337 authored by Marvin Scholz's avatar Marvin Scholz

Fix: Improve names and correct wrong test

parent 64fc4720
......@@ -124,11 +124,11 @@ test_endpoint "metadata-noauth" "admin/metadata"
test_endpoint "metadata-sourceauth" "admin/metadata" 401 "$AUTH_SOURCE"
test_endpoint "metadata-listenerauth" "admin/metadata" 401 "$L_AUTH"
test_endpoint "metadata-adminauth-invalid" "admin/metadata" 400 "$AUTH_ADMIN"
test_endpoint "metadata-sourceauth" "admin/metadata?mount=%2F$MOUNT_LISTENER_AUTH&mode=updinfo&charset=UTF-8&song=Test1" 200 "$AUTH_SOURCE"
test_endpoint "metadata-adminauth" "admin/metadata?mount=%2F$MOUNT_LISTENER_AUTH&mode=updinfo&charset=UTF-8&song=Test2" 200 "$AUTH_ADMIN"
test_endpoint "metadata-sourceauth" "admin/metadata?mount=%2F$MOUNT_SOURCE_AUTH&mode=updinfo&charset=UTF-8&song=Test1" 401 "$AUTH_SOURCE"
test_endpoint "metadata-adminauth" "admin/metadata?mount=%2F$MOUNT_SOURCE_AUTH&mode=updinfo&charset=UTF-8&song=Test2" 200 "$AUTH_ADMIN"
test_endpoint "metadata-mountauth" "admin/metadata?mount=%2F$MOUNT_SOURCE_AUTH&mode=updinfo&charset=UTF-8&song=Test3" 200 "$AUTH_MOUNT"
test_endpoint "metadata-sourceauth-mnt" "admin/metadata?mount=%2F$MOUNT_LISTENER_AUTH&mode=updinfo&charset=UTF-8&song=Test1" 200 "$AUTH_SOURCE"
test_endpoint "metadata-adminauth-mnt" "admin/metadata?mount=%2F$MOUNT_LISTENER_AUTH&mode=updinfo&charset=UTF-8&song=Test2" 200 "$AUTH_ADMIN"
test_endpoint "metadata-sourceauth-mnt" "admin/metadata?mount=%2F$MOUNT_SOURCE_AUTH&mode=updinfo&charset=UTF-8&song=Test1" 200 "$AUTH_SOURCE"
test_endpoint "metadata-adminauth-mnt" "admin/metadata?mount=%2F$MOUNT_SOURCE_AUTH&mode=updinfo&charset=UTF-8&song=Test2" 200 "$AUTH_ADMIN"
test_endpoint "metadata-mountauth-mnt" "admin/metadata?mount=%2F$MOUNT_SOURCE_AUTH&mode=updinfo&charset=UTF-8&song=Test3" 200 "$AUTH_MOUNT"
echo "#"
echo "# Testing admin/listmounts endpoint"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment