Skip to content

Commit

Permalink
e2e tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Feb 25, 2025
1 parent abb99b6 commit 499732f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/middleware/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TransformMiddleware() middleware.Middleware {
resource = deleteNotificationIntegrationResource(integrationPayload)
}

case "k8spolicy_ispropagatedto_k8scluster":
case "k8spolicy_is-propagated-to_k8scluster":
return handler(ctx, body)

default:
Expand Down
14 changes: 5 additions & 9 deletions test/e2e/inventory_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ import (
"github.com/go-kratos/kratos/v2/transport/http"
v1 "github.com/project-kessel/inventory-api/api/kessel/inventory/v1"
"github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta1/relationships"
"google.golang.org/protobuf/types/known/timestamppb"
"time"

//"github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta1/relationships"
"github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta1/resources"
"github.com/project-kessel/inventory-client-go/v1beta1"
"github.com/stretchr/testify/assert"
//"google.golang.org/protobuf/types/known/timestamppb"
"google.golang.org/protobuf/types/known/timestamppb"
nethttp "net/http"
"os"
"strconv"
"testing"
//"time"
"time"
)

var inventoryapi_http_url string
Expand Down Expand Up @@ -454,19 +450,19 @@ func TestInventoryAPIHTTP_K8SPolicy_is_propagated_to_K8sClusterLifecycle(t *test
K8SPolicy: &resources.K8SPolicy{
Metadata: &resources.Metadata{
ResourceType: "k8s_policy",
WorkspaceId: "workspace2",
WorkspaceId: "workspace8",
OrgId: "",
},
ResourceData: &resources.K8SPolicyDetail{
Disabled: false,
Disabled: true,
Severity: resources.K8SPolicyDetail_HIGH,
},
ReporterData: &resources.ReporterData{
ReporterInstanceId: "user@example.com",
ReporterType: resources.ReporterData_ACM,
ConsoleHref: "www.example.com",
ApiHref: "www.example.com",
LocalResourceId: "789",
LocalResourceId: "012345",
ReporterVersion: "0.1",
},
},
Expand Down

0 comments on commit 499732f

Please sign in to comment.