Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.icinga_plugins.tests.test_deposit::test_deposit_timeout
Failed

TEST RESULT

Run At
Jan 12 2022, 3:17 PM
Details
requests_mock = <requests_mock.mocker.Mocker object at 0x7fbee125deb8> mocker = <pytest_mock.plugin.MockerFixture object at 0x7fbee125d828> sample_archive = '/tmp/pytest-of-jenkins/pytest-0/swh.icinga_plugins.tests.test_deposit0/archive.tar.gz' sample_metadata = '/tmp/pytest-of-jenkins/pytest-0/swh.icinga_plugins.tests.test_deposit0/metadata.xml' mocked_time = None def test_deposit_timeout( requests_mock, mocker, sample_archive, sample_metadata, mocked_time ): scenario = WebScenario() scenario.add_step( "post", f"{BASE_URL}/testcol/", ENTRY_TEMPLATE.format(status="deposited"), callback=lambda: time.sleep(1500), ) scenario.add_step( "get", f"{BASE_URL}/testcol/42/status/", status_template(status="verified"), callback=lambda: time.sleep(1500), ) scenario.add_step( "get", f"{BASE_URL}/testcol/42/status/", status_template(status="loading"), callback=lambda: time.sleep(1500), ) scenario.install_mock(requests_mock) result = invoke( [ "--prometheus-exporter", "--prometheus-exporter-directory", "/tmp", "check-deposit", *COMMON_OPTIONS, "single", "--archive", sample_archive, "--metadata", sample_metadata, ], catch_exceptions=True, ) > assert result.output == ( "DEPOSIT CRITICAL - Timed out while in status loading " "(4520.0s seconds since deposit started)\n" "| 'total_time' = 4520.00s\n" "| 'upload_time' = 1500.00s\n" "| 'validation_time' = 1510.00s\n" ) E assert '' == "DEPOSIT CRIT... = 1510.00s\n" E - DEPOSIT CRITICAL - Timed out while in status loading (4520.0s seconds since deposit started) E - | 'total_time' = 4520.00s E - | 'upload_time' = 1500.00s E - | 'validation_time' = 1510.00s .tox/py3/lib/python3.7/site-packages/swh/icinga_plugins/tests/test_deposit.py:501: AssertionError