@@ -31,29 +31,32 @@ pull_health_checks() {
3131}
3232push_health_checks () {
3333 # set -x
34- # Add a junk value into local database so we can test it arrives in push environment
35- ddev mysql -e " INSERT INTO ezpage_zones VALUES(18, 'junk');"
34+ # Add a new value into local database so we can test it arrives in push environment
35+ ddev mysql -e " INSERT INTO ezpage_zones VALUES(18, 'push-mysql-insertion');"
36+ run ddev mysql -e " SELECT name FROM ezpage_zones WHERE id=18;"
37+ assert_success
38+ assert_output --partial " push-mysql-insertion"
3639 # make sure it doesn't already exist upstream
3740 ddev ibexa_cloud db:sql -p ${IBEXA_PROJECT} -e push -- ' DELETE from ezpage_zones;'
3841 run ddev ibexa_cloud db:sql -p ${IBEXA_PROJECT} -e push -- ' SELECT COUNT(*) FROM ezpage_zones WHERE id=18;'
3942 assert_line --index 1 --regexp " ^ *0 *"
4043
41- # Add a junk file into local mount so we can test it arrives in push
42- run ddev ibexa_cloud ssh -p ${IBEXA_PROJECT} -e push -- rm -f var/encore/junk .txt
44+ # Add a spare file into local mount so we can test it arrives in push
45+ run ddev ibexa_cloud ssh -p ${IBEXA_PROJECT} -e push -- rm -f var/encore/files-push-test .txt
4346 assert_success
4447 # Verify that it doesn't exist to start with
45- run ddev ibexa_cloud ssh -p ${IBEXA_PROJECT} -e push -- ls var/encore/junk .txt
48+ run ddev ibexa_cloud ssh -p ${IBEXA_PROJECT} -e push -- ls var/encore/files-push-test .txt
4649 assert_failure
47- touch ${TESTDIR} /var/encore/junk .txt
50+ touch ${TESTDIR} /var/encore/files-push-test .txt
4851 ddev mutagen sync
4952
5053 run ddev push ibexa-cloud --environment=IBEXA_ENVIRONMENT=push -y
5154 assert_success
5255 # Verify that our new record now exists
5356 run ddev ibexa_cloud db:sql -p ${IBEXA_PROJECT} -e push -- ' SELECT name FROM ezpage_zones WHERE id=18;'
54- assert_output --partial junk
57+ assert_output --partial push-mysql-insertion
5558 # Verify the new file exists
56- run ddev ibexa_cloud ssh -p ${IBEXA_PROJECT} -e push -- ls var/encore/junk .txt
59+ run ddev ibexa_cloud ssh -p ${IBEXA_PROJECT} -e push -- ls var/encore/files-push-test .txt
5760 assert_success
5861}
5962
0 commit comments