Merge pull request #42 from chaitanyaenr/pod_scenarios_log

Display the pod scenarios logs
This commit is contained in:
Paige Rubendall
2020-10-30 11:01:03 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ dist: xenial
langauge: python
python: "3.6"
python: "3.6.8"
before_install:
- sudo apt-get update

View File

@@ -160,11 +160,14 @@ def pod_scenarios(scenarios_list, config, failed_post_scenarios):
pre_action_output = run_post_action(kubeconfig_path, pod_scenario[1])
else:
pre_action_output = ''
runcommand.invoke("powerfulseal autonomous --use-pod-delete-instead-of-ssh-kill"
scenario_logs = runcommand.invoke("powerfulseal autonomous --use-pod-delete-instead-of-ssh-kill"
" --policy-file %s --kubeconfig %s --no-cloud"
" --inventory-kubernetes --headless"
% (pod_scenario[0], kubeconfig_path))
# Display pod scenario logs/actions
print(scenario_logs)
logging.info("Scenario: %s has been successfully injected!" % (pod_scenario[0]))
logging.info("Waiting for the specified duration: %s" % (wait_duration))
time.sleep(wait_duration)