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

docs: add a how-to for setting open ports #1579

Merged
merged 10 commits into from
Feb 18, 2025

Conversation

tonyandrewmeyer
Copy link
Contributor

Add a basic how-to guide that covers using Unit.set_ports to set which ports are open, and unit and integration tests for such.

The intention is that this replaces the tutorial chapter (see #1511).

Copy link
Contributor

@james-garner-canonical james-garner-canonical left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Comment on lines +57 to +58
To verify that the correct ports are open in an integration test, deploy your
charm as usual, and then try to connect to the appropriate ports.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice 😄 In this sense, integration tests are so much simpler...!

Copy link
Contributor

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

I've finished reviewing @tonyandrewmeyer, I think this is going to be a helpful new doc. Thanks!

@tonyandrewmeyer tonyandrewmeyer merged commit a83ffef into canonical:main Feb 18, 2025
32 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the doc-how-to-open-ports branch February 18, 2025 22:34
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