-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: support azurtize on pytest and e2e
longhorn/longhorn-9699 Signed-off-by: Chris <[email protected]>
- Loading branch information
1 parent
88cd8b8
commit 19842e9
Showing
24 changed files
with
140 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ spec: | |
- name: LONGHORN_JUNIT_REPORT_PATH | ||
value: /tmp/test-report/longhorn-test-junit-report.xml | ||
- name: LONGHORN_BACKUPSTORES | ||
value: "s3://backupbucket@us-east-1/backupstore$minio-secret, nfs://longhorn-test-nfs-svc.default:/opt/backupstore, cifs://longhorn-test-cifs-svc.default/backupstore$cifs-secret" | ||
value: "s3://backupbucket@us-east-1/backupstore$minio-secret, nfs://longhorn-test-nfs-svc.default:/opt/backupstore, cifs://longhorn-test-cifs-svc.default/backupstore$cifs-secret, azblob://[email protected]/$azblob-secret" | ||
- name: LONGHORN_BACKUPSTORE_POLL_INTERVAL | ||
value: "30" | ||
- name: LONGHORN_DISK_TYPE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
S3_BACKUP_STORE='s3://backupbucket@us-east-1/backupstore$minio-secret' | ||
NFS_BACKUP_STORE='nfs://longhorn-test-nfs-svc.default:/opt/backupstore' | ||
CIFS_BACKUP_STORE='cifs://longhorn-test-cifs-svc.default/backupstore$cifs-secret' | ||
AZURITE_BACKUP_STORE='azblob://[email protected]/$azblob-secret' | ||
|
||
run_longhorn_e2e_test(){ | ||
|
||
|
@@ -25,6 +26,8 @@ run_longhorn_e2e_test(){ | |
yq e -i 'select(.spec.containers[0] != null).spec.containers[0].env[1].value="'${NFS_BACKUP_STORE}'"' ${LONGHORN_TESTS_MANIFEST_FILE_PATH} | ||
elif [[ $BACKUP_STORE_TYPE = "cifs" ]]; then | ||
yq e -i 'select(.spec.containers[0] != null).spec.containers[0].env[1].value="'${CIFS_BACKUP_STORE}'"' ${LONGHORN_TESTS_MANIFEST_FILE_PATH} | ||
elif [[ $BACKUP_STORE_TYPE = "azurite" ]]; then | ||
yq e -i 'select(.spec.containers[0] != null).spec.containers[0].env[1].value="'${AZURITE_BACKUP_STORE}'"' ${LONGHORN_TESTS_MANIFEST_FILE_PATH} | ||
fi | ||
|
||
if [[ "${TF_VAR_use_hdd}" == true ]]; then | ||
|
@@ -80,6 +83,8 @@ run_longhorn_e2e_test_out_of_cluster(){ | |
LONGHORN_BACKUPSTORES=${NFS_BACKUP_STORE} | ||
elif [[ $BACKUP_STORE_TYPE = "cifs" ]]; then | ||
LONGHORN_BACKUPSTORES=${CIFS_BACKUP_STORE} | ||
elif [[ $BACKUP_STORE_TYPE = "azurite" ]]; then | ||
LONGHORN_BACKUPSTORES=${AZURITE_BACKUP_STORE} | ||
fi | ||
LONGHORN_BACKUPSTORE_POLL_INTERVAL="30" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.