diff --git a/.github/workflows/longevity_test.yml b/.github/workflows/longevity_test.yml index 8d294107a..d980a3f41 100644 --- a/.github/workflows/longevity_test.yml +++ b/.github/workflows/longevity_test.yml @@ -230,6 +230,62 @@ jobs: ########################################################################################################################################## +# Export OneDrive Test + - name: OneDrive Export test + run: | + set -euo pipefail + echo -e "\Export OneDrive test\n" >> ${CORSO_LOG_FILE} + + echo -e "\Export OneDrive test - first entry\n" >> ${CORSO_LOG_FILE} + ./corso backup list onedrive 2>/dev/null | tail -n+2 | head -n1 | awk '{print $1}' | + while read -r line; do + ./corso export onedrive \ + "/tmp/corso-export--$line" \ + --no-stats \ + --backup "$line" \ + 2>&1 | tee ${{ env.CORSO_LOG_DIR }}/export_onedrive_first.txt + done + + echo -e "\Export OneDrive test - last entry\n" >> ${CORSO_LOG_FILE} + ./corso backup list onedrive 2>/dev/null | tail -n1 | awk '{print $1}' | + while read -r line; do + ./corso export onedrive \ + "/tmp/corso-export--$line" \ + --no-stats \ + --backup "$line" \ + 2>&1 | tee ${{ env.CORSO_LOG_DIR }}/export_onedrive_last.txt + done + +########################################################################################################################################## + +# Export SharePoint Test + - name: SharePoint Export test + run: | + set -euo pipefail + echo -e "\Export SharePoint test\n" >> ${CORSO_LOG_FILE} + + echo -e "\Export SharePoint test - first entry\n" >> ${CORSO_LOG_FILE} + ./corso backup list sharepoint 2>/dev/null | tail -n+2 | head -n1 | awk '{print $1}' | + while read -r line; do + ./corso export sharepoint \ + "/tmp/corso-export--$line" \ + --no-stats \ + --backup "$line" \ + 2>&1 | tee ${{ env.CORSO_LOG_DIR }}/export_sharepoint_first.txt + done + + echo -e "\Export SharePoint test - last entry\n" >> ${CORSO_LOG_FILE} + ./corso backup list sharepoint 2>/dev/null | tail -n1 | awk '{print $1}' | + while read -r line; do + ./corso export sharepoint \ + "/tmp/corso-export--$line" \ + --no-stats \ + --backup "$line" \ + 2>&1 | tee ${{ env.CORSO_LOG_DIR }}/export_sharepoint_last.txt + done + +########################################################################################################################################## + # Maintenance test - name: Maintenance test Daily id: maintenance-test-daily