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

🌱 avoid redacting logs when running e2e tests #1294

Merged
merged 1 commit into from
May 7, 2024

Conversation

kranurag7
Copy link
Contributor

@kranurag7 kranurag7 commented May 6, 2024

We were running a script to redact the token in _artifacts directory which gets produced when we run our e2e tests. Since, ginkgo spec are run one after another, once first spec runs and we redact the logs, the manifest (kind: Secret) gets invalid and we get an error in our e2e tests.

Error from server (BadRequest): error when creating "secret.yaml": Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte 0

This commit avoids redacting logs after each spec. We still do it after the whole suite completes.

@syself-bot syself-bot bot added size/XS Denotes a PR that changes 0-20 lines, ignoring generated files. area/test Changes made in the test directory labels May 6, 2024
@janiskemper
Copy link
Contributor

can you explain this change?

@kranurag7
Copy link
Contributor Author

can you explain this change?

We were running a script to redact the token in _artifacts directory which gets produced when we run our e2e tests. Since, ginkgo spec are run one after another, once first spec runs and we redact the logs, the manifest (kind: Secret) gets invalid and we get an error in our e2e tests.

Error from server (BadRequest): error when creating "secret.yaml": Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte 0

This commit avoids redacting logs after each spec. We still do it after the whole suite completes.

We were running a script to redact the token in _artifacts directory
which gets produced when we run our e2e tests. Since, ginkgo spec are
run one after another, once first spec runs and we redact the logs, the
manifest (kind: Secret) gets invalid and we get an error in our e2e
tests.

Error from server (BadRequest): error when creating "secret.yaml":
Secret in version "v1" cannot be handled as a Secret: illegal base64
data at input byte 0

This commit avoids redacting logs after each spec. We still do it after
the whole suite completes.

Signed-off-by: kranurag7 <[email protected]>
@kranurag7 kranurag7 merged commit d67827c into main May 7, 2024
9 checks passed
@kranurag7 kranurag7 deleted the kr/avoid-redacting-logs branch May 7, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test Changes made in the test directory size/XS Denotes a PR that changes 0-20 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants