Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added versioning to sdntrace requests #307

Merged
merged 1 commit into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests/test_e2e_40_sdntrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def wait_sdntrace_result(self, trace_id, timeout=10):
wait_count = 0
while wait_count < timeout:
try:
api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.get(f"{api_url}/{trace_id}")
data = response.json()
assert data["result"][-1]["reason"] == "done"
Expand Down Expand Up @@ -186,7 +186,7 @@ def test_010_run_sdntrace(self):
}
}

api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.put(api_url, json=payload)
assert response.status_code == 200, response.text
data = response.json()
Expand Down Expand Up @@ -233,7 +233,7 @@ def test_010_run_sdntrace(self):
}
}

api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.put(api_url, json=payload)
assert response.status_code == 200, response.text
data = response.json()
Expand Down Expand Up @@ -332,7 +332,7 @@ def test_020_run_sdntrace_fail_missing_flow(self):
}
}

api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.put(api_url, json=payload_2)
assert response.status_code == 200, response.text
data = response.json()
Expand Down Expand Up @@ -379,7 +379,7 @@ def test_020_run_sdntrace_fail_missing_flow(self):
]
assert expected == actual, f"Expected {expected}. Actual: {actual}"

api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.put(api_url, json=payload_2)
assert response.status_code == 200, response.text
data = response.json()
Expand Down Expand Up @@ -819,7 +819,7 @@ def test_070_run_sdntrace_untagged_vlan(cls):
assert list_results[0][0]["port"] == 1
assert list_results[0][-1]["type"] == "last"

api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.put(api_url, json=payload[0])
assert response.status_code == 200, response.text
data = response.json()
Expand Down Expand Up @@ -863,7 +863,7 @@ def test_075_run_sdntrace_any_vlan(cls):
assert list_results[0][0]["port"] == 1
assert list_results[0][-1]["type"] == "last"

api_url = KYTOS_API + '/amlight/sdntrace/trace'
api_url = KYTOS_API + '/amlight/sdntrace/v1/trace'
response = requests.put(api_url, json=payload[0])
assert response.status_code == 200, response.text
data = response.json()
Expand Down