canonical / canonical/microcloud

Grab passphrase on demand during tests

Open
#1,320 0 comments 0 reactions 0 assignees View on GitHub
Feature Jira
Dominant language
Go
Stars
532
Forks
83
Avg merge
1d 14h
Merged PRs (30d)
36

Description

To support testing various different snap versions in the test suite, we should bring back support to grab the trust establishment passphrase from stdout. This is what [we did originally](https://github.com/canonical/microcloud/pull/383/changes#diff-439a2a1d53a67caf300c4abd74eb1a3561bcfe682eef6450d94ef4bcee815285R180).

By doing this, we don't require a specific binary which is built with testing mode but instead can run the binary inside the snap and simply grab its passphrase for the joiners.
This also requires `TEST_CONSOLE=(0|1)` environment variable to be present again in the regular snap binary to be able to switch to non-interactive input mode.

Also this requires backport to `v2` so we can start testing `2/candidate` in the weekly pipeline.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.