Skip to content

Commit

Permalink
debug3
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Sep 12, 2024
1 parent f3e31a0 commit ce959b9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rpm/teapot-rpm-alma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ rm -r teapot-"$version_rpm"
mv teapot-"$version_rpm".tar.gz "$HOME"/rpmbuild/SOURCES/

#getting the storm-webdav.jar file
curl -O https://repo.cloud.cnaf.infn.it/repository/storm-rpm-stable/centos7/storm-webdav-1.4.2-1.el7.noarch.rpm
#curl -O https://repo.cloud.cnaf.infn.it/repository/storm-rpm-stable/centos7/storm-webdav-1.4.2-1.el7.noarch.rpm
curl -O https://syncandshare.desy.de/index.php/s/GwSKbqF8DQZ4KzG/download/storm-webdav-1.4.2-1.el7.noarch.rpm
rpm2cpio storm-webdav-1.4.2-1.el7.noarch.rpm | cpio -id ./usr/share/java/storm-webdav/storm-webdav-server.jar
rm storm-webdav-1.4.2-1.el7.noarch.rpm
mv usr/share/java/storm-webdav/storm-webdav-server.jar ./
Expand Down
3 changes: 2 additions & 1 deletion rpm/teapot-rpm-rocky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ rm -r teapot-"$version_rpm"
mv teapot-"$version_rpm".tar.gz "$HOME"/rpmbuild/SOURCES/

#getting the storm-webdav.jar file
curl -O https://repo.cloud.cnaf.infn.it/repository/storm-rpm-stable/centos7/storm-webdav-1.4.2-1.el7.noarch.rpm
#curl -O https://repo.cloud.cnaf.infn.it/repository/storm-rpm-stable/centos7/storm-webdav-1.4.2-1.el7.noarch.rpm
curl -O https://syncandshare.desy.de/index.php/s/GwSKbqF8DQZ4KzG/download/storm-webdav-1.4.2-1.el7.noarch.rpm
rpm2cpio storm-webdav-1.4.2-1.el7.noarch.rpm | cpio -id ./usr/share/java/storm-webdav/storm-webdav-server.jar
rm storm-webdav-1.4.2-1.el7.noarch.rpm
mv usr/share/java/storm-webdav/storm-webdav-server.jar ./
Expand Down
14 changes: 12 additions & 2 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,11 @@ async def _return_or_create_storm_instance(sub):
cafile=config["Storm-webdav"]["Storm-webdav_CA"]
)
resp = httpx.get(
"https://"+{config["Storm-webdav"]["SERVER_ADDRESS"]}+":"+port+"/",
"https://"
+ config["Storm-webdav"]["SERVER_ADDRESS"]
+ ":"
+ port
+ "/",
verify=context1
)
if resp.status_code >= 200:
Expand Down Expand Up @@ -949,7 +953,13 @@ def main():
cert = config["Teapot"]["Teapot_ssl_certificate"]
key = config["Teapot"]["Teapot_ssl_key"]

uvicorn.run(app, host=config["Teapot"]["hostname"], port=config["Teapot"]["port"], ssl_keyfile=key, ssl_certfile=cert)
uvicorn.run(
app,
host=config["Teapot"]["hostname"],
port=config.getint("Teapot", "port"),
ssl_keyfile=key,
ssl_certfile=cert
)


if __name__ == "__main__":
Expand Down

1 comment on commit ce959b9

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

Passed Tests

Name ⏱️ Duration Suite
GET NO TOKEN 0.010 s Teapot-Tests
GET INVALID TOKEN 0.009 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.010 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.009 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.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.009 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: 401 != 200 0.090 s Teapot-Tests
GET USER2 Url: https://teapot:8081/default_area Expected status: 401 != 200 0.051 s Teapot-Tests
PUT REQUEST USER1 Url: https://teapot:8081/default_area/TestFile1 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile1 Expected status: 401 != 204 0.097 s Teapot-Tests
PUT REQUEST USER2 Url: https://teapot:8081/default_area/TestFile1 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile1 Expected status: 401 != 204 0.093 s Teapot-Tests
GET FILE USER1 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 401 != 204 0.096 s Teapot-Tests
GET FILE USER2 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 401 != 204 0.098 s Teapot-Tests
DELETE REQUEST USER1 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 401 != 201 0.044 s Teapot-Tests
DELETE REQUEST USER2 Setup failed: Url: https://teapot:8081/default_area/TestFile2 Expected status: 401 != 201 0.051 s Teapot-Tests
GET USER1 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 401 != 200 0.057 s Teapot-Tests
GET USER2 EXTRA_AREA Url: https://teapot:8081/extra_area Expected status: 401 != 200 0.051 s Teapot-Tests
PUT REQUEST USER1 EXTRA_AREA Url: https://teapot:8081/extra_area/TestFile1 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile1 Expected status: 401 != 204 0.102 s Teapot-Tests
PUT REQUEST USER2 EXTRA_AREA Url: https://teapot:8081/extra_area/TestFile1 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile1 Expected status: 401 != 204 0.086 s Teapot-Tests
GET FILE USER1 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 401 != 204 0.089 s Teapot-Tests
GET FILE USER2 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 401 != 201 Also teardown failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 401 != 204 0.092 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 401 != 201 0.049 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA Setup failed: Url: https://teapot:8081/extra_area/TestFile2 Expected status: 401 != 201 0.042 s Teapot-Tests

Please sign in to comment.