-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from dcos/ken/spinner
Wait function and predicates
- Loading branch information
Showing
8 changed files
with
432 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from dcos import marathon | ||
from shakedown.dcos.spinner import * | ||
|
||
|
||
def deployment_predicate(): | ||
client = marathon.create_client() | ||
return len(client.get_deployments()) == 0 | ||
|
||
|
||
def deployment_wait(timeout=120): | ||
time_wait(deployment_predicate, timeout) | ||
|
||
|
||
def delete_all_apps(): | ||
client = marathon.create_client() | ||
client.remove_group("/") | ||
|
||
|
||
def delete_all_apps_wait(): | ||
delete_all_apps() | ||
deployment_wait() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,7 +231,6 @@ def get_package_repos( | |
return cosmos.get_repos() | ||
|
||
|
||
|
||
def add_package_repo( | ||
repo_name, | ||
repo_url, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.