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
Backfill Tentacle-Deployment tests #149
Conversation
|
asserts: | ||
- equal: | ||
path: metadata.name | ||
value: thisisaverylongstring34087236548972364802367y408923604872341234-tentacle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@APErebus is the name meant to be shorter than 63 chars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should automatically truncate it yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should've been more specific - do we expect the whole name to be truncated to 63 chars? right now we truncate then add -tentacle
to the name (which brings it over 63 chars)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooo, interesting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This potential bug is covered by https://app.shortcut.com/octopusdeploy/story/78448/long-target-name-doesn-t-install
- equal: | ||
path: data.bearer-token | ||
value: ZmthZGpzZ2Zqa2FldXd5Z2ZrdXd5YWZndTNnd2ZrdWEzNndnZnUzd2drdWphZmdoag== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call base64enc from in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know :|
# Conflicts: # charts/kubernetes-agent/tests/tentacle-container-env-vars_test.yaml # charts/kubernetes-agent/tests/tentacle-deployment_test.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent! Thanks @flin-8
[sc-70686]
This PR backfills some missing tests for the Tentacle deployment & the server-auth secret.
As part of writing these tests we discovered that really long agent names don't get truncated correctly - that will fixed later.