Skip to content

Commit

Permalink
[prober] update prober to support next DSS version (#544)
Browse files Browse the repository at this point in the history
[prober] update prober to support the new DSS version
  • Loading branch information
Shastick authored Mar 12, 2024
1 parent 7593a07 commit 0d73a7b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions monitoring/prober/scd/test_operations_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ def test_mutate_op1_bad_key(ids, scd_api, scd_session, scd_session2):
)
assert resp.status_code == 409, resp.content
missing_ops, _, _ = _parse_conflicts(resp.json())
assert ids(OP1_TYPE) in missing_ops
# We're mutating OP1, so OP2 should be missing
# (OVN of the OIR being updted is not required)
assert ids(OP2_TYPE) in missing_ops

req["key"] = [op1_ovn]
Expand All @@ -471,15 +472,6 @@ def test_mutate_op1_bad_key(ids, scd_api, scd_session, scd_session2):
assert not (op2_ovn in ovns)
assert not (op1_ovn in ovns)

req["key"] = [op2_ovn]
resp = scd_session.put(
"/operational_intent_references/{}/{}".format(ids(OP1_TYPE), op1_ovn), json=req
)
assert resp.status_code == 409, resp.content
missing_ops, _, ovns = _parse_conflicts(resp.json())
assert ids(OP1_TYPE) in missing_ops
assert not (op2_ovn in ovns)


# Successfully mutate Op1
# Preconditions:
Expand Down

0 comments on commit 0d73a7b

Please sign in to comment.