Skip to content

Commit

Permalink
Merge pull request #340 from validatedpatterns/iev2_updates
Browse files Browse the repository at this point in the history
Add git pull, add debugging, check for vibration data only
  • Loading branch information
mlabonte-rh authored Jan 16, 2025
2 parents 210180d + 3504dcd commit 00ede75
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/interop/test_check_logging_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_check_logging_hub():
logger.info("Checking logs for kafka-integration in manuela-tst-all namespace")
app_string = "camel.apache.org/integration=mqtt2kafka-integration"
log_out = get_log_output(app_string, namespace="manuela-tst-all")
search_terms = ["temperature", "vibration"]
search_terms = ["vibration"]
if not search_log_output(log_out, search_terms):
err_msg = "Failed to find expected output in kafka-integration log"
logger.error(f"FAIL: {err_msg}")
Expand Down
17 changes: 17 additions & 0 deletions tests/interop/test_toggle_machine_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,34 @@ def test_toggle_machine_sensor(openshift_dyn_client):
gitea_url,
],
cwd=cur_dir,
capture_output=True,
text=True,
)

logger.info(res.stdout)
logger.info(res.stderr)

if res.returncode != 0:
err_msg = f"Could not fetch remote from gitea_url: {gitea_url}"
logger.error(f"FAIL: {err_msg}")
assert False, err_msg

pull = subprocess.run(
["git", "-c", "http.sslVerify=false", "pull", "gitea-qe", "main"],
cwd=cur_dir,
capture_output=True,
text=True,
)

logger.info(pull.stdout)
logger.info(pull.stderr)

subprocess.run(["git", "add", machine_sensor_file], cwd=cur_dir)
subprocess.run(
["git", "commit", "-m", "Toggling SENSOR_TEMPERATURE_ENABLED"],
cwd=cur_dir,
)

push = subprocess.run(
["git", "-c", "http.sslVerify=false", "push", "gitea-qe"],
cwd=cur_dir,
Expand Down

0 comments on commit 00ede75

Please sign in to comment.