add test for context load without orchestrator

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-06-02 10:45:52 +02:00 committed by Ulysses Souza
parent 31276df6a3
commit 67cad6842c
1 changed files with 7 additions and 0 deletions

View File

@ -50,3 +50,10 @@ class ContextLifecycleTest(BaseAPIIntegrationTest):
ContextAPI.remove_context("test")
with pytest.raises(errors.ContextNotFound):
ContextAPI.inspect_context("test")
def test_load_context_without_orchestrator(self):
ContextAPI.create_context("test")
ctx = ContextAPI.get_context("test")
assert ctx
assert ctx.Name == "test"
assert ctx.Orchestrator is None