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

[IS-11] Independent tests for Senders #852

Open
wants to merge 5 commits into
base: is-11
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion nmostesting/IS11Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,21 @@ def get_transportfile(self, url, sender_id):
toReturn = r.text
return toReturn

def get_flows(self, url, sender_id):
def get_flow(self, url, sender_id):
"""Get the flow for a given Sender"""
toReturn = None
valid, r = TestHelper.do_request("GET", url + "flows/" + sender_id)
if valid and r.status_code == 200:
toReturn = r.json()
return toReturn

def get_source(self, url, id):
toReturn = None
valid, r = TestHelper.do_request("GET", url + "sources/" + id)
if valid and r.status_code == 200:
toReturn = r.json()
return toReturn

def get_receivers_with_or_without_outputs_id(self, receivers, format):
self.receivers_with_or_without_outputs = []
for receiver_id in receivers:
Expand Down
Loading
Loading