fix tests/integration/app_restore.bats
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/pr Build is passing
				
			This commit is contained in:
		| @ -109,13 +109,13 @@ teardown(){ | ||||
|   assert_success | ||||
|  | ||||
|   run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status | ||||
|   assert_output --partial 'behind 3' | ||||
|   assert_output --partial "Your branch is behind 'origin/main' by 3 commits" | ||||
|  | ||||
|   run $ABRA app restore "$TEST_APP_DOMAIN" app DOESNTEXIST | ||||
|   run $ABRA app restore "$TEST_APP_DOMAIN" app | ||||
|   assert_failure | ||||
|  | ||||
|   run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status | ||||
|   refute_output --partial 'behind 3' | ||||
|   assert_output --partial "Your branch is up to date with 'origin/main'" | ||||
| } | ||||
|  | ||||
| @test "ensure recipe not up to date if --offline" { | ||||
| @ -126,19 +126,19 @@ teardown(){ | ||||
|   assert_success | ||||
|  | ||||
|   run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status | ||||
|   assert_output --partial 'behind 3' | ||||
|   assert_output --partial "Your branch is behind 'origin/main' by 3 commits" | ||||
|  | ||||
|   run $ABRA app restore "$TEST_APP_DOMAIN" app DOESNTEXIST --offline | ||||
|   run $ABRA app restore "$TEST_APP_DOMAIN" app --offline | ||||
|   assert_failure | ||||
|  | ||||
|   run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status | ||||
|   assert_output --partial 'behind 3' | ||||
|   assert_output --partial "Your branch is behind 'origin/main' by 3 commits" | ||||
|  | ||||
|   run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" checkout "$latestCommit" | ||||
|   assert_success | ||||
|  | ||||
|   run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status | ||||
|   refute_output --partial 'behind 3' | ||||
|   assert_output --partial "HEAD detached at $latestCommit" | ||||
| } | ||||
|  | ||||
| @test "error if missing service" { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user