-
Notifications
You must be signed in to change notification settings - Fork 505
fix: Fix datasource acceptance tests setup part3 #3448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sfc-gh-asawicki
merged 34 commits into
dev
from
fix-datasource-acceptance-tests-setup-part3
Mar 18, 2025
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
41a3621
part 3 starts here
sfc-gh-asawicki ae88353
Fix masking policies datasource acceptance test setup
sfc-gh-asawicki 9c7ef88
Fix materialized views datasource acceptance test setup
sfc-gh-asawicki b5e552b
Fix network policies datasource acceptance test setup
sfc-gh-asawicki 8eb5296
Add network policies datasource model builder
sfc-gh-asawicki 6e3b559
Add network policy resource model builder
sfc-gh-asawicki 2b9459f
Use builders for network policies datasource test
sfc-gh-asawicki d01b8c8
Fix parameters datasource acceptance tests setup
sfc-gh-asawicki da8d7bd
Fix pipes datasource acceptance tests setup
sfc-gh-asawicki cd1718a
Fix procedures datasource acceptance tests setup
sfc-gh-asawicki 22a9ae0
Fix resource monitors datasource acceptance tests setup
sfc-gh-asawicki 84f4c65
Fix row access policies datasource acceptance tests setup
sfc-gh-asawicki a87ee4f
Generate schemas datasource model builder
sfc-gh-asawicki aef10b1
Improve schemas datasource acceptance test setup
sfc-gh-asawicki 68bdc6a
Improve schemas datasource acceptance test setup part2
sfc-gh-asawicki e303030
Improve schemas datasource acceptance test setup part3
sfc-gh-asawicki 033d914
Improve schemas datasource acceptance test setup part4
sfc-gh-asawicki 901e197
Add secrets datasource model builder
sfc-gh-asawicki 4405220
Improve setup for secrets datasource acceptance tests
sfc-gh-asawicki 711588e
Add EnableAcceptance to all security integrations datasource tests
sfc-gh-asawicki 00dba7d
Generate security integrations datasource model builder
sfc-gh-asawicki b682326
Generate scim and saml2 resources model builders
sfc-gh-asawicki ae89d93
Set up multiple security integrations datasource test using builders
sfc-gh-asawicki 4292b0a
Generate two api authentication integration model builders
sfc-gh-asawicki f268997
Set up test with code grant using builders
sfc-gh-asawicki 320c531
Set up test with client credentials using builders
sfc-gh-asawicki 330937c
Generate external oauth security integration model builders
sfc-gh-asawicki ef3621e
Set up external oauth security integration datasource acceptance test…
sfc-gh-asawicki 2e37a07
Set up oauth for custom clients datasource acceptance test using buil…
sfc-gh-asawicki e379c67
Set up oauth for partner applications datasource acceptance test usin…
sfc-gh-asawicki cf6e0f5
Set up saml2 datasource acceptance test using builders
sfc-gh-asawicki 9bff25e
Set up scim datasource acceptance test using builders
sfc-gh-asawicki cacedec
Set up security integrations filtering datasource acceptance test usi…
sfc-gh-asawicki e75e4a9
Apply remarks from the previous part review
sfc-gh-asawicki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
93 changes: 93 additions & 0 deletions
93
pkg/acceptance/bettertestspoc/config/datasourcemodel/network_policies_model_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
82 changes: 82 additions & 0 deletions
82
pkg/acceptance/bettertestspoc/config/datasourcemodel/resource_monitors_model_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
pkg/acceptance/bettertestspoc/config/datasourcemodel/schemas_model_ext.go
This file contains hidden or 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,32 @@ | ||
| package datasourcemodel | ||
|
|
||
| import ( | ||
| tfconfig "github.com/hashicorp/terraform-plugin-testing/config" | ||
|
|
||
| "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk" | ||
| ) | ||
|
|
||
| func (s *SchemasModel) WithLimit(rows int) *SchemasModel { | ||
| return s.WithLimitValue( | ||
| tfconfig.ObjectVariable(map[string]tfconfig.Variable{ | ||
| "rows": tfconfig.IntegerVariable(rows), | ||
| }), | ||
| ) | ||
| } | ||
|
|
||
| func (s *SchemasModel) WithRowsAndFrom(rows int, from string) *SchemasModel { | ||
| return s.WithLimitValue( | ||
| tfconfig.ObjectVariable(map[string]tfconfig.Variable{ | ||
| "rows": tfconfig.IntegerVariable(rows), | ||
| "from": tfconfig.StringVariable(from), | ||
| }), | ||
| ) | ||
| } | ||
|
|
||
| func (s *SchemasModel) WithIn(databaseId sdk.AccountObjectIdentifier) *SchemasModel { | ||
| return s.WithInValue( | ||
| tfconfig.ObjectVariable(map[string]tfconfig.Variable{ | ||
| "database": tfconfig.StringVariable(databaseId.Name()), | ||
| }), | ||
| ) | ||
| } | ||
131 changes: 131 additions & 0 deletions
131
pkg/acceptance/bettertestspoc/config/datasourcemodel/schemas_model_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.