Skip to content

Add test for ready endpoint#228

Merged
hawkw merged 13 commits intomasterfrom
eliza/id-readiness-tests
Apr 2, 2019
Merged

Add test for ready endpoint#228
hawkw merged 13 commits intomasterfrom
eliza/id-readiness-tests

Conversation

@hawkw
Copy link
Contributor

@hawkw hawkw commented Mar 28, 2019

Depends on #227

This branch adds a proxy integration test for the /ready endpoint. The
test asserts that when a proxy has not yet had its identity certified by
the Identity service, it does not consider itself "ready", and that a it
becomes ready after its identity is certified.

See also linkerd/linkerd2#2505

Signed-off-by: Eliza Weisman [email protected]

@hawkw hawkw self-assigned this Mar 28, 2019
@hawkw hawkw requested a review from olix0r March 28, 2019 22:52
@hawkw hawkw changed the title Eliza/id readiness tests Add test for ready endpoint Mar 28, 2019
@hawkw hawkw changed the base branch from master to eliza/the-test-identity March 28, 2019 22:53
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

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

thanks!

@hawkw hawkw changed the base branch from eliza/the-test-identity to master April 2, 2019 04:15
hawkw added 4 commits April 1, 2019 21:17
Signed-off-by: Eliza Weisman <[email protected]>
These were previously disabled on master, but re-enabled when support
for identity was added to the test support code. PR #231 also broke
these tests, but didn't add an ignore attribute because they were already
disabled when that branch was forked.

Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw merged commit b4208ae into master Apr 2, 2019
hawkw added a commit that referenced this pull request Apr 2, 2019
Depends on #227 and #228.

This branch adds a new integration test that asserts that a proxy will
refresh its identity before the specified expiration time.

I also added a `trace` log in the `identity` module that logs the actual
duration we will wait before attempting to refresh. This was useful when
debugging why this test was failing (it was because I neglected to set
the LINKERD2_PROXY_IDENTITY_MIN_REFRESH env var, and it defaulted to 10
seconds). I felt like it was useful to log the actual duration we will
wait as well as the `SystemTime` when the cert expires, but I'm happy to
back that commit off if we don't actually want that log line.

Closes linkerd/linkerd2#2505

Signed-off-by: Eliza Weisman <[email protected]>
@olix0r olix0r deleted the eliza/id-readiness-tests branch August 17, 2019 01:35
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