fix: Return correct status when using custom policy#5156
fix: Return correct status when using custom policy#5156X-Guardian merged 13 commits intorunatlantis:mainfrom
Conversation
Signed-off-by: ekapratama93 <ekapratama93@gmail.com>
d57b7ad to
e1317da
Compare
|
@bakuljajan, do you think you could add a test for this? Thanks. |
Signed-off-by: bakuljajan <eka.pratama@finaccel.co>
Hi @jamengual thanks for looking into this PR, I'm unfamiliar with writing golang code, but enabling the Let me know if you need me to add more test cases. |
|
I think this part of the docs should be updated as well |
I think the doc is correct since atlantis does check the string to determine the status for custom policy. |
|
@bakuljajan, can you resolve the file conflicts on this? |
Signed-off-by: bakuljajan <eka.pratama@finaccel.co>
Signed-off-by: bakuljajan <eka.pratama@finaccel.co>
Signed-off-by: bakuljajan <eka.pratama@finaccel.co>
what
try to fix #4585. It seems the original code does not return error when the custom policy is enabled.
why
the error status was skipped causing plan/apply combined with custom policy check to always be successful.
tests
manual test only. will need guidance if additional tests are needed.
references