Adding tests to flux create secret commands#1699
Adding tests to flux create secret commands#1699alex-petrov-vt wants to merge 4 commits intofluxcd:mainfrom
Conversation
Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com>
Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com>
Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com>
6a194d0 to
fcc0fba
Compare
stefanprodan
left a comment
There was a problem hiding this comment.
LGTM
Thanks @alex-petrov-vt 🎖️
|
@hiddeco could you please take a look at Alex comment? |
Signed-off-by: Hidde Beydals <hello@hidde.co>
|
Seems to work just fine to me, added a test to proof it that works locally. |
|
Seems to be that something in the test setup isn't right, running the individual test case succeeds, running them all fails. |
|
Perhaps the harness improvements in |
|
Hi, a bunch of the test harness has now been updated, though it means you're going to have to do some rewriting. I would recommend taking a look at the trace tests. In particular the things to look for are:
Edit: Also #1696 is a more complex example |
|
Hi Allen, thanks for the info. I'll try to take a look at those this weekend |
|
Hi, unfortunately I'm currently busy with other stuff and can't really dedicate too much time to contributing. Hopefully, I can revisit at some point later down the road. Thanks for your help! |
This is my initial attempt at adding tests to flux create secret commands as suggested in issue #1686 based on the tests utilities added as part of #1671. Let me know if this is what you had in mind or if you want me to make changes.
Incidentally, I wasn't able to create a test for a passwordless private ssh key for a flux create secret git command. When I run
flux correctly generates the secret but if I do it from a test
I get
So I'm still trying to figure out what the issue might be with that.