Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Feb 24, 2025
1 parent 45257f7 commit 1b83d99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/operator/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ var _ = Describe("Resources", func() {
It("should create the pulsarpackage failed with invalid file URL", func() {
ppackage.Spec.FileURL = invalidFileURL
ppackage.Spec.PackageURL = "function://public/default/file@invalid"
ppackage.Name = "test-func-invalid"
err := k8sClient.Create(ctx, ppackage)
Expect(err != nil).Should(BeTrue())
})
Expand All @@ -510,6 +511,7 @@ var _ = Describe("Resources", func() {
It("should create the pulsarpackage successfully with valid file URL", func() {
ppackage.Spec.FileURL = "file:///manager" // we use the manager binary as the file URL
ppackage.Spec.PackageURL = "function://public/default/file@valid"
ppackage.Name = "test-func-valid"
err := k8sClient.Create(ctx, ppackage)
Expect(err == nil || apierrors.IsAlreadyExists(err)).Should(BeTrue())
})
Expand Down

0 comments on commit 1b83d99

Please sign in to comment.