Skip to content

Commit e1ca413

Browse files
authored
test: move test upload logic to using submodule with external repository #366 (#565)
1 parent 6193e0f commit e1ca413

File tree

4 files changed

+9
-71
lines changed

4 files changed

+9
-71
lines changed

.github/workflows/e2e-suite.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
steps:
1515
- name: Clone Repository
1616
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
submodules: 'recursive'
1720

1821
- name: Update system packages
1922
run: sudo apt-get update -y
@@ -50,7 +53,7 @@ jobs:
5053
- name: Add additional information to XML report
5154
run: |
5255
filename=$(ls | grep -E '^[0-9]{12}_cli_test_report\.xml$')
53-
python scripts/add_to_xml_test_report.py \
56+
python tod_scripts/add_to_xml_test_report.py \
5457
--branch_name "${GITHUB_REF#refs/*/}" \
5558
--gha_run_id "$GITHUB_RUN_ID" \
5659
--gha_run_number "$GITHUB_RUN_NUMBER" \
@@ -59,9 +62,8 @@ jobs:
5962
- name: Upload test results
6063
run: |
6164
filename=$(ls | grep -E '^[0-9]{12}_cli_test_report\.xml$')
62-
linode-cli obj --cluster us-southeast-1 put "${filename}" dx-test-results
65+
python tod_scripts/test_report_upload_script.py "${filename}"
6366
env:
64-
LINODE_CLI_TOKEN: ${{ secrets.SHARED_DX_TOKEN }}
6567
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
6668
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
6769

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "test/test_helper/bats-support"]
55
path = test/test_helper/bats-support
66
url = https://github.com/ztombol/bats-support
7+
[submodule "tod_scripts"]
8+
path = tod_scripts
9+
url = https://github.com/linode/TOD-test-report-uploader.git

scripts/add_to_xml_test_report.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

tod_scripts

Submodule tod_scripts added at eec4b99

0 commit comments

Comments
 (0)