mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-10 14:10:05 +00:00
Add test for "flux create source git"
The create source tests are more interesting than the existing tests as they create objects then wit for the flux source reconciler to complete. The tests simulate this with a background goroutine that waits for an object to be created then uses a test specific function to update it. The tests set a timeout so that if there is a failure they timeout somewhat quickly rather than hanging for a longer period of time. Signed-off-by: Allen Porter <allen@thebends.org>
This commit is contained in:
parent
83c7994266
commit
8cbd4e8172
4 changed files with 158 additions and 2 deletions
6
cmd/flux/testdata/create_source_git/success.golden
vendored
Normal file
6
cmd/flux/testdata/create_source_git/success.golden
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
✚ generating GitRepository source
|
||||
► applying GitRepository source
|
||||
✔ GitRepository source created
|
||||
◎ waiting for GitRepository source reconciliation
|
||||
✔ GitRepository source reconciliation completed
|
||||
✔ fetched revision: v1
|
||||
Loading…
Add table
Add a link
Reference in a new issue