Skip to content

Commit

Permalink
Merge pull request #363 from bruin-data/downstream-integration-test
Browse files Browse the repository at this point in the history
added integration test for the downstream flag
  • Loading branch information
terzioglub authored Dec 27, 2024
2 parents 7390803 + b692177 commit 70d8215
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration-tests/integration-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ func main() {
0,
[]string{"Executed 3 tasks", " Finished: chess_playground.games", "Finished: chess_playground.profiles", "Finished: chess_playground.game_outcome_summary"},
)
expectOutputIncludes(
"run --downstream ./chess-extended/assets/game_outcome_summary.sql",
0,
[]string{"Executed 4 tasks", " Finished: chess_playground.game_outcome_summary", "Finished: chess_playground.game_outcome_summary:total_games:positive", "Finished: chess_playground.player_summary", " Finished: chess_playground.player_summary:total_games:non_negative"},
)
expectOutputIncludes(
"run --downstream --only main ./chess-extended/assets/game_outcome_summary.sql",
0,
[]string{"Executed 2 tasks", " Finished: chess_playground.game_outcome_summary", "Finished: chess_playground.player_summary"},
)
expectOutputIncludes(
"run --push-metadata --only push-metadata bigquery-metadata",
0,
Expand Down

0 comments on commit 70d8215

Please sign in to comment.