Skip to content

Commit

Permalink
test only path expansion change
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Dec 4, 2024
1 parent 9f199ab commit ab9745c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions robot/compose/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
keycloak:
image: dvrbanec/keycloak-dev:latest
image: dvrbanec/keycloak-dev:1
ports:
- 8443:8443
networks:
Expand Down 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 else. "
echo "Something . "
while true; do sleep 1; done'
networks:
- test
Expand Down
5 changes: 3 additions & 2 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
from os.path import exists
from pathlib import Path
from pwd import getpwnam
from stat import S_IROTH, S_IRWXG, S_IRWXU, S_IXOTH
# from stat import S_IROTH, S_IRWXG, S_IRWXU, S_IXOTH
from stat import S_IRGRP, S_IRWXO, S_IRWXU, S_IXGRP

import anyio
import httpx
Expand Down Expand Up @@ -123,7 +124,7 @@ async def lifespan(app: FastAPI):
# those are using the bit patterns provided with the "stat" module as below,
# combining them happens via bitwise OR
# TO DO: find a way to not have to use rwx for others!
STANDARD_MODE = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH
STANDARD_MODE = S_IRWXU | S_IRGRP | S_IXGRP | S_IRWXO
# session state is kept in this global dict for each username as primary key
# data stored within each subdict is
# pid, port, created_at, last_accessed
Expand Down

1 comment on commit ab9745c

@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 19.067066s

Passed Tests

Name ⏱️ Duration Suite
GET NO TOKEN 0.014 s Teapot-Tests
GET INVALID TOKEN 0.049 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.014 s Teapot-Tests
PUT REQUEST NO TOKEN 0.012 s Teapot-Tests
GET FILE NO TOKEN 0.012 s Teapot-Tests
GET FILE INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.010 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.009 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.010 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
DELETE REQUEST INVALID TOKEN EXTRA_AREA 0.013 s Teapot-Tests
DELETE REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests

Failed Tests

Name Message ⏱️ Duration Suite
GET USER1 Url: https://teapot:8081/default_area Expected status: 404 != 200 8.493 s Teapot-Tests
GET USER2 Url: https://teapot:8081/default_area Expected status: 404 != 200 9.754 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: 404 != 204 0.144 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: 404 != 204 0.072 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: 404 != 204 0.053 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: 404 != 204 0.047 s Teapot-Tests
DELETE REQUEST USER1 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 0.020 s Teapot-Tests
DELETE REQUEST USER2 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 0.022 s Teapot-Tests
GET USER1 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 404 != 200 0.032 s Teapot-Tests
GET USER2 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 404 != 200 0.031 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: 404 != 204 0.037 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: 404 != 204 0.039 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: 404 != 204 0.037 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: 404 != 204 0.038 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 201 0.020 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 500 != 201 0.021 s Teapot-Tests

Please sign in to comment.