Skip to content

Commit

Permalink
Remove test case with wrong syntax
Browse files Browse the repository at this point in the history
Sorry, I'm not a Go developer :) Feel free to re-add with the right syntax.

Signed-off-by: Alexander Bellhäuser <alexbde@users.noreply.github.com>
  • Loading branch information
alexbde committed Aug 23, 2023
1 parent 0521dbb commit 0587c93
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions applicationset/generators/matrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,41 +293,6 @@ func TestMatrixGenerateGoTemplate(t *testing.T) {
{"booleanFalse": false, "booleanTrue": true, "stringFalse": "false", "stringTrue": "true"},
},
},
{
name: "parameter override: nested generators",
baseGenerators: []argoprojiov1alpha1.ApplicationSetNestedGenerator{
{
List: &argoprojiov1alpha1.ListGenerator{
Elements: []apiextensionsv1.JSON{
{Raw: []byte(`{"booleanFalse": false, "booleanTrue": true, "stringFirst": "1st", "stringFirstOnly": "1st"}`)},
},
},
},
{
List: &argoprojiov1alpha1.ListGenerator{
Elements: []argoprojiov1alpha1.ApplicationSetNestedGenerator{
{
List: &argoprojiov1alpha1.ListGenerator{
Elements: []apiextensionsv1.JSON{
{Raw: []byte(`{"booleanFalse": true, "booleanTrue": false, "stringFirst": "2nd", "stringSecond": "2nd", "stringSecondOnly": "2nd"}`)},
},
},
},
{
List: &argoprojiov1alpha1.ListGenerator{
Elements: []apiextensionsv1.JSON{
{Raw: []byte(`{"booleanFalse": true, "booleanTrue": false, "stringFirst": "3rd", "stringSecond": "3rd", "stringThird": "3rd", "stringThirdOnly": "3rd"}`)},
},
},
},
},
},
},
},
expected: []map[string]interface{}{
{"booleanFalse": false, "booleanTrue": true, "stringFirst": "1st", "stringFirstOnly": "1st", "stringSecond": "2nd", "stringSecondOnly": "2nd", "stringThird": "3rd", "stringThirdOnly": "3rd"},
},
},
{
name: "returns error if there is less than two base generators",
baseGenerators: []argoprojiov1alpha1.ApplicationSetNestedGenerator{
Expand Down

0 comments on commit 0587c93

Please sign in to comment.