Skip to content

Commit

Permalink
container_scenario refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Jan 18, 2024
1 parent 89aa597 commit 9b1db2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CI/tests/test_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ trap finish EXIT
pod_file="CI/scenarios/hello_pod.yaml"

function functional_test_container_crash {

yq -i '.scenarios[0].namespace=default' scenarios/openshift/app_outage.yaml
yq -i '.scenarios[0].label_selector="scenario=container"' scenarios/openshift/app_outage.yaml
yq -i '.scenarios[0].container_name="fedtools"' scenarios/openshift/app_outage.yaml
export scenario_type="container_scenarios"
export scenario_file="- CI/scenarios/container_scenario.yml"
export scenario_file="- scenarios/kube/container_dns.yml"
export post_config=""
envsubst < CI/config/common_test_config.yaml > CI/config/container_config.yaml

Expand Down
2 changes: 1 addition & 1 deletion scenarios/kube/container_dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ scenarios:
namespace: "kube-system"
label_selector: "k8s-app=kube-dns"
container_name: ""
action: "kill 1"
action: 1
count: 1
retry_wait: 60

0 comments on commit 9b1db2e

Please sign in to comment.