-
Notifications
You must be signed in to change notification settings - Fork 10.1k
PSS: Let the init
command recognise when there are no changes in configuration.
#37777
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
+1,032
−292
Merged
Changes from 21 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
dff4555
Pull determining of PSS provider's version from current locks into a …
SarahFrench bd41b67
Add code for identifying when config and provider version match exist…
SarahFrench 141478a
Update test - locks are now needed before it hits expected error diag…
SarahFrench 5c77b8d
Add test showing successful init when no config changes are detected.
SarahFrench bda07d4
Update `getStateStorageProviderVersion` to return nil versions for bu…
SarahFrench c4c5b1b
Add test coverage for `getStateStorageProviderVersion`
SarahFrench 3aeb44f
Move testing fixtures around, preparing for different types of change…
SarahFrench 5f43a22
Add test showing that changing the state_store config is detected as …
SarahFrench 5ede062
Update hashes in test fixture backend state file to be accurate
SarahFrench 690ce23
Update existing test cases so that Terraform uses the same test provi…
SarahFrench 0d6e33b
Add test showing that changing the PSS provider's config is detected …
SarahFrench 7899855
Add test showing that swapping to a different state storage implement…
SarahFrench e8579b9
Add test showing that changing the provider used for PSS is detected …
SarahFrench d1146c8
Add test showing that upgrading a provider is detected as a change, b…
SarahFrench eb205a7
Update test to use v1.2.3 for consistency with other tests
SarahFrench 3e5495e
More corrections to existing test fixtures - unset config should be n…
SarahFrench b485cd8
Fix test for using -reconfigure with state_store; the default workspa…
SarahFrench 0b3e759
Update TestInit_stateStore_configUnchanged to assert that init was a …
SarahFrench 62394f8
Remove unused fixture
SarahFrench 3ffe9a7
Remove test that's replaced by new tests in command/init_test.go
SarahFrench 9d6464d
Replace old references to deleted "state-store-changed" test fixture …
SarahFrench 74fd9b2
Make test fixture coupling a little more understandable
SarahFrench 9db12fd
Refactor detection of no need to migrate into a function
SarahFrench 2e7c182
Add TODO about more involved provider version change tests
SarahFrench a68dd2b
Update (configs.StateStore)Hash method to return a single hash that's…
SarahFrench 07c4ce2
Update calling code and test helper code to reflect that the nested p…
SarahFrench 4cb4773
Remove test; there is now a single hash that SHOULD be affected by th…
SarahFrench 25e4dc2
Also use provider name, from config, in hash
SarahFrench 5b11631
Update tests to reflect changes in how hashes are made
SarahFrench 9d1c54a
Remove unused `stateStoreConfigNeedsMigration` function
SarahFrench 63ce4e7
Remove duplicate isProviderReattached function.
SarahFrench f2cbb3b
Fixes to affected tests
SarahFrench 647bca7
Allow provider version to impact the state storage hash, update impac…
SarahFrench ce766f5
Update tests that now require locks data to be present in test setup
SarahFrench e585e61
Update comment for accuracy
SarahFrench 848b369
Fixes to other test fixtures - remove excess hash field, set hash to …
SarahFrench 82f939a
Make upgrade test actually use upgrade code path
SarahFrench 24be93c
Add lock files to test fixture directories that represent a project t…
SarahFrench 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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.