Skip to content

Commit

Permalink
Debug 9
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Sep 12, 2024
1 parent 4aa34df commit 0e572df
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,12 @@ async def _create_user_dirs(username):
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["Storm-webdav"]["username"] = str(username)
config["Storm-webdav"]["port"] = str(port)
config["Storm-webdav"]["port1"] = str(port + 1)
with open("/etc/teapot/config.ini", "a", encoding="utf-8") as configfile:
config.write(configfile)
config_update = configparser.ConfigParser()
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:
config_update.write(configfile)
os.environ["STORM_WEBDAV_JVM_OPTS"] = config["Storm-webdav"]["JVM_OPTS"]
os.environ["STORM_WEBDAV_SERVER_ADDRESS"] = config["Storm-webdav"]["SERVER_ADDRESS"]
os.environ["STORM_WEBDAV_HTTPS_PORT"] = config["Storm-webdav"]["HTTPS_PORT"]
Expand Down

1 comment on commit 0e572df

@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 614.257ms

Passed Tests

Name ⏱️ Duration Suite
GET NO TOKEN 0.010 s Teapot-Tests
GET INVALID TOKEN 0.032 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.009 s Teapot-Tests
PUT REQUEST NO TOKEN 0.008 s Teapot-Tests
GET FILE NO TOKEN 0.008 s Teapot-Tests
GET FILE INVALID TOKEN 0.008 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.008 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.009 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.008 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.008 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.009 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.158 s Teapot-Tests
GET USER2 Url: https://teapot:8081/default_area Expected status: 500 != 200 0.074 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.019 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.010 s Teapot-Tests
GET USER1 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 500 != 200 0.012 s Teapot-Tests
GET USER2 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 500 != 200 0.009 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.020 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.021 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.020 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.