Skip to content

Commit

Permalink
Fix the 2 errors within the argo test as there is only one YAML resou…
Browse files Browse the repository at this point in the history
…rce file under localbuild/resources/argo and file contains 55 and not 57 objects

Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Oct 18, 2023
1 parent 552b342 commit cc922d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controllers/localbuild/argo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ func TestGetRawInstallResources(t *testing.T) {
if err != nil {
t.Fatalf("GetRawInstallResources() error: %v", err)
}
if len(resources) != 2 {
if len(resources) != 1 {
t.Fatalf("GetRawInstallResources() resources len != 1, got %d", len(resources))
}

resourcePrefix := "# UCP ARGO INSTALL RESOURCES\n"
checkPrefix := resources[1][0:len(resourcePrefix)]
checkPrefix := resources[0][0:len(resourcePrefix)]
if resourcePrefix != string(checkPrefix) {
t.Fatalf("GetRawInstallResources() exptected 1 resource with prefix %q, got %q", resourcePrefix, checkPrefix)
}
Expand All @@ -28,7 +28,7 @@ func TestGetK8sInstallResources(t *testing.T) {
t.Fatalf("GetK8sInstallResources() error: %v", err)
}

if len(objs) != 57 {
if len(objs) != 55 {
t.Fatalf("Expected 57 Argo Install Resources, got: %d", len(objs))
}
}

0 comments on commit cc922d4

Please sign in to comment.