forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gcloud)!: add support to seed data when using RunBigQueryContain…
…er (testcontainers#2523) * Update bigquery container to have an optional seed yaml file * update opts snippet to handle error; update documentation * Update based on feedback * chore: use new API for running big query container * chore: run make lint * chore: use testify's require * chore: remove unused * fix: process yaml file just once * chore: rename variable * chore: run mod tidy * chore: pass a reader to WithDataYAML option * chore: do not allow multiple calls to WithDataYAML * chore: embed test resource * chore: simplify reader * fix: update docs * chore: use the embed file even more * docs: wording * chore: simplify tests * chore: use original assertion --------- Co-authored-by: Manuel de la Peña <[email protected]>
- Loading branch information
1 parent
8b4fa8e
commit 35bf0cd
Showing
6 changed files
with
165 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
projects: | ||
- id: test | ||
datasets: | ||
- id: dataset1 | ||
tables: | ||
- id: table_a | ||
columns: | ||
- name: id | ||
type: INTEGER | ||
- name: name | ||
type: STRING | ||
- name: createdAt | ||
type: TIMESTAMP | ||
data: | ||
- id: 1 | ||
name: alice | ||
createdAt: "2022-10-21T00:00:00" | ||
- id: 30 | ||
name: bob | ||
createdAt: "2022-10-21T00:00:00" |