Skip to content
Snippets Groups Projects
Commit cd5e9a75 authored by Erik Reid's avatar Erik Reid
Browse files

added some optional info fields to gws test data

parent 260846ce
No related branches found
No related tags found
No related merge requests found
...@@ -264,6 +264,7 @@ ...@@ -264,6 +264,7 @@
"interfaces": [ "interfaces": [
{ {
"tag": "a", "tag": "a",
"info": "Some PSNC CenturyLink text, interface XX-9/9/9.123 #123",
"counters": { "counters": {
"traffic_in": "1.3.6.1.2.1.31.1.1.1.6.675", "traffic_in": "1.3.6.1.2.1.31.1.1.1.6.675",
"traffic_out": "1.3.6.1.2.1.31.1.1.1.10.675" "traffic_out": "1.3.6.1.2.1.31.1.1.1.10.675"
...@@ -304,6 +305,7 @@ ...@@ -304,6 +305,7 @@
"interfaces": [ "interfaces": [
{ {
"tag": "a", "tag": "a",
"info": "Some HEANET CenturyLink text",
"counters": { "counters": {
"traffic_in": "1.3.6.1.2.1.31.1.1.1.6.645", "traffic_in": "1.3.6.1.2.1.31.1.1.1.6.645",
"traffic_out": "1.3.6.1.2.1.31.1.1.1.10.645" "traffic_out": "1.3.6.1.2.1.31.1.1.1.10.645"
......
...@@ -76,7 +76,7 @@ def test_gws_direct(client): ...@@ -76,7 +76,7 @@ def test_gws_direct(client):
assert rv.is_json assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, poller.GWS_DIRECT_DATA_SCHEMA) jsonschema.validate(response_data, poller.GWS_DIRECT_DATA_SCHEMA)
assert response_data, "the subscription list shouldn't be empty" assert response_data, "the service list shouldn't be empty"
def test_gws_indirect(client): def test_gws_indirect(client):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment