Skip to content

fix: Fix datasource acceptance tests setup part4#3449

Merged
sfc-gh-asawicki merged 30 commits into
devfrom
fix-datasource-acceptance-tests-setup-part4
Mar 18, 2025
Merged

fix: Fix datasource acceptance tests setup part4#3449
sfc-gh-asawicki merged 30 commits into
devfrom
fix-datasource-acceptance-tests-setup-part4

Conversation

@sfc-gh-asawicki

@sfc-gh-asawicki sfc-gh-asawicki commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

Continuation of #3443, #3445, and #3448.

Use the pre-created database or create a database with the parameters set (part 4):

  • the pre-created database not changed yet (it still does not have the parameters)
  • going alphabetically, datasources finished
  • generate model builders for Streamlit resource
  • generate model builders for Streamlits, Streams, Tags, Tasks, Users, Views, and Warehouses datasources
  • remove file setups when unnecessary (do not migrate the ones with complex multiresource setups)
  • add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)
  • do not add the builders for non-stable datasources
  • address issues from the previous review
  • expect AAD_PROVISIONER role at test setup
  • change default connection helper constructor

Next PRs:

  • resources
  • pre-created database changes

@github-actions

Copy link
Copy Markdown

Integration tests failure for 6eeda64aae512732e32db28e490be949beed25d4

Base automatically changed from fix-datasource-acceptance-tests-setup-part3 to dev March 18, 2025 11:25
@sfc-gh-asawicki sfc-gh-asawicki force-pushed the fix-datasource-acceptance-tests-setup-part4 branch from 6eeda64 to 7155edf Compare March 18, 2025 11:31
@sfc-gh-asawicki sfc-gh-asawicki merged commit 935d969 into dev Mar 18, 2025
@sfc-gh-asawicki sfc-gh-asawicki deleted the fix-datasource-acceptance-tests-setup-part4 branch March 18, 2025 11:32
sfc-gh-jmichalak pushed a commit that referenced this pull request Mar 24, 2025
Continuation of
#3443,
#3445,
and
#3448.

Use the pre-created database or create a database with the parameters
set (part 4):
- the pre-created database not changed yet (it still does not have the
parameters)
- going alphabetically, datasources finished
- generate model builders for Streamlit resource
- generate model builders for Streamlits, Streams, Tags, Tasks, Users,
Views, and Warehouses datasources
- remove file setups when unnecessary (do not migrate the ones with
complex multiresource setups)
- add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)
- do not add the builders for non-stable datasources
- address issues from the previous review
- expect AAD_PROVISIONER role at test setup
- change default connection helper constructor

Next PRs:
- resources
- pre-created database changes
sfc-gh-jmichalak pushed a commit that referenced this pull request Mar 25, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.0.5](v1.0.4...v1.0.5)
(2025-03-25)


### 🔧 **Misc**

* Bump tracking version to v1.0.5
([#3460](#3460))
([2af79e6](2af79e6))
* Bump tracking version to v1.0.5
([#3460](#3460))
([3aaf555](3aaf555))
* Document godebug flag usage
([#3429](#3429))
([5f04947](5f04947))
* Document godebug flag usage
([#3429](#3429))
([2dce172](2dce172))
* fix failing tests
([#3428](#3428))
([884ca54](884ca54))
* fix failing tests
([#3428](#3428))
([245fd86](245fd86))
* Fix migration guide
([#3468](#3468))
([6540841](6540841))
* GitHub actions cleanup
([#3431](#3431))
([1cc6d80](1cc6d80))
* GitHub actions cleanup
([#3431](#3431))
([a6e7429](a6e7429))
* Protect pentesting user and role from sweepers
([#3426](#3426))
([1478c5e](1478c5e))
* Protect pentesting user and role from sweepers
([#3426](#3426))
([6354dba](6354dba))
* Remove driver instrumentation
([#3439](#3439))
([61802a8](61802a8))
* Remove driver instrumentation
([#3439](#3439))
([e9fc6ed](e9fc6ed))
* Remove SF_TF_ADDITIONAL_DEBUG_LOGGING
([#3441](#3441))
([cab63e9](cab63e9))
* Remove SF_TF_ADDITIONAL_DEBUG_LOGGING
([#3441](#3441))
([b57db81](b57db81))
* Update GitHub actions
([#3455](#3455))
([3b027a8](3b027a8))
* Update GitHub actions
([#3455](#3455))
([368f090](368f090))
* Use environmental secrets in GitHub Actions
([#3440](#3440))
([6048977](6048977))
* Use environmental secrets in GitHub Actions
([#3440](#3440))
([8e5a262](8e5a262))


### 🐛 **Bug fixes:**

* Add boolean env validations and unit tests for TOML config validation
([#3453](#3453))
([c113928](c113928))
* Add boolean env validations and unit tests for TOML config validation
([#3453](#3453))
([408db4e](408db4e))
* Adjust docs
([#3451](#3451))
([46d071d](46d071d))
* Adjust docs
([#3451](#3451))
([29b0e4d](29b0e4d))
* Apply new assertions setup
([#3409](#3409))
([e5fdced](e5fdced))
* Apply new assertions setup
([#3409](#3409))
([af83da0](af83da0))
* Correct a typo in a tag resource example
([#3446](#3446))
([a0202d1](a0202d1))
* Correct a typo in a tag resource example
([#3446](#3446))
([afd19a2](afd19a2))
* Fix datasource acceptance tests setup part1
([#3443](#3443))
([58126ea](58126ea))
* Fix datasource acceptance tests setup part1
([#3443](#3443))
([5046654](5046654))
* Fix datasource acceptance tests setup part2
([#3445](#3445))
([6c7ceeb](6c7ceeb))
* Fix datasource acceptance tests setup part2
([#3445](#3445))
([4ba2bb6](4ba2bb6))
* Fix datasource acceptance tests setup part3
([#3448](#3448))
([5475c69](5475c69))
* Fix datasource acceptance tests setup part3
([#3448](#3448))
([f6fdc17](f6fdc17))
* Fix datasource acceptance tests setup part4
([#3449](#3449))
([04e082a](04e082a))
* Fix datasource acceptance tests setup part4
([#3449](#3449))
([935d969](935d969))
* Fix tasks tests
([#3434](#3434))
([33ab740](33ab740))
* Fix tasks tests
([#3434](#3434))
([b5457f6](b5457f6))
* Handle TOML file permissions
([#3444](#3444))
([6c746b4](6c746b4))
* Handle TOML file permissions
([#3444](#3444))
([e4ed171](e4ed171))
* Limit TOML file size
([#3432](#3432))
([55fcbe3](55fcbe3))
* Limit TOML file size
([#3432](#3432))
([2e12981](2e12981))
* Quick fix assertions
([#3438](#3438))
([0e05c6f](0e05c6f))
* Quick fix assertions
([#3438](#3438))
([a430ba7](a430ba7))
* Skip file permission verification by default
([#3476](#3476))
([562173d](562173d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: snowflake-release-please[bot] <105954990+snowflake-release-please[bot]@users.noreply.github.com>
sfc-gh-asawicki added a commit that referenced this pull request Mar 25, 2025
Continuation of
#3443,
#3445,
#3448,
and
#3449.

Use the pre-created database or create a database with the parameters
set (resource - part1):
- the pre-created database not changed yet (it still does not have the
parameters)
- going alphabetically through resources, last one was grant ownership
- generate model builders for AccountRole resource
- remove file setups when unnecessary (do not migrate the ones with
complex multiresource setups)
- remove database from setups where not needed
- add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)
- do not add the builders for non-stable datasources
- skip tests in the database resource and in
external_oauth_integration_acceptance_test.go (follow-up needed for
these to discuss and address all the nondeterministic tests)
- remove tests for parameters that can be set on other level than
account (in pkg/resources/account_parameter_acceptance_test.go)

Next PRs:
- resources continuation (1 or 2 more PRs)
- pre-created database changes
- follow-up for the problematic ones
sfc-gh-asawicki added a commit that referenced this pull request Mar 27, 2025
Continuation of
#3443,
#3445,
#3448,
#3449,
and
#3450.

Use the pre-created database or create a database with the parameters
set (resource - part2):
- the pre-created database not changed yet (it still does not have the
parameters)
- going alphabetically through resources, last one was grant privileges
to database role
- remove database from setups where not needed
- add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)
- renamed database client method for database with parameters
- added helper method to the database client helper

Next PRs:
- resources continuation (1 more PR est.)
- pre-created database changes
- follow-up for the problematic ones
sfc-gh-asawicki added a commit that referenced this pull request Mar 28, 2025
Continuation of
#3443,
#3445,
#3448,
#3449,
#3450,
and
#3480.

Use the pre-created database or create a database with the parameters
set (resource - part3):
- the pre-created database not changed yet (it still does not have the
parameters)
- going alphabetically through resources, last one was oauth integration
for partner applications
- remove database from setups where not needed
- add missing testenvs.EnableAcceptance and acc.TestAccPreCheck(t)
- adjust tests after BCR 2024_08 general availability
  - secondary roles
  - defaults in users
  - managed account show changes
  - sync_password default change in scim
- `TestAcc_User_handleChangesToDefaultSecondaryRoles` skipped for now
(next PR)
- `TestAcc_User_migrateFromVersion094_noDefaultSecondaryRolesSet`
removed completely because of lack of way to set it up with current
"ALL" default and 0.94.1 version of the provider not allowing to set it
up through resource
- some tests started to fail because of the secondary roles default on
the CI user - changed it back to empty
- adjust to changes in validation of network policy (`Error: 098519
(22023): Empty network policy [id] cannot be active.`)
- adjust changes in validation for network rules addition (ENGRESS ->
INGRESS changes in tests)
- merge two upgrader helper files

Next PRs:
- resources continuation (1 more PR est.)
- pre-created database changes
- follow-up for the problematic ones
sfc-gh-asawicki added a commit that referenced this pull request Apr 2, 2025
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 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