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

Fix go tests #362

Merged
merged 6 commits into from
Jun 17, 2024
Merged

Fix go tests #362

merged 6 commits into from
Jun 17, 2024

Conversation

cipherboy
Copy link
Member

@cipherboy cipherboy commented Jun 13, 2024

This fixes Go tests broken by #321 that were not caught prior to merging (plugin compatibility, external binary testing panic caused by reverting SSCT removal, an issue with the Caddy EAB test, and a stray log statement post-test that Go now panics on).

Also removes the obsolete upstream build process and fixes the missing UI page to mention OpenBao.

Copy link
Member

@JanMa JanMa left a comment

Choose a reason for hiding this comment

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

LGTM ✔️

This removes unnecessary pipeline executions as we've replaced the
upstream release tooling with goreleaser.

Signed-off-by: Alexander Scheel <[email protected]>
When reverting SSCTs in 15c4855, this
did not correctly handle making the config DisableSSCTs value a pointer,
resulting in a failure when running with external (Docker) binaries and
potentially full (non-dev-mode) server instances.

Signed-off-by: Alexander Scheel <[email protected]>
When using `caddy start` with RunCmdWithOutput(...), the container runner
prematurely terminates the backgrounded Caddy server when the latter
function call returns. This prevents the subsequent curl from working as
the server has already been shut down. Switch to running the interactive
variant (`caddy run`) in the background explicitly via
RunCmdInBackground(...).

Signed-off-by: Alexander Scheel <[email protected]>
Go tests may not log after the end of the test as this will panic the
logger.

Signed-off-by: Alexander Scheel <[email protected]>
@cipherboy
Copy link
Member Author

Thanks all! I've signed the commits, going to go ahead and merge...

@cipherboy cipherboy merged commit 8499e4e into openbao:main Jun 17, 2024
44 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants