Skip to content

Commit

Permalink
fix import path
Browse files Browse the repository at this point in the history
Signed-off-by: aerosouund <[email protected]>
  • Loading branch information
aerosouund committed Feb 21, 2025
1 parent 0464ca6 commit f121886
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/http/logroundtripper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"go.uber.org/zap"
"go.uber.org/zap/zaptest/observer"

"github.com/kyverno/policy-reporter/pkg/target/http"
"github.com/kyverno/policy-reporter/pkg/http"
)

type mock struct{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"go.uber.org/zap/zaptest/observer"

"github.com/kyverno/policy-reporter/pkg/fixtures"
"github.com/kyverno/policy-reporter/pkg/target/http"
"github.com/kyverno/policy-reporter/pkg/http"
)

func TestResultMapping(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/payload/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func (p *PolicyReportResultPayload) BlobStorageKey(prefix string) string {
return fmt.Sprintf("%s/%s/%s-%s-%s.json", prefix, t.Format("2006-01-02"), p.Result.Policy, p.Result.ID, t.Format(time.RFC3339Nano))
}

// should be the equivalent of get json body
func (p *PolicyReportResultPayload) Body() http.Result {
return http.NewJSONResult(p.Result)
}
Expand Down

0 comments on commit f121886

Please sign in to comment.