Skip to content

Commit

Permalink
Debug 10
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Sep 12, 2024
1 parent 0e572df commit 0d51f24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Teapot_ssl_key = /var/lib/teapot/webdav/teapot.key
# Path to the Teapot log file location
log_location = /var/log/teapot/teapot.log


[Storm-webdav]
# Here is the configuration for the Storm-Webdav server for each user
# General guide to storm-webdav configuration is here: https://github.com/italiangrid/storm-webdav/blob/master/doc/storm-webdav-guide.md
Expand Down
2 changes: 1 addition & 1 deletion robot/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
curl -O https://syncandshare.desy.de/index.php/s/Ncj3Lfk8iEGYGsf/download/teapot-tests.robot
curl -O https://syncandshare.desy.de/index.php/s/Zzr8qMipiL2En5D/download/variables.py
robot --outputdir robot/output/ /tmp/teapot-tests.robot
echo "Something. "
echo "Something else. "
while true; do sleep 1; done'
networks:
- test
Expand Down
2 changes: 1 addition & 1 deletion teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def _create_user_env(username, port):
# make sure that .storm_profile is imported in the users shell init
# by e.g. adding ". ~/.storm_profile" to the user's .bash_profile
config_update = configparser.ConfigParser()
config_update.set("Storm-webdav", "username", str(username))
config_update.set('Storm-webdav', "username", str(username))
config_update.set("Storm-webdav", "port", str(port))
config_update.set("Storm-webdav", "port1", str(port + 1))
with open("/etc/teapot/config.ini", "ab", encoding="utf-8") as configfile:
Expand Down

1 comment on commit 0d51f24

@vrbanecd
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
16 16 0 32 50.00 606.565999ms

Passed Tests

Name ⏱️ Duration Suite
GET NO TOKEN 0.010 s Teapot-Tests
GET INVALID TOKEN 0.029 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.009 s Teapot-Tests
PUT REQUEST NO TOKEN 0.009 s Teapot-Tests
GET FILE NO TOKEN 0.009 s Teapot-Tests
GET FILE INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.008 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.008 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.008 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
DELETE REQUEST INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
DELETE REQUEST NO TOKEN EXTRA_AREA 0.008 s Teapot-Tests

Failed Tests

Name Message ⏱️ Duration Suite
GET USER1 Url: https://teapot:8081/default_area Expected status: 500 != 200 0.149 s Teapot-Tests
GET USER2 Url: https://teapot:8081/default_area Expected status: 500 != 200 0.079 s Teapot-Tests
PUT REQUEST USER1 Url: https://teapot:8081/default_area/TestFile1 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile1 Expected status: 500 != 204 0.019 s Teapot-Tests
PUT REQUEST USER2 Url: https://teapot:8081/default_area/TestFile1 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile1 Expected status: 500 != 204 0.019 s Teapot-Tests
GET FILE USER1 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 204 0.020 s Teapot-Tests
GET FILE USER2 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 204 0.020 s Teapot-Tests
DELETE REQUEST USER1 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 0.010 s Teapot-Tests
DELETE REQUEST USER2 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 0.011 s Teapot-Tests
GET USER1 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 500 != 200 0.009 s Teapot-Tests
GET USER2 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 500 != 200 0.010 s Teapot-Tests
PUT REQUEST USER1 EXTRA_AREA Url: https://teapot:8081/extra_area/TestFile1 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile1 Expected status: 500 != 204 0.019 s Teapot-Tests
PUT REQUEST USER2 EXTRA_AREA Url: https://teapot:8081/extra_area/TestFile1 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile1 Expected status: 500 != 204 0.019 s Teapot-Tests
GET FILE USER1 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 204 0.021 s Teapot-Tests
GET FILE USER2 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 204 0.022 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 201 0.010 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 201 0.011 s Teapot-Tests

Please sign in to comment.