Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
add project name and domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
squiishyy committed Oct 23, 2023
1 parent 7dfd6fc commit 0287d51
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions boilerplate/flyte/end2end/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ def run(
priorities: List[str],
config_file_path,
terminate_workflow_on_failure: bool,
test_project_name: str,
test_project_domain: str,
) -> List[Dict[str, str]]:
remote = FlyteRemote(
Config.auto(config_file=config_file_path),
default_project="flytesnacks",
default_domain="development",
test_project_name,
test_project_domain,
)

# For a given release tag and priority, this function filters the workflow groups from the flytesnacks
Expand Down Expand Up @@ -261,15 +263,30 @@ def run(
@click.argument("flytesnacks_release_tag")
@click.argument("priorities")
@click.argument("config_file")
@click.option(
"test_project_name",
default="flytesnacks",
is_flag=False,
help="Name of project to run functional tests on"
)
@click.option(
"test_project_domain",
default="development",
is_flag=False,
help="Name of domain in project to run functional tests on",
)
def cli(
flytesnacks_release_tag,
priorities,
config_file,
return_non_zero_on_failure,
terminate_workflow_on_failure,
test_project_name,
test_project_domain,
):
print(f"return_non_zero_on_failure={return_non_zero_on_failure}")
results = run(flytesnacks_release_tag, priorities, config_file, terminate_workflow_on_failure)
results = run(flytesnacks_release_tag, priorities, config_file, terminate_workflow_on_failure, test_project_name,
test_project_domain)

# Write a json object in its own line describing the result of this run to stdout
print(f"Result of run:\n{json.dumps(results)}")
Expand Down

0 comments on commit 0287d51

Please sign in to comment.