Skip to content

Commit

Permalink
Integration tests for aggregate_id
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence committed May 24, 2021
1 parent 7d83a30 commit c25a777
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/integrationtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,22 @@ def test_03_interfaces(self):
)
self.assertEqual(r.status_code, 200, "Failed to update interface")

r = requests.put(
f'{URL}/api/v1.0/device/eosaccess/interfaces',
headers=AUTH_HEADER,
json={"interfaces": {"Ethernet1": {"data": {"aggregate_id": -1}}}},
verify=TLS_VERIFY
)
self.assertEqual(r.status_code, 200, "Failed to update interface")

r = requests.put(
f'{URL}/api/v1.0/device/eosaccess/interfaces',
headers=AUTH_HEADER,
json={"interfaces": {"Ethernet1": {"data": {"aggregate_id": None}}}},
verify=TLS_VERIFY
)
self.assertEqual(r.status_code, 200, "Failed to update interface")

def test_04_syncto_access(self):
r = requests.post(
f'{URL}/api/v1.0/device_syncto',
Expand Down

0 comments on commit c25a777

Please sign in to comment.