Skip to content

Conversation

@SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Nov 11, 2025

Following #37569, this PR demonstrates that these commands work when pluggable state storage is in use:

  • state identities
  • state list
  • state mv
  • state replace-provider
  • state rm
  • state pull
  • state push
  • state show

This PR mostly implements integration tests, but adds E2E tests for state list and state show.

Target Release

N/A

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Nov 11, 2025
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: the test will still need to build the appropriate binary and put it in a folder here that's named appropriately for the platform that is running the test.

Base automatically changed from pss/make-worspace-new-work-with-pss to main November 19, 2025 12:50
@SarahFrench SarahFrench marked this pull request as ready for review November 20, 2025 14:46
@SarahFrench SarahFrench requested a review from a team as a code owner November 20, 2025 14:46
@SarahFrench
Copy link
Member Author

Ooh, actually I'm going to add a non-E2E version of the tests to help with code coverage reporting, moving to draft.

@SarahFrench SarahFrench marked this pull request as draft November 20, 2025 14:47
@SarahFrench SarahFrench changed the title PSS: Add E2E tests showing state subcommands being used with PSS PSS: Add E2E tests showing state show and state list subcommands being used with PSS Nov 21, 2025
@SarahFrench SarahFrench changed the title PSS: Add E2E tests showing state show and state list subcommands being used with PSS PSS: Add E2E and integration tests showing state show and state list subcommands being used with PSS Nov 21, 2025
@SarahFrench SarahFrench changed the title PSS: Add E2E and integration tests showing state show and state list subcommands being used with PSS PSS: Add tests showing state subcommands being used with PSS Nov 21, 2025
@SarahFrench SarahFrench force-pushed the pss/pss-with-state-commands branch from 42c2a77 to 28e61ce Compare November 21, 2025 19:14
@SarahFrench SarahFrench force-pushed the pss/pss-with-state-commands branch from 28e61ce to cebf4a5 Compare November 24, 2025 13:11
@SarahFrench SarahFrench marked this pull request as ready for review November 24, 2025 14:49
…egration with pluggable state storage code.
…mand under test.

This test fixure is reused across tests that need the config to define a state store but otherwise rely on the mock provider to set up the test scenario.
Copy link
Member Author

Choose a reason for hiding this comment

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

The push command has its own test fixture, versus the shared internal/command/testdata/state-commands-state-store, because it needs a local state file to be the data that's pushed up to the state store.

SarahFrench and others added 3 commits November 24, 2025 17:01
The internal/command/testdata/state-commands-state-store and internal/command/testdata/state-store-unchanged test fixtures are the same.
…using grpcwrap package

This was removed, incorrectly, in #37899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant