Commit b829ef09 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

test(r2): align e2e checks with current component contracts

The test VM run used SRM's TF-SDK branch, where app listing works, and FM's
partner detail now embeds agreements. Remove the obsolete strict xfail on
listing and check the detail's agreement ownership separately from the
partner summary fields.

Validation: run-test.sh e2e on the three test operators: 22 passed, 1 xfailed.
parent 55c3ef5f
Loading
Loading
Loading
Loading
Loading
+0 −5
Changes for ansible/tests/r2_e2e/test_apps.py: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -58,11 +58,6 @@ def test_app_provider_registers_reads_and_deletes_an_app(operators, callers, reg
        assert r.status_code == 404, r.text


@pytest.mark.xfail(
    strict=True,
    reason="SRM's develop build has no GET /internal/catalog/service-specifications, the "
    "list its interface contract describes, so OEG answers 503",
)
def test_app_provider_lists_its_apps(operators, callers, registered_app):
    for op in operators:
        r = http("GET", op.oeg_url + APPS, callers[op.host]["provider"])
+5 −1
Changes for ansible/tests/r2_e2e/test_federation.py: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,11 @@ def test_operator_reads_the_partner_registry_through_oeg(pair, callers):
    r = http("GET", f"{a.oeg_url}/platform/v1/federation/partners/{partner['id']}",
             callers[a.host]["operator"])
    assert r.status_code == 200, r.text
    assert r.json() == partner
    detail = r.json()
    agreements = detail.pop("agreements")
    assert detail == partner
    assert isinstance(agreements, list)
    assert all(agreement["partner_op_id"] == partner["id"] for agreement in agreements)


def test_fm_reads_the_federation_from_the_partner(pair):