From 42e4ca4b17eecb7ea84354dd56ceb142c903e658 Mon Sep 17 00:00:00 2001 From: Fabio Graetz Date: Fri, 31 May 2024 12:41:10 +0000 Subject: [PATCH] Add test that would have caught bug Signed-off-by: Fabio Graetz --- flytectl/cmd/compile/compile_test.go | 3 +++ .../cmd/compile/testdata/launchplan-in-wf.tgz | Bin 0 -> 777 bytes 2 files changed, 3 insertions(+) create mode 100644 flytectl/cmd/compile/testdata/launchplan-in-wf.tgz diff --git a/flytectl/cmd/compile/compile_test.go b/flytectl/cmd/compile/compile_test.go index 4004ca897bd..d2489cb342f 100644 --- a/flytectl/cmd/compile/compile_test.go +++ b/flytectl/cmd/compile/compile_test.go @@ -69,4 +69,7 @@ func TestCompilePackage(t *testing.T) { err = compileFromPackage("testdata/invalidworkflow.tgz") assert.NotNil(t, err, "unable to handle invalid workflow") + // testing workflows with launchplans used within workflow + err = compileFromPackage("testdata/launchplan-in-wf.tgz") + assert.Nil(t, err, "unable to compile workflow with launchplans used within workflow") } diff --git a/flytectl/cmd/compile/testdata/launchplan-in-wf.tgz b/flytectl/cmd/compile/testdata/launchplan-in-wf.tgz new file mode 100644 index 0000000000000000000000000000000000000000..1a78ceaf22acedd4f12d0dccec9e08b50cbb3aa4 GIT binary patch literal 777 zcmV+k1NQtMiwFqb!dYel|7L7?bY(4YVPk7yXJsyQXLyD^x5~U7pg^+gM&)P4Wo6^!!x}k|>1Kx*2-0%C` z0*&)Hc6fzX-kmnCdd-?W zW(eUBQFU$CsS3xb>+xT!S1qz<^19#U?k!&(2^dHUb67W{A3;s0Fxe=;Ze`LjS~|SA^?ZP?(!x#=BMbhA|KWe|e`9&`S8z|< zq4;m<|N6rHf7KB#{GW^ee-v*N`FcE5r%}j8FX*jY3Ih!2V--^cD zM#5X2p^`jGzE-lNv}M)QM@IEyfzBveAyCAk^>e zt5f<)7hlDW=RZT&>-RjH=|p#R{V4Wf8k$xc`ZtojsB