Skip to content
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

feat(Harness): add some support for user secrets #1167

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

jameinel
Copy link
Member

@jameinel jameinel commented Mar 26, 2024

At least we should support if a config entry has a 'secret' stanza, which is supported in juju 3.4. It doesn't do all the things yet, but a rough cut.

This allows for testing.Harness to understand config entries of type Secret. It might be arguable that the testing harness should also be validating the content of those secret keys, such that they should conform to a secret identifier. However, this at least got me past the point of getting failures just because my charm declared the type (well, and it declared the default which it really shouldn't do anyway).

See #1166

At least we should support if a config entry has a 'secret' stanza, which is
supported in juju 3.4. It doesn't do all the things yet, but a rough cut.
Copy link
Contributor

@tonyandrewmeyer tonyandrewmeyer left a comment

Choose a reason for hiding this comment

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

We're going to continue work on this (I'll note that in the issue), but get this into 2.12 in the meantime so that it unblocks using this, even if it's not perfect yet.

ops/testing.py Outdated Show resolved Hide resolved
@tonyandrewmeyer
Copy link
Contributor

The linting failures are related to the docs theme work. Once the final part of that is merged in, I'll update this branch and they should be ok.

@IronCore864 IronCore864 changed the title Add some support for user secrets to testing Harness. feat(Harness): add some support for user secrets Mar 28, 2024
@IronCore864 IronCore864 merged commit 335f4bd into canonical:main Mar 28, 2024
28 checks passed
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