conv export sanity
This commit is contained in:
parent
fb420b11e7
commit
c8adfc8f72
500
.github/workflows/sanity-test.yaml
vendored
500
.github/workflows/sanity-test.yaml
vendored
@ -172,288 +172,288 @@ jobs:
|
|||||||
|
|
||||||
##########################################################################################################################################
|
##########################################################################################################################################
|
||||||
|
|
||||||
# # Exchange
|
# Exchange
|
||||||
|
|
||||||
# # generate new entries to roll into the next load test
|
# generate new entries to roll into the next load test
|
||||||
# # only runs if the test was successful
|
# only runs if the test was successful
|
||||||
# - name: Exchange - Create new data
|
- name: Exchange - Create new data
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# go run . exchange emails \
|
go run . exchange emails \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }} \
|
--destination ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }} \
|
||||||
# --count 4
|
--count 4
|
||||||
|
|
||||||
# - name: Exchange - Backup
|
- name: Exchange - Backup
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# id: exchange-backup
|
id: exchange-backup
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: exchange
|
service: exchange
|
||||||
# kind: first-backup
|
kind: first-backup
|
||||||
# backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email"'
|
backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email"'
|
||||||
# restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
|
|
||||||
# - name: Exchange - Incremental backup
|
- name: Exchange - Incremental backup
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# id: exchange-backup-incremental
|
id: exchange-backup-incremental
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: exchange
|
service: exchange
|
||||||
# kind: incremental
|
kind: incremental
|
||||||
# backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email"'
|
backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email"'
|
||||||
# restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# backup-id: ${{ steps.exchange-backup.outputs.backup-id }}
|
backup-id: ${{ steps.exchange-backup.outputs.backup-id }}
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
|
|
||||||
# - name: Exchange - Non delta backup
|
- name: Exchange - Non delta backup
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# id: exchange-backup-non-delta
|
id: exchange-backup-non-delta
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: exchange
|
service: exchange
|
||||||
# kind: non-delta
|
kind: non-delta
|
||||||
# backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email" --disable-delta'
|
backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email" --disable-delta'
|
||||||
# restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# backup-id: ${{ steps.exchange-backup.outputs.backup-id }}
|
backup-id: ${{ steps.exchange-backup.outputs.backup-id }}
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
|
|
||||||
# - name: Exchange - Incremental backup after non-delta
|
- name: Exchange - Incremental backup after non-delta
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# id: exchange-backup-incremental-after-non-delta
|
id: exchange-backup-incremental-after-non-delta
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: exchange
|
service: exchange
|
||||||
# kind: non-delta-incremental
|
kind: non-delta-incremental
|
||||||
# backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email"'
|
backup-args: '--mailbox "${{ env.TEST_USER }}" --data "email"'
|
||||||
# restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-args: '--email-folder ${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.repo-init.outputs.result }}'
|
||||||
# backup-id: ${{ steps.exchange-backup.outputs.backup-id }}
|
backup-id: ${{ steps.exchange-backup.outputs.backup-id }}
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
|
|
||||||
|
|
||||||
##########################################################################################################################################
|
##########################################################################################################################################
|
||||||
|
|
||||||
# # Onedrive
|
# Onedrive
|
||||||
|
|
||||||
# # generate new entries for test
|
# generate new entries for test
|
||||||
# - name: OneDrive - Create new data
|
- name: OneDrive - Create new data
|
||||||
# id: new-data-creation-onedrive
|
id: new-data-creation-onedrive
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||||
|
|
||||||
# go run . onedrive files \
|
go run . onedrive files \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
--secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
--destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
||||||
# --count 4
|
--count 4
|
||||||
|
|
||||||
# echo result="${suffix}" >> $GITHUB_OUTPUT
|
echo result="${suffix}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: OneDrive - Backup
|
- name: OneDrive - Backup
|
||||||
# id: onedrive-backup
|
id: onedrive-backup
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: onedrive
|
service: onedrive
|
||||||
# kind: first-backup
|
kind: first-backup
|
||||||
# backup-args: '--user "${{ env.TEST_USER }}"'
|
backup-args: '--user "${{ env.TEST_USER }}"'
|
||||||
# restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
|
|
||||||
# # generate some more enteries for incremental check
|
# generate some more enteries for incremental check
|
||||||
# - name: OneDrive - Create new data (for incremental)
|
- name: OneDrive - Create new data (for incremental)
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# go run . onedrive files \
|
go run . onedrive files \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
--secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }} \
|
--destination ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }} \
|
||||||
# --count 4
|
--count 4
|
||||||
|
|
||||||
# - name: OneDrive - Incremental backup
|
- name: OneDrive - Incremental backup
|
||||||
# id: onedrive-incremental
|
id: onedrive-incremental
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: onedrive
|
service: onedrive
|
||||||
# kind: incremental
|
kind: incremental
|
||||||
# backup-args: '--user "${{ env.TEST_USER }}"'
|
backup-args: '--user "${{ env.TEST_USER }}"'
|
||||||
# restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-onedrive.outputs.result }}'
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
|
|
||||||
# ##########################################################################################################################################
|
##########################################################################################################################################
|
||||||
|
|
||||||
# # Sharepoint Library
|
# Sharepoint Library
|
||||||
|
|
||||||
# # generate new entries for test
|
# generate new entries for test
|
||||||
# - name: SharePoint - Create new data
|
- name: SharePoint - Create new data
|
||||||
# id: new-data-creation-sharepoint
|
id: new-data-creation-sharepoint
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||||
|
|
||||||
# go run . sharepoint files \
|
go run . sharepoint files \
|
||||||
# --site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
--site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
--secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
--destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
||||||
# --count 4
|
--count 4
|
||||||
|
|
||||||
# echo result="${suffix}" >> $GITHUB_OUTPUT
|
echo result="${suffix}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: SharePoint - Backup
|
- name: SharePoint - Backup
|
||||||
# id: sharepoint-backup
|
id: sharepoint-backup
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: sharepoint
|
service: sharepoint
|
||||||
# kind: first-backup
|
kind: first-backup
|
||||||
# backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data libraries'
|
backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data libraries'
|
||||||
# restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
# category: libraries
|
category: libraries
|
||||||
|
|
||||||
# # generate some more enteries for incremental check
|
# generate some more enteries for incremental check
|
||||||
# - name: SharePoint - Create new data (for incremental)
|
- name: SharePoint - Create new data (for incremental)
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# go run . sharepoint files \
|
go run . sharepoint files \
|
||||||
# --site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
--site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
--secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }} \
|
--destination ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }} \
|
||||||
# --count 4
|
--count 4
|
||||||
|
|
||||||
# - name: SharePoint - Incremental backup
|
- name: SharePoint - Incremental backup
|
||||||
# id: sharepoint-incremental
|
id: sharepoint-incremental
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: sharepoint
|
service: sharepoint
|
||||||
# kind: incremental
|
kind: incremental
|
||||||
# backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data libraries'
|
backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data libraries'
|
||||||
# restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
restore-args: '--folder ${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
||||||
# restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
restore-container: '${{ env.RESTORE_DEST_PFX }}${{ steps.new-data-creation-sharepoint.outputs.result }}'
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
# category: libraries
|
category: libraries
|
||||||
|
|
||||||
# ##########################################################################################################################################
|
##########################################################################################################################################
|
||||||
|
|
||||||
# # Sharepoint Lists
|
# Sharepoint Lists
|
||||||
|
|
||||||
# # generate new entries for test
|
# generate new entries for test
|
||||||
# # The `awk | tr | sed` command chain is used to get a comma separated list of SharePoint list names.
|
# The `awk | tr | sed` command chain is used to get a comma separated list of SharePoint list names.
|
||||||
# - name: SharePoint Lists - Create new data
|
- name: SharePoint Lists - Create new data
|
||||||
# id: new-data-creation-sharepoint-lists
|
id: new-data-creation-sharepoint-lists
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||||
|
|
||||||
# go run . sharepoint lists \
|
go run . sharepoint lists \
|
||||||
# --site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
--site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
--secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
--destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
||||||
# --count 4 |
|
--count 4 |
|
||||||
# awk 'NR > 1 {print $2}' | tr '\n' ',' | sed -e 's/,$//' -e 's/^/result=/' |
|
awk 'NR > 1 {print $2}' | tr '\n' ',' | sed -e 's/,$//' -e 's/^/result=/' |
|
||||||
# tee $GITHUB_OUTPUT
|
tee $GITHUB_OUTPUT
|
||||||
# # Extracts the common prefix for the Sharepoint list names.
|
# Extracts the common prefix for the Sharepoint list names.
|
||||||
# - name: SharePoint Lists - Store restore container
|
- name: SharePoint Lists - Store restore container
|
||||||
# id: sharepoint-lists-store-restore-container
|
id: sharepoint-lists-store-restore-container
|
||||||
# run: |
|
run: |
|
||||||
# echo ${{ steps.new-data-creation-sharepoint-lists.outputs.result }} |
|
echo ${{ steps.new-data-creation-sharepoint-lists.outputs.result }} |
|
||||||
# cut -d',' -f1 |
|
cut -d',' -f1 |
|
||||||
# cut -d'_' -f1,2,3,4,5 |
|
cut -d'_' -f1,2,3,4,5 |
|
||||||
# sed -e 's/^/result=/' |
|
sed -e 's/^/result=/' |
|
||||||
# tee $GITHUB_OUTPUT
|
tee $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: SharePoint Lists - Backup
|
- name: SharePoint Lists - Backup
|
||||||
# id: sharepoint-lists-backup
|
id: sharepoint-lists-backup
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: sharepoint
|
service: sharepoint
|
||||||
# kind: first-backup-lists
|
kind: first-backup-lists
|
||||||
# backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data lists'
|
backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data lists'
|
||||||
# restore-args: "--list ${{ steps.new-data-creation-sharepoint-lists.outputs.result }} --destination Corso_Test_Sanity_Restore_$(date +'%Y%m%d_%H%M%S') --allow-lists-restore"
|
restore-args: "--list ${{ steps.new-data-creation-sharepoint-lists.outputs.result }} --destination Corso_Test_Sanity_Restore_$(date +'%Y%m%d_%H%M%S') --allow-lists-restore"
|
||||||
# export-args: "--list ${{ steps.new-data-creation-sharepoint-lists.outputs.result }}"
|
export-args: "--list ${{ steps.new-data-creation-sharepoint-lists.outputs.result }}"
|
||||||
# restore-container: "${{ steps.sharepoint-lists-store-restore-container.outputs.result }}"
|
restore-container: "${{ steps.sharepoint-lists-store-restore-container.outputs.result }}"
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
# category: lists
|
category: lists
|
||||||
# on-collision: copy
|
on-collision: copy
|
||||||
|
|
||||||
# # generate some more enteries for incremental check
|
# generate some more enteries for incremental check
|
||||||
# - name: SharePoint Lists - Create new data (for incremental)
|
- name: SharePoint Lists - Create new data (for incremental)
|
||||||
# id: inc-data-creation-sharepoint-lists
|
id: inc-data-creation-sharepoint-lists
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# working-directory: ./src/cmd/factory
|
working-directory: ./src/cmd/factory
|
||||||
# run: |
|
run: |
|
||||||
# suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
suffix=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||||
|
|
||||||
# go run . sharepoint lists \
|
go run . sharepoint lists \
|
||||||
# --site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
--site ${{ vars.CORSO_M365_TEST_SITE_URL }} \
|
||||||
# --user ${{ env.TEST_USER }} \
|
--user ${{ env.TEST_USER }} \
|
||||||
# --secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
--secondaryuser ${{ env.CORSO_SECONDARY_M365_TEST_USER_ID }} \
|
||||||
# --tenant ${{ secrets.TENANT_ID }} \
|
--tenant ${{ secrets.TENANT_ID }} \
|
||||||
# --destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
--destination ${{ env.RESTORE_DEST_PFX }}$suffix \
|
||||||
# --count 4 |
|
--count 4 |
|
||||||
# awk 'NR > 1 {print $2}' | tr '\n' ',' | sed -e 's/,$//' -e 's/^/result=/' |
|
awk 'NR > 1 {print $2}' | tr '\n' ',' | sed -e 's/,$//' -e 's/^/result=/' |
|
||||||
# tee $GITHUB_OUTPUT
|
tee $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: SharePoint Lists - Store restore container (for incremental)
|
- name: SharePoint Lists - Store restore container (for incremental)
|
||||||
# id: sharepoint-lists-store-restore-container-inc
|
id: sharepoint-lists-store-restore-container-inc
|
||||||
# run: |
|
run: |
|
||||||
# echo ${{ steps.inc-data-creation-sharepoint-lists.outputs.result }} |
|
echo ${{ steps.inc-data-creation-sharepoint-lists.outputs.result }} |
|
||||||
# cut -d',' -f1 |
|
cut -d',' -f1 |
|
||||||
# cut -d'_' -f1,2,3,4,5 |
|
cut -d'_' -f1,2,3,4,5 |
|
||||||
# sed -e 's/^/result=/' |
|
sed -e 's/^/result=/' |
|
||||||
# tee $GITHUB_OUTPUT
|
tee $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: SharePoint Lists - Incremental backup
|
- name: SharePoint Lists - Incremental backup
|
||||||
# id: sharepoint-lists-incremental
|
id: sharepoint-lists-incremental
|
||||||
# timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
# uses: ./.github/actions/backup-restore-test
|
uses: ./.github/actions/backup-restore-test
|
||||||
# with:
|
with:
|
||||||
# service: sharepoint
|
service: sharepoint
|
||||||
# kind: incremental-lists
|
kind: incremental-lists
|
||||||
# backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data lists'
|
backup-args: '--site "${{ vars.CORSO_M365_TEST_SITE_URL }}" --data lists'
|
||||||
# restore-args: "--list ${{ steps.inc-data-creation-sharepoint-lists.outputs.result }},${{ steps.new-data-creation-sharepoint-lists.outputs.result }} --destination Corso_Test_Sanity_Restore_$(date +'%Y%m%d_%H%M%S') --allow-lists-restore"
|
restore-args: "--list ${{ steps.inc-data-creation-sharepoint-lists.outputs.result }},${{ steps.new-data-creation-sharepoint-lists.outputs.result }} --destination Corso_Test_Sanity_Restore_$(date +'%Y%m%d_%H%M%S') --allow-lists-restore"
|
||||||
# export-args: "--list ${{ steps.inc-data-creation-sharepoint-lists.outputs.result }},${{ steps.new-data-creation-sharepoint-lists.outputs.result }}"
|
export-args: "--list ${{ steps.inc-data-creation-sharepoint-lists.outputs.result }},${{ steps.new-data-creation-sharepoint-lists.outputs.result }}"
|
||||||
# restore-container: "${{ steps.sharepoint-lists-store-restore-container-inc.outputs.result }},${{ steps.sharepoint-lists-store-restore-container.outputs.result }}"
|
restore-container: "${{ steps.sharepoint-lists-store-restore-container-inc.outputs.result }},${{ steps.sharepoint-lists-store-restore-container.outputs.result }}"
|
||||||
# log-dir: ${{ env.CORSO_LOG_DIR }}
|
log-dir: ${{ env.CORSO_LOG_DIR }}
|
||||||
# with-export: true
|
with-export: true
|
||||||
# category: lists
|
category: lists
|
||||||
# on-collision: copy
|
on-collision: copy
|
||||||
|
|
||||||
##########################################################################################################################################
|
##########################################################################################################################################
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user