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

client: hookup service wrapper for use in clients #12329

Merged
merged 2 commits into from
Mar 22, 2022

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Mar 21, 2022

This PR modifies the client task and alloc runners to utilise the new service registration wrapper. The service hooks have also been updated to use the wrapper along with some naming improvements which were previously Consul specific.

In order to handle a test case, the wrapper has been slightly modified. The function has a comment which details this change. Additional testing via table driven test should be added in the future.

closes https://github.com/hashicorp/team-nomad/issues/266

@jrasell jrasell added this to the 1.3.0 milestone Mar 21, 2022
@jrasell jrasell requested a review from shoenig March 21, 2022 10:00
@jrasell jrasell self-assigned this Mar 21, 2022
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM; just the Parallel changes. You may want to rebase with main first.

// TestGroupServiceHook_GroupServices_Nomad asserts group service hooks with
// group services does not error when using the Nomad provider.
func TestGroupServiceHook_GroupServices_Nomad(t *testing.T) {
t.Parallel()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
t.Parallel()
ci.Parallel(t)

These should get caught by Semgrep if you rebase with main

// Test_serviceHook_Nomad performs a normal operation test of the serviceHook
// when using task services which utilise the Nomad provider.
func Test_serviceHook_Nomad(t *testing.T) {
t.Parallel()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
t.Parallel()
ci.Parallle(t)

@jrasell
Copy link
Member Author

jrasell commented Mar 22, 2022

LGTM; just the Parallel changes. You may want to rebase with main first.

Discussed internally; will rebase the feature branch shortly and address the changes needed.

@jrasell jrasell merged commit b6f1e9d into f-1.3-boogie-nights Mar 22, 2022
@jrasell jrasell deleted the f-gh-266-touchdown branch March 22, 2022 09:42
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants