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 the execution failure of file content appending scene #106

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

xcaspar
Copy link
Member

@xcaspar xcaspar commented Dec 24, 2021

Signed-off-by: xcaspar [email protected]

Describe what this PR does / why we need it

chaosblade-io/chaosblade#636

Does this pull request fix one issue?

Describe how you did it

Solve the problem of equal sign under base64 encoding.

Describe how to verify it

Package and test it.

[root@zk003 chaosblade-1.4.0]# ./blade create file append --debug 'true' --filepath '/root/common-alarm.log' --count '2' --enable-base64 'true' --interval '1' --content 'eyJrZXl3b3JkIjoiU2FlSm9iRXJyb3IiLCJtZXNzYWdlIjoiY2hhb3MtLUt1YmVybmV0ZXNBY3JUb2tlblVwZGF0ZUpvYiNoYW5kbGVTeW5jQnlLOHNOYW1lc3BhY2UgZXhlY3V0ZSBlcnJvciwgcGxlYXNlIGNoZWNrIHlvdSBqb2IhIGVycm9yIG1lc3NhZ2UgaXMgSW52b2NhdGlvbiBmYWlsZWQuIiwidGltZSI6MTYzOTY3MDU1MTY5OX0='
{"code":200,"success":true,"result":"a31d75e1dd39a999"}
#cat /root/common-alarm.log

{"keyword":"SaeJobError","message":"chaos--KubernetesAcrTokenUpdateJob#handleSyncByK8sNamespace execute error, please check you job! error message is Invocation failed.","time":1639670551699}

Special notes for reviews

@xcaspar xcaspar added the type/bug Something isn't working label Dec 24, 2021
@xcaspar xcaspar added this to the v1.5.0 milestone Dec 24, 2021
@xcaspar xcaspar requested a review from MandssS December 24, 2021 02:33
@MandssS MandssS merged commit 17372cf into master Jan 4, 2022
@MandssS MandssS deleted the bugfix-chaosblade-636 branch July 26, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants