Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Hello world!
# THIS IS MY MESSAGE FILE
32 changes: 32 additions & 0 deletions scripts/tf_run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/python3

# Request testing
# TESTING_FARM_API_TOKEN=... testing-farm request --no-wait --context test_event=ctc --environment SETTINGS_URL=http://auto-services.usersys.redhat.com/automation-properties/settings.toml --compose RHEL-10-Nightly

Check failure on line 4 in scripts/tf_run.py

View workflow job for this annotation

GitHub Actions / black & flake8

E501 line too long (213 > 100 characters)

# Download tf resutls.xml (with links to files): https://artifacts.osci.redhat.com/testing-farm/${request_id}/results.xml

Check failure on line 6 in scripts/tf_run.py

View workflow job for this annotation

GitHub Actions / codespell

resutls ==> results

Check failure on line 6 in scripts/tf_run.py

View workflow job for this annotation

GitHub Actions / black & flake8

E501 line too long (121 > 100 characters)

# Download /testsuites/testsuite/testcase/logs[name="data/junit.xml"]

# Run betelgeuse
# cp $WORKSPACE/junit*.xml $WORKSPACE/${projectName}/
# cd $WORKSPACE/${projectName}
# echo "Converting results to Polarion format..."
# PYTHONPATH=integration-tests/ betelgeuse --config-module custom_betelgeuse_config \
# test-run \
# --custom-fields '{"composeid":"${testImage}","arch":"${archCustom}","description":"${description}","poolteam":"${poolteam}","component":"${component}","fips":"${fips}","assignee":"${assignee}"}' \

Check failure on line 16 in scripts/tf_run.py

View workflow job for this annotation

GitHub Actions / black & flake8

E501 line too long (206 > 100 characters)
# --test-run-title "${testRunTitle}" \
# --no-include-skipped \
# $WORKSPACE/${projectName}/junit*.xml \
# ./integration-tests/ \
# automation \
# RHELSS \
# test_run.xml
#
# Upload to Polarion
# echo "Uploading to Polarion..."
# curl -k -u "$POLARION_USER:$POLARION_PASS" \
# -X POST \
# -F file=@test_run.xml \
# https://polarion.engineering.redhat.com/polarion/import/xunit
#
# echo "Polarion upload complete"
5 changes: 5 additions & 0 deletions systemtest/plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ prepare:

execute:
how: tmt

enabled: false
adjust:
- enabled: true
when: test_event == ctc
7 changes: 7 additions & 0 deletions systemtest/plans/rhsm.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/stage:
environment+:
ENV_FOR_DYNACONF: stage
/prod:
enabled: true
environment+:
ENV_FOR_DYNACONF: prod
9 changes: 9 additions & 0 deletions systemtest/plans/satellite.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/satellite617:
environment+:
ENV_FOR_DYNACONF: satellite617
/satellite618:
environment+:
ENV_FOR_DYNACONF: satellite618
/satellite619:
environment+:
ENV_FOR_DYNACONF: satellite619
10 changes: 6 additions & 4 deletions systemtest/tests/integration/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ rpm -q insights-client insights-core selinux-policy || true
pytest --log-level debug --junit-xml=./junit.xml -v integration-tests ${PYTEST_FILTER:+-k "${PYTEST_FILTER}"}
retval=$?

if [ -d "$TMT_PLAN_DATA" ]; then
cp ./junit.xml "$TMT_PLAN_DATA/junit.xml"
cp -r ./artifacts "$TMT_PLAN_DATA/"
fi
for TARGET_DIR in "$TMT_PLAN_DATA" "$TMT_TEST_DATA"; do
if [ -d "$TARGET_DIR" ]; then
cp ./junit.xml "$TARGET_DIR/junit.xml"
cp -r ./artifacts "$TARGET_DIR/"
fi
done

exit $retval
Loading