def test_scale_group_not_exist(): returncode, stdout, stderr = exec_command( ['dcos', 'marathon', 'group', 'scale', 'scale-group', '2']) assert stderr == b'' watch_all_deployments() returncode, stdout, stderr = exec_command( ['dcos', 'marathon', 'group', 'show', 'scale-group']) res = json.loads(stdout.decode('utf-8')) assert len(res['apps']) == 0 remove_group('scale-group')
def test_add_non_root_group_from_stdin(): # For: https://jira.mesosphere.com/browse/DCOS-59486 # Try to deploy nested non top level group /x/y _add_group_by_stdin('tests/data/marathon/groups/simple.json') # When everything is OK cleanup the test remove_group('/x')
def test_add_group_by_stdin(): _add_group_by_stdin(GOOD_GROUP) remove_group('test-group')