Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Dec 4, 2024
1 parent a88d319 commit 58d1e9c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,10 @@ async def _create_user_dirs(username):
second_part = prop.readlines()
with open(f"{config_dir}/storage-areas", "r", encoding="utf-8") as storage_areas:
for line in storage_areas:
parts = line.split(maxsplit=1)
if len(parts) == 2:
storage_area, path = parts
logger.error("Storage area: %s, path, %s", storage_area, path)
path = os.path.expandvars(path)
else:
logger.warning("Line does not have exactly two parts: %s", line)
print("path is ", path)
print("storage area is ", storage_area)
line = line.strip()
storage_area, path = line.split(" ")
logger.error("Storage area: %s, path, %s", storage_area, path)
path = os.path.expandvars(path)
sa_properties_path = f"{user_sa_d_dir}/{storage_area}.properties"
if not exists(sa_properties_path):
with open(
Expand Down

1 comment on commit 58d1e9c

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

Passed Tests

Name ⏱️ Duration Suite
GET NO TOKEN 0.013 s Teapot-Tests
GET INVALID TOKEN 0.050 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.014 s Teapot-Tests
PUT REQUEST NO TOKEN 0.013 s Teapot-Tests
GET FILE NO TOKEN 0.016 s Teapot-Tests
GET FILE INVALID TOKEN 0.013 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.014 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.010 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.008 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.008 s Teapot-Tests
DELETE REQUEST INVALID TOKEN EXTRA_AREA 0.010 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.665 s Teapot-Tests
GET USER2 Url: https://teapot:8081/default_area Expected status: 404 != 200 8.663 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.130 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.079 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.061 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.069 s Teapot-Tests
DELETE REQUEST USER1 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 0.024 s Teapot-Tests
DELETE REQUEST USER2 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 500 != 201 0.027 s Teapot-Tests
GET USER1 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 404 != 200 0.034 s Teapot-Tests
GET USER2 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 404 != 200 0.038 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.040 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.038 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.038 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.037 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.