Skip to content

fix: Fix resource acceptance tests setup part4#3504

Merged
sfc-gh-asawicki merged 16 commits into
devfrom
fix-resource-acceptance-tests-setup-part4
Apr 2, 2025
Merged

fix: Fix resource acceptance tests setup part4#3504
sfc-gh-asawicki merged 16 commits into
devfrom
fix-resource-acceptance-tests-setup-part4

Conversation

@sfc-gh-asawicki

@sfc-gh-asawicki sfc-gh-asawicki commented Apr 1, 2025

Copy link
Copy Markdown
Contributor

Continuation of #3443, #3445, #3448, #3449, #3450, #3480, and #3489.

Use the pre-created database or create a database with the parameters set (resource - part4):

  • the pre-created database not changed yet (it still does not have the parameters)
  • going alphabetically through resources, last one was secondary database
  • remove database from setups where not needed
  • add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)

Next PRs:

  • resources continuation (1 more PR est.)
  • pre-created database changes
  • follow-up for the problematic ones

@sfc-gh-asawicki sfc-gh-asawicki marked this pull request as ready for review April 1, 2025 13:59
@sfc-gh-asawicki sfc-gh-asawicki requested a review from a team as a code owner April 1, 2025 13:59
@github-actions

github-actions Bot commented Apr 1, 2025

Copy link
Copy Markdown

Integration tests success for 3d43f2ea1f5f5ea183a1aeb7b41a313ff8646f84

resource.TestCheckResourceAttr("snowflake_schema.test", "show_output.0.comment", ""),
resource.TestCheckResourceAttr("snowflake_schema.test", "show_output.0.options", ""),
resource.TestCheckResourceAttr(basicSchemaModel.ResourceReference(), "name", id.Name()),
resource.TestCheckResourceAttr(basicSchemaModel.ResourceReference(), "database", acc.TestDatabaseName),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: why acc.TestDatabaseName here?

@sfc-gh-asawicki sfc-gh-asawicki merged commit 6a3b69c into dev Apr 2, 2025
@sfc-gh-asawicki sfc-gh-asawicki deleted the fix-resource-acceptance-tests-setup-part4 branch April 2, 2025 13:02
sfc-gh-asawicki added a commit that referenced this pull request Apr 4, 2025
Continuation of
#3443,
#3445,
#3448,
#3449,
#3450,
#3480,
#3489,
and
#3504.

Use the pre-created database or create a database with the parameters
set (resource - part, last):
- the pre-created database not changed yet (it still does not have the
parameters)
- going alphabetically through resources, all completed
- remove database from setups where not needed
- add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)
- generate shared database resource config builder

Next PRs:
- pre-created database changes
- fix a few failing tests from different runs
- follow-up for the problematic ones
sfc-gh-asawicki added a commit that referenced this pull request Apr 7, 2025
Continuation of
#3443,
#3445,
#3448,
#3449,
#3450,
#3480,
#3489,
#3504,
and
#3514.

- change the pre-created database (set parameters)
- fix a few failing tests from different runs
- replace external providers setup with the existing function

Next PRs:
- follow-up for the problematic tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants