Changeset View
Changeset View
Standalone View
Standalone View
swh/icinga_plugins/tests/test_deposit.py
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | status_xml = status_template( | ||||
swhid="swh:1:dir:02ed6084fb0e8384ac58980e07548a547431cf74", | swhid="swh:1:dir:02ed6084fb0e8384ac58980e07548a547431cf74", | ||||
) | ) | ||||
scenario.add_step("get", f"{BASE_URL}/testcol/42/status/", status_xml) | scenario.add_step("get", f"{BASE_URL}/testcol/42/status/", status_xml) | ||||
# internal deposit client does call status, then update metadata then status api | # internal deposit client does call status, then update metadata then status api | ||||
scenario.add_step( | scenario.add_step( | ||||
"get", f"{BASE_URL}/testcol/42/status/", status_xml, | "get", f"{BASE_URL}/testcol/42/status/", status_xml, | ||||
) | ) | ||||
scenario.add_step( | scenario.add_step( | ||||
"put", f"{BASE_URL}/testcol/42/metadata/", status_xml, | "put", f"{BASE_URL}/testcol/42/atom/", status_xml, | ||||
) | ) | ||||
scenario.add_step( | scenario.add_step( | ||||
"get", f"{BASE_URL}/testcol/42/status/", status_xml, | "get", f"{BASE_URL}/testcol/42/status/", status_xml, | ||||
) | ) | ||||
scenario.install_mock(requests_mock) | scenario.install_mock(requests_mock) | ||||
result = invoke( | result = invoke( | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | status_xml = status_template( | ||||
swhid="swh:1:dir:02ed6084fb0e8384ac58980e07548a547431cf74", | swhid="swh:1:dir:02ed6084fb0e8384ac58980e07548a547431cf74", | ||||
) | ) | ||||
scenario.add_step("get", f"{BASE_URL}/testcol/42/status/", status_xml) | scenario.add_step("get", f"{BASE_URL}/testcol/42/status/", status_xml) | ||||
# internal deposit client does call status, then update metadata then status api | # internal deposit client does call status, then update metadata then status api | ||||
scenario.add_step( | scenario.add_step( | ||||
"get", f"{BASE_URL}/testcol/42/status/", status_xml, | "get", f"{BASE_URL}/testcol/42/status/", status_xml, | ||||
) | ) | ||||
scenario.add_step( | scenario.add_step( | ||||
"put", f"{BASE_URL}/testcol/42/metadata/", status_xml, | "put", f"{BASE_URL}/testcol/42/atom/", status_xml, | ||||
) | ) | ||||
scenario.add_step( | scenario.add_step( | ||||
"get", f"{BASE_URL}/testcol/42/status/", status_xml, | "get", f"{BASE_URL}/testcol/42/status/", status_xml, | ||||
) | ) | ||||
scenario.install_mock(requests_mock) | scenario.install_mock(requests_mock) | ||||
result = invoke( | result = invoke( | ||||
▲ Show 20 Lines • Show All 347 Lines • Show Last 20 Lines |