Skip to content

Commit

Permalink
test: fix git dir for kcc test RootSync (#1426)
Browse files Browse the repository at this point in the history
The arguments are in the wrong order, causing the directory argument to
be used as the revision instead. This was introduced by a previous
refactor.
  • Loading branch information
sdowell authored Sep 6, 2024
1 parent b726bc5 commit f2ab338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/testcases/kcc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestKCCResourcesOnCSR(t *testing.T) {
repo := gitproviders.ReadOnlyRepository{
URL: fmt.Sprintf("%s/p/%s/r/configsync-kcc", nomostesting.CSRHost, *e2e.GCPProject),
}
rs := nt.RootSyncObjectGit(rootSyncID.Name, repo, gitproviders.MainBranch, "kcc", "", configsync.SourceFormatUnstructured)
rs := nt.RootSyncObjectGit(rootSyncID.Name, repo, gitproviders.MainBranch, "", "kcc", configsync.SourceFormatUnstructured)
rs.Spec.Git.Auth = "gcpserviceaccount"
rs.Spec.Git.GCPServiceAccountEmail = fmt.Sprintf("e2e-test-csr-reader@%s.iam.gserviceaccount.com", *e2e.GCPProject)
rs.Spec.Git.SecretRef = nil
Expand Down

0 comments on commit f2ab338

Please sign in to comment.