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 static host user tests #47051

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Add static host user tests #47051

merged 1 commit into from
Oct 2, 2024

Conversation

atburke
Copy link
Contributor

@atburke atburke commented Oct 1, 2024

This change adds test coverage for the static host user handler in lib/srv/statichostuser.go.

Part of #42712.

@atburke atburke added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Oct 1, 2024
@atburke atburke requested a review from rosstimothy October 1, 2024 19:06
@github-actions github-actions bot requested review from espadolini and Tener October 1, 2024 19:07
Copy link
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

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

Thanks for adding test coverage Andrew!

@@ -142,7 +151,7 @@ func (s *StaticHostUserHandler) run(ctx context.Context) error {
return trace.Errorf("missing init event from watcher")
}
s.retry.Reset()
case <-time.After(staticHostUserWatcherTimeout):
case <-s.clock.After(staticHostUserWatcherTimeout):
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be a timer that we explicitly stop if it's using a clockwork.Clock.

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from Tener October 2, 2024 09:56
@atburke atburke force-pushed the atburke/static-user-tests branch from 325c6bb to c0678aa Compare October 2, 2024 16:48
@atburke atburke enabled auto-merge October 2, 2024 16:48
@atburke atburke added this pull request to the merge queue Oct 2, 2024
Merged via the queue into master with commit c49eb98 Oct 2, 2024
39 checks passed
@atburke atburke deleted the atburke/static-user-tests branch October 2, 2024 17:21
@public-teleport-github-review-bot

@atburke See the table below for backport results.

Branch Result
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants