Skip to content
Snippets Groups Projects
Commit a8678ba7 authored by Daniel Lyons's avatar Daniel Lyons
Browse files

Merge remote-tracking branch 'origin/release/WS-0.1' into release/WS-0.1

parents f70778b5 cb7d4127
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,8 @@ def main():
args = _make_arg_parser().parse_args()
capability = Capability.from_file(args.capability)
# Submit HTTP capability request to server
r = requests.post("http://0.0.0.0:3456/capability/request/submit", data=capability.to_dict())
print(r)
# Get answer back and do something with that
......
......@@ -180,6 +180,13 @@ class Capability(Base, CapabilityIF):
versions=versions
)
def to_dict(self):
return {
'name': self.name,
'max_jobs': self.max_jobs,
'steps': str(self.steps)
}
def __str__(self):
return (
f'Capability object with name {self.name} and max simultaneous jobs of {self.max_jobs}'
......
"""
Tests for Workspaces capability system
"""
def test_submit_capability():
# Create test capability
# Create request for capability
# Submit request for execution
# Verify that it completed
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment