Skip to content

Commit

Permalink
fix: call summary refresh job in gitops source test
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 7, 2024
1 parent 201b9e3 commit cdcce51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/config_gitops_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tests

import (
"github.com/flanksource/duty/job"
"github.com/flanksource/duty/query"
"github.com/flanksource/duty/tests/fixtures/dummy"
"github.com/flanksource/gomplate/v3"
Expand All @@ -25,6 +26,10 @@ var _ = ginkgo.Describe("Config Gitops Source", ginkgo.Ordered, func() {
Expect(dummy.GitRepository.ID.String()).NotTo(BeEmpty())
Expect(dummy.Namespace.ID.String()).NotTo(BeEmpty())

// Config Traverse uses the 7d summary view internally
err := job.RefreshConfigItemSummary7d(DefaultContext)
Expect(err).To(BeNil())

source, err := query.GetGitOpsSource(DefaultContext, dummy.Namespace.ID)
Expect(err).To(BeNil())
Expect(source.Kustomize.Path).To(Equal("./aws-demo/spec"))
Expand Down

0 comments on commit cdcce51

Please sign in to comment.