@@ -29,8 +29,6 @@ wait_for_running $cluster-rs2 3
2929wait_for_running $cluster -cfg 3 " false"
3030wait_for_running $cluster -mongos 3
3131
32- sleep 10
33-
3432desc ' write data without auth'
3533run_mongos \
3634 ' use myApp\n db.createCollection("test")' \
@@ -55,8 +53,6 @@ desc 'run backup without auth'
5553run_backup minio ${backup_name_no_auth}
5654wait_backup " $backup_name_no_auth "
5755
58- sleep 5
59-
6056desc ' insert new data without auth'
6157run_mongos \
6258 ' use myApp\n db.test.insert({x: 100501})' \
@@ -69,8 +65,6 @@ desc 'restore from backup (no auth)'
6965run_restore " $backup_name_no_auth "
7066wait_restore " $backup_name_no_auth " " $cluster "
7167
72- sleep 20
73-
7468desc ' verify data was restored to original state'
7569compare_mongos_cmd " find" " @$cluster -mongos.$namespace " " -after-restore" " " " myApp" " test" " $custom_port "
7670
@@ -107,8 +101,6 @@ desc 'run backup with auth enabled'
107101run_backup minio ${backup_name_with_auth}
108102wait_backup " $backup_name_with_auth "
109103
110- sleep 5
111-
112104desc ' insert more data with auth'
113105run_mongos \
114106 ' use myApp\n db.test.insert({x: 200501})' \
@@ -121,8 +113,6 @@ desc 'restore from backup (with auth)'
121113run_restore " $backup_name_with_auth "
122114wait_restore " $backup_name_with_auth " " $cluster "
123115
124- sleep 10
125-
126116desc ' verify data was restored to state before last insert'
127117compare_mongos_cmd " find" " myApp:myPass@$cluster -mongos.$namespace " " -after-restore-auth" " " " myApp" " test" " $custom_port "
128118
0 commit comments