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

add area join support and test (#381) #397

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

larrytamnjong
Copy link
Contributor

No description provided.

Copy link
Contributor Author

@larrytamnjong larrytamnjong Nov 19, 2024

Choose a reason for hiding this comment

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

Hi @marcin-krystianc
I'm confused about this. Which address should I provide for the test?

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you try to run it locally ? What are the logs in the consul agent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's an EnterpriseOnlyFact so it skips when running locally.

Copy link
Contributor

Choose a reason for hiding this comment

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

It is possible to run enterprise tests locally. You can download the old version (e.g. 1.9+ent of enterprise consul which will run locally for an hour). Then you need either set the appropriate env variable or just replace the tests attribute with [Fact].

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marcin-krystianc here is the response from the consul agent
image

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know that consul feature, so I'm not sure if it is even possible to make a successful area join request.
In worst case we can have a test with an unsuccessful call and an assertion for the exception we get back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @marcin-krystianc I guess i can mark this as a draft and come back to it later.

@larrytamnjong larrytamnjong marked this pull request as draft November 26, 2024 17:24
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.

2 participants