Fix check in sanity test (#2761)
CLI output was changed from `Completed (0 Errors)` to `Completed` #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [x] 🤖 Test - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
a83f16c6e4
commit
6c98c865e9
16
.github/workflows/sanity-test.yaml
vendored
16
.github/workflows/sanity-test.yaml
vendored
@ -108,12 +108,12 @@ jobs:
|
|||||||
--user "${CORSO_M365_TEST_USER_ID}" \
|
--user "${CORSO_M365_TEST_USER_ID}" \
|
||||||
--hide-progress 2>&1 | tee $TEST_RESULT/backup_exchange.txt
|
--hide-progress 2>&1 | tee $TEST_RESULT/backup_exchange.txt
|
||||||
|
|
||||||
if ! grep -q 'Completed (0 errors)' $TEST_RESULT/backup_exchange.txt
|
if ! grep -q 'Completed' $TEST_RESULT/backup_exchange.txt
|
||||||
then
|
then
|
||||||
echo "backup was not successfull"
|
echo "backup was not successfull"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo result=$(grep -i -e 'Completed (0 errors)' $TEST_RESULT/backup_exchange.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
echo result=$(grep -i -e 'Completed' $TEST_RESULT/backup_exchange.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# list the backup exhange
|
# list the backup exhange
|
||||||
- name: Backup exchange list test
|
- name: Backup exchange list test
|
||||||
@ -155,13 +155,13 @@ jobs:
|
|||||||
--user "${CORSO_M365_TEST_USER_ID}" \
|
--user "${CORSO_M365_TEST_USER_ID}" \
|
||||||
--hide-progress 2>&1 | tee $TEST_RESULT/backup_exchange_incremental.txt
|
--hide-progress 2>&1 | tee $TEST_RESULT/backup_exchange_incremental.txt
|
||||||
|
|
||||||
if ! grep -q 'Completed (0 errors)' $TEST_RESULT/backup_exchange_incremental.txt
|
if ! grep -q 'Completed' $TEST_RESULT/backup_exchange_incremental.txt
|
||||||
then
|
then
|
||||||
echo "backup was not successful"
|
echo "backup was not successful"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo result=$(grep -i -e 'Completed (0 errors)' $TEST_RESULT/backup_exchange_incremental.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
echo result=$(grep -i -e 'Completed' $TEST_RESULT/backup_exchange_incremental.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# test exchange restore
|
# test exchange restore
|
||||||
- name: Backup incremantal exchange restore
|
- name: Backup incremantal exchange restore
|
||||||
@ -193,13 +193,13 @@ jobs:
|
|||||||
--user "${CORSO_M365_TEST_USER_ID}" \
|
--user "${CORSO_M365_TEST_USER_ID}" \
|
||||||
--hide-progress 2>&1 | tee $TEST_RESULT/backup_onedrive.txt
|
--hide-progress 2>&1 | tee $TEST_RESULT/backup_onedrive.txt
|
||||||
|
|
||||||
if ! grep -q 'Completed (0 errors)' $TEST_RESULT/backup_onedrive.txt
|
if ! grep -q 'Completed' $TEST_RESULT/backup_onedrive.txt
|
||||||
then
|
then
|
||||||
echo "backup was not successfull"
|
echo "backup was not successfull"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo result=$(grep 'Completed (0 errors)' $TEST_RESULT/backup_onedrive.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
echo result=$(grep 'Completed' $TEST_RESULT/backup_onedrive.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# list the bakcup onedrive
|
# list the bakcup onedrive
|
||||||
- name: Backup onedrive list test
|
- name: Backup onedrive list test
|
||||||
@ -238,13 +238,13 @@ jobs:
|
|||||||
--user "${CORSO_M365_TEST_USER_ID}"\
|
--user "${CORSO_M365_TEST_USER_ID}"\
|
||||||
--hide-progress 2>&1 | tee $TEST_RESULT/backup_onedrive_incremental.txt
|
--hide-progress 2>&1 | tee $TEST_RESULT/backup_onedrive_incremental.txt
|
||||||
|
|
||||||
if ! grep -q 'Completed (0 errors)' $TEST_RESULT/backup_onedrive_incremental.txt
|
if ! grep -q 'Completed' $TEST_RESULT/backup_onedrive_incremental.txt
|
||||||
then
|
then
|
||||||
echo "backup was not successfull"
|
echo "backup was not successfull"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo result=$(grep -i -e 'Completed (0 errors)' $TEST_RESULT/backup_onedrive_incremental.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
echo result=$(grep -i -e 'Completed' $TEST_RESULT/backup_onedrive_incremental.txt | awk '{print $2}') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# test onedrive restore
|
# test onedrive restore
|
||||||
- name: Backup onedrive restore
|
- name: Backup onedrive restore
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user