diff --git a/internal/api/arm/types_cosmosdata.go b/internal/api/arm/types_cosmosdata.go index 1ff2a355bb8..b3b379e6c12 100644 --- a/internal/api/arm/types_cosmosdata.go +++ b/internal/api/arm/types_cosmosdata.go @@ -30,6 +30,14 @@ import ( type CosmosMetadata struct { ResourceID *azcorearm.ResourceID `json:"resourceID"` + // PartitionKey is the Cosmos partition-key value for this document. It is stored + // lower-cased; SetPartitionKey normalises on input and GetPartitionKey on output. + // When unset, GetPartitionKey falls back to the lower-cased ResourceID.SubscriptionID, + // which preserves the historical behaviour for every container that is partitioned + // by subscription ID. Containers partitioned by something else (e.g. management + // cluster name for the kube-applier container) populate this field explicitly. + PartitionKey string `json:"partitionKey,omitempty"` + // ExistingCosmosUID exists to allow for a migration path from where we are today to a uuid based cosmosID // and this will be deleted afterwards. ExistingCosmosUID string `json:"-"` @@ -57,10 +65,26 @@ func (o *CosmosMetadata) GetCosmosUID() string { return Must(ResourceIDToCosmosID(o.ResourceID)) } +// GetPartitionKey returns the lower-cased partition key for this document. +// If the explicit PartitionKey field has been set it is used; otherwise the +// historical default (lower-cased ResourceID.SubscriptionID) is returned so that +// existing subscription-keyed containers continue to work without changes. func (o *CosmosMetadata) GetPartitionKey() string { + if len(o.PartitionKey) > 0 { + return strings.ToLower(o.PartitionKey) + } + if o.ResourceID == nil { + return "" + } return strings.ToLower(o.ResourceID.SubscriptionID) } +// SetPartitionKey records partitionKey on the metadata, normalising to lower +// case so reads and writes always agree on a single canonical form. +func (o *CosmosMetadata) SetPartitionKey(partitionKey string) { + o.PartitionKey = strings.ToLower(partitionKey) +} + func (o *CosmosMetadata) GetResourceID() *azcorearm.ResourceID { return o.ResourceID } @@ -87,6 +111,8 @@ type CosmosMetadataAccessor interface { SetResourceID(*azcorearm.ResourceID) GetEtag() azcore.ETag SetEtag(cosmosETag azcore.ETag) + GetPartitionKey() string + SetPartitionKey(partitionKey string) } func ResourceIDToCosmosID(resourceID *azcorearm.ResourceID) (string, error) { diff --git a/internal/api/arm/types_cosmosdata_test.go b/internal/api/arm/types_cosmosdata_test.go new file mode 100644 index 00000000000..52b5168631b --- /dev/null +++ b/internal/api/arm/types_cosmosdata_test.go @@ -0,0 +1,161 @@ +// Copyright 2026 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package arm + +import ( + "encoding/json" + "testing" + + azcorearm "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" +) + +func mustParseTestID(t *testing.T, s string) *azcorearm.ResourceID { + t.Helper() + id, err := azcorearm.ParseResourceID(s) + if err != nil { + t.Fatalf("parse %q: %v", s, err) + } + return id +} + +func TestCosmosMetadataPartitionKey(t *testing.T) { + const idStr = "/subscriptions/MyUpperCaseSub/resourceGroups/rg/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/c" + + tests := []struct { + name string + // Each test mutates the metadata and asserts on Get/Set behaviour. + runWith func(t *testing.T, m *CosmosMetadata) + }{ + { + name: "GetPartitionKey falls back to lowercased subscription ID when field is empty", + runWith: func(t *testing.T, m *CosmosMetadata) { + if got, want := m.GetPartitionKey(), "myuppercasesub"; got != want { + t.Errorf("GetPartitionKey() = %q, want %q (lowercased SubscriptionID)", got, want) + } + }, + }, + { + name: "SetPartitionKey lowercases on store", + runWith: func(t *testing.T, m *CosmosMetadata) { + m.SetPartitionKey("MGMT-Cluster-1") + if got, want := m.PartitionKey, "mgmt-cluster-1"; got != want { + t.Errorf("PartitionKey field = %q, want %q (lowercased on Set)", got, want) + } + }, + }, + { + name: "GetPartitionKey returns the stored field when set, lowercased", + runWith: func(t *testing.T, m *CosmosMetadata) { + m.SetPartitionKey("MGMT-Cluster-1") + if got, want := m.GetPartitionKey(), "mgmt-cluster-1"; got != want { + t.Errorf("GetPartitionKey() = %q, want %q", got, want) + } + }, + }, + { + name: "GetPartitionKey lowercases even if the field was set directly with mixed case", + runWith: func(t *testing.T, m *CosmosMetadata) { + m.PartitionKey = "MGMT-Cluster-1" // bypass setter + if got, want := m.GetPartitionKey(), "mgmt-cluster-1"; got != want { + t.Errorf("GetPartitionKey() = %q, want %q (lowercased on Get)", got, want) + } + }, + }, + { + name: "SetPartitionKey then GetPartitionKey is idempotent", + runWith: func(t *testing.T, m *CosmosMetadata) { + m.SetPartitionKey("foo") + m.SetPartitionKey(m.GetPartitionKey()) + if got := m.PartitionKey; got != "foo" { + t.Errorf("idempotent set yielded %q", got) + } + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + m := &CosmosMetadata{ + ResourceID: mustParseTestID(t, idStr), + } + tc.runWith(t, m) + }) + } +} + +func TestCosmosMetadataPartitionKey_NilResourceID(t *testing.T) { + m := &CosmosMetadata{} + if got := m.GetPartitionKey(); got != "" { + t.Errorf("GetPartitionKey() with nil ResourceID and unset PartitionKey = %q, want empty", got) + } + m.SetPartitionKey("X") + if got := m.GetPartitionKey(); got != "x" { + t.Errorf("GetPartitionKey() after Set with nil ResourceID = %q, want %q", got, "x") + } +} + +func TestCosmosMetadataJSONRoundTrip_PartitionKey(t *testing.T) { + m := &CosmosMetadata{ + ResourceID: mustParseTestID(t, + "/subscriptions/sub/resourceGroups/rg/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/c"), + } + m.SetPartitionKey("MGMT-1") + + data, err := json.Marshal(m) + if err != nil { + t.Fatalf("marshal: %v", err) + } + // Should serialize the lowercased value under "partitionKey". + if want := `"partitionKey":"mgmt-1"`; !contains(string(data), want) { + t.Errorf("marshalled JSON did not contain %q\n got: %s", want, data) + } + + var got CosmosMetadata + if err := json.Unmarshal(data, &got); err != nil { + t.Fatalf("unmarshal: %v", err) + } + if got.GetPartitionKey() != "mgmt-1" { + t.Errorf("after round-trip, GetPartitionKey() = %q, want %q", got.GetPartitionKey(), "mgmt-1") + } +} + +func TestCosmosMetadataJSONRoundTrip_OmitsEmptyPartitionKey(t *testing.T) { + // Older documents on disk don't have partitionKey in cosmosMetadata. Round-tripping + // without setting the field must not introduce one (omitempty), and GetPartitionKey + // must still fall back to the subscription ID. + m := &CosmosMetadata{ + ResourceID: mustParseTestID(t, + "/subscriptions/sub/resourceGroups/rg/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/c"), + } + data, err := json.Marshal(m) + if err != nil { + t.Fatalf("marshal: %v", err) + } + if contains(string(data), "partitionKey") { + t.Errorf("expected omitempty to drop partitionKey from JSON, got: %s", data) + } + if got, want := m.GetPartitionKey(), "sub"; got != want { + t.Errorf("GetPartitionKey() with unset field = %q, want %q (subscription ID fallback)", got, want) + } +} + +func contains(s, substr string) bool { + for i := 0; i+len(substr) <= len(s); i++ { + if s[i:i+len(substr)] == substr { + return true + } + } + return false +} diff --git a/internal/database/convert_cluster.go b/internal/database/convert_cluster.go index 0f1776b0931..9ecd362dda5 100644 --- a/internal/database/convert_cluster.go +++ b/internal/database/convert_cluster.go @@ -16,7 +16,6 @@ package database import ( "fmt" - "strings" "k8s.io/utils/ptr" @@ -29,18 +28,20 @@ func InternalToCosmosCluster(internalObj *api.HCPOpenShiftCluster) (*HCPCluster, return nil, nil } + partitionKey := internalObj.GetCosmosData().GetPartitionKey() cosmosObj := &HCPCluster{ TypedDocument: TypedDocument{ BaseDocument: BaseDocument{ ID: internalObj.GetCosmosData().GetCosmosUID(), }, - PartitionKey: strings.ToLower(internalObj.ID.SubscriptionID), + PartitionKey: partitionKey, ResourceID: internalObj.ID, ResourceType: internalObj.ID.ResourceType.String(), }, HCPClusterProperties: HCPClusterProperties{ CosmosMetadata: api.CosmosMetadata{ - ResourceID: internalObj.ID, + ResourceID: internalObj.ID, + PartitionKey: partitionKey, }, IntermediateResourceDoc: &ResourceDocument{ ResourceID: internalObj.ID, diff --git a/internal/database/convert_externalauth.go b/internal/database/convert_externalauth.go index 43d9c91016e..20fcd850f7e 100644 --- a/internal/database/convert_externalauth.go +++ b/internal/database/convert_externalauth.go @@ -16,7 +16,6 @@ package database import ( "fmt" - "strings" "github.com/Azure/ARO-HCP/internal/api" "github.com/Azure/ARO-HCP/internal/api/arm" @@ -28,18 +27,20 @@ func InternalToCosmosExternalAuth(internalObj *api.HCPOpenShiftClusterExternalAu return nil, nil } + partitionKey := internalObj.GetCosmosData().GetPartitionKey() cosmosObj := &ExternalAuth{ TypedDocument: TypedDocument{ BaseDocument: BaseDocument{ ID: internalObj.GetCosmosData().GetCosmosUID(), }, - PartitionKey: strings.ToLower(internalObj.ID.SubscriptionID), + PartitionKey: partitionKey, ResourceID: internalObj.ID, ResourceType: internalObj.ID.ResourceType.String(), }, ExternalAuthProperties: ExternalAuthProperties{ CosmosMetadata: api.CosmosMetadata{ - ResourceID: internalObj.ID, + ResourceID: internalObj.ID, + PartitionKey: partitionKey, }, IntermediateResourceDoc: &ResourceDocument{ ResourceID: internalObj.ID, diff --git a/internal/database/convert_generic.go b/internal/database/convert_generic.go index d3b061ef063..4f100273806 100644 --- a/internal/database/convert_generic.go +++ b/internal/database/convert_generic.go @@ -16,7 +16,6 @@ package database import ( "fmt" - "strings" "github.com/Azure/ARO-HCP/internal/api" "github.com/Azure/ARO-HCP/internal/api/arm" @@ -34,17 +33,24 @@ func InternalToCosmosGeneric[InternalAPIType any](internalObj *InternalAPIType) return nil, fmt.Errorf("internalObj must be an arm.CosmosMetadataAccessor: %T", internalObj) } + partitionKey := metadata.GetPartitionKey() cosmosObj := &GenericDocument[InternalAPIType]{ TypedDocument: TypedDocument{ BaseDocument: BaseDocument{ ID: metadata.GetCosmosUID(), }, - PartitionKey: strings.ToLower(metadata.GetResourceID().SubscriptionID), + PartitionKey: partitionKey, ResourceID: metadata.GetResourceID(), ResourceType: metadata.GetResourceID().ResourceType.String(), }, Content: *internalObj, } + // Mirror the envelope's partitionKey into the inner cosmosMetadata copy so the on-disk + // representation has both fields in sync. We mutate the value-copy in cosmosObj.Content + // rather than the caller-supplied internalObj. + if cm, ok := any(&cosmosObj.Content).(arm.CosmosMetadataAccessor); ok { + cm.SetPartitionKey(partitionKey) + } // this isn't pretty, but on balance it's a better choice so that we can share all the rest. switch any(internalObj).(type) { @@ -68,6 +74,9 @@ func CosmosGenericToInternal[InternalAPIType any](cosmosObj *GenericDocument[Int cosmosData := ret.(arm.CosmosPersistable).GetCosmosData() cosmosData.ExistingCosmosUID = cosmosObj.ID ret.SetEtag(cosmosObj.CosmosETag) + // Round-trip the envelope's partitionKey back into the metadata so callers + // can read it without re-deriving from ResourceID.SubscriptionID. + ret.SetPartitionKey(cosmosObj.PartitionKey) // this isn't pretty, but on balance it's a better choice so that we can share all the rest. switch castObj := any(ret).(type) { diff --git a/internal/database/convert_nodepool.go b/internal/database/convert_nodepool.go index 49a0b30ef08..bc52e56fbd3 100644 --- a/internal/database/convert_nodepool.go +++ b/internal/database/convert_nodepool.go @@ -16,7 +16,6 @@ package database import ( "fmt" - "strings" "github.com/Azure/ARO-HCP/internal/api" "github.com/Azure/ARO-HCP/internal/api/arm" @@ -28,18 +27,20 @@ func InternalToCosmosNodePool(internalObj *api.HCPOpenShiftClusterNodePool) (*No return nil, nil } + partitionKey := internalObj.GetCosmosData().GetPartitionKey() cosmosObj := &NodePool{ TypedDocument: TypedDocument{ BaseDocument: BaseDocument{ ID: internalObj.GetCosmosData().GetCosmosUID(), }, - PartitionKey: strings.ToLower(internalObj.ID.SubscriptionID), + PartitionKey: partitionKey, ResourceID: internalObj.ID, ResourceType: internalObj.ID.ResourceType.String(), }, NodePoolProperties: NodePoolProperties{ CosmosMetadata: api.CosmosMetadata{ - ResourceID: internalObj.ID, + ResourceID: internalObj.ID, + PartitionKey: partitionKey, }, IntermediateResourceDoc: &ResourceDocument{ ResourceID: internalObj.ID, diff --git a/internal/database/crud_nested_resource.go b/internal/database/crud_nested_resource.go index c736078002f..a33b5df7e05 100644 --- a/internal/database/crud_nested_resource.go +++ b/internal/database/crud_nested_resource.go @@ -146,12 +146,12 @@ func (d *nestedCosmosResourceCRUD[InternalAPIType, CosmosAPIType]) AddReplaceToT } func (d *nestedCosmosResourceCRUD[InternalAPIType, CosmosAPIType]) Create(ctx context.Context, newObj *InternalAPIType, options *azcosmos.ItemOptions) (*InternalAPIType, error) { - partitionKey := strings.ToLower(any(newObj).(arm.CosmosPersistable).GetCosmosData().GetResourceID().SubscriptionID) + partitionKey := any(newObj).(arm.CosmosPersistable).GetCosmosData().GetPartitionKey() return create[InternalAPIType, CosmosAPIType](ctx, d.containerClient, partitionKey, newObj, options) } func (d *nestedCosmosResourceCRUD[InternalAPIType, CosmosAPIType]) Replace(ctx context.Context, newObj *InternalAPIType, options *azcosmos.ItemOptions) (*InternalAPIType, error) { - partitionKey := strings.ToLower(any(newObj).(arm.CosmosPersistable).GetCosmosData().GetResourceID().SubscriptionID) + partitionKey := any(newObj).(arm.CosmosPersistable).GetCosmosData().GetPartitionKey() return replace[InternalAPIType, CosmosAPIType](ctx, d.containerClient, partitionKey, newObj, options) } diff --git a/test-integration/backend/controllers/do_nothing/artifacts/sync_cluster/99-cosmosCompare-end-state/do-nothing-success.json b/test-integration/backend/controllers/do_nothing/artifacts/sync_cluster/99-cosmosCompare-end-state/do-nothing-success.json index 663d4dcb97a..c7990ccb51a 100644 --- a/test-integration/backend/controllers/do_nothing/artifacts/sync_cluster/99-cosmosCompare-end-state/do-nothing-success.json +++ b/test-integration/backend/controllers/do_nothing/artifacts/sync_cluster/99-cosmosCompare-end-state/do-nothing-success.json @@ -8,6 +8,7 @@ "partitionKey": "4fa75980-6637-4157-9726-84d878a62e83", "properties": { "cosmosMetadata": { + "partitionKey": "4fa75980-6637-4157-9726-84d878a62e83", "resourceID": "/subscriptions/4fa75980-6637-4157-9726-84d878a62e83/resourceGroups/shrilleffectiveness/providers/microsoft.redhatopenshift/hcpopenshiftclusters/lavishunhappiness/hcpOpenShiftControllers/DoNothingExample" }, "externalId": "/subscriptions/4fa75980-6637-4157-9726-84d878a62e83/resourceGroups/shrilleffectiveness/providers/microsoft.redhatopenshift/hcpopenshiftclusters/lavishunhappiness", diff --git a/test-integration/backend/controllers/mismatches/artifacts/cluster/remove_orphaned_cluster_descendents/00-load-initial-state/controller-nodepool-fake.json b/test-integration/backend/controllers/mismatches/artifacts/cluster/remove_orphaned_cluster_descendents/00-load-initial-state/controller-nodepool-fake.json index 6ff082771fc..cce5ef634c0 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/cluster/remove_orphaned_cluster_descendents/00-load-initial-state/controller-nodepool-fake.json +++ b/test-integration/backend/controllers/mismatches/artifacts/cluster/remove_orphaned_cluster_descendents/00-load-initial-state/controller-nodepool-fake.json @@ -8,6 +8,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodepools/basic/hcpOpenShiftControllers/DoNothingExample" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodepools/basic", diff --git a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/00-load-initial-state/controller-cluster.json b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/00-load-initial-state/controller-cluster.json index 8775dfb2fab..4b19d203814 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/00-load-initial-state/controller-cluster.json +++ b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/00-load-initial-state/controller-cluster.json @@ -3,6 +3,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/hcpOpenShiftControllers/testcontroller" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct", diff --git a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/99-cosmosCompare-end-state/controller-cluster.json b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/99-cosmosCompare-end-state/controller-cluster.json index 8775dfb2fab..4b19d203814 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/99-cosmosCompare-end-state/controller-cluster.json +++ b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/all_parents_exist/99-cosmosCompare-end-state/controller-cluster.json @@ -3,6 +3,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/hcpOpenShiftControllers/testcontroller" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct", diff --git a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_cluster_deleted/00-load-initial-state/controller-orphaned.json b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_cluster_deleted/00-load-initial-state/controller-orphaned.json index a6e177f9671..8900e6cfe64 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_cluster_deleted/00-load-initial-state/controller-orphaned.json +++ b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_cluster_deleted/00-load-initial-state/controller-orphaned.json @@ -3,6 +3,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/missingcluster/hcpOpenShiftControllers/orphanedcontroller" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/missingcluster", diff --git a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-cluster.json b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-cluster.json index 43ed3b9354b..728b2f3592a 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-cluster.json +++ b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-cluster.json @@ -3,6 +3,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/hcpOpenShiftControllers/clustercontroller" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct", diff --git a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-orphaned-nodepool.json b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-orphaned-nodepool.json index 25d43fe38e1..477f637c0ff 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-orphaned-nodepool.json +++ b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/00-load-initial-state/controller-orphaned-nodepool.json @@ -3,6 +3,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodePools/missingnodepool/hcpOpenShiftControllers/orphanedcontroller" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodePools/missingnodepool", diff --git a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/99-cosmosCompare-end-state/controller-cluster.json b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/99-cosmosCompare-end-state/controller-cluster.json index 43ed3b9354b..728b2f3592a 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/99-cosmosCompare-end-state/controller-cluster.json +++ b/test-integration/backend/controllers/mismatches/artifacts/delete_orphaned_cosmos/controller_under_missing_nodepool_deleted/99-cosmosCompare-end-state/controller-cluster.json @@ -3,6 +3,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/hcpOpenShiftControllers/clustercontroller" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct", diff --git a/test-integration/backend/controllers/mismatches/artifacts/externalauth/remove_orphaned_externalauth_descendents/00-load-initial-state/controller-nodepool-fake.json b/test-integration/backend/controllers/mismatches/artifacts/externalauth/remove_orphaned_externalauth_descendents/00-load-initial-state/controller-nodepool-fake.json index 6ff082771fc..cce5ef634c0 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/externalauth/remove_orphaned_externalauth_descendents/00-load-initial-state/controller-nodepool-fake.json +++ b/test-integration/backend/controllers/mismatches/artifacts/externalauth/remove_orphaned_externalauth_descendents/00-load-initial-state/controller-nodepool-fake.json @@ -8,6 +8,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodepools/basic/hcpOpenShiftControllers/DoNothingExample" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodepools/basic", diff --git a/test-integration/backend/controllers/mismatches/artifacts/nodepool/remove_orphaned_nodepool_descendents/00-load-initial-state/controller-nodepool-fake.json b/test-integration/backend/controllers/mismatches/artifacts/nodepool/remove_orphaned_nodepool_descendents/00-load-initial-state/controller-nodepool-fake.json index 6ff082771fc..cce5ef634c0 100644 --- a/test-integration/backend/controllers/mismatches/artifacts/nodepool/remove_orphaned_nodepool_descendents/00-load-initial-state/controller-nodepool-fake.json +++ b/test-integration/backend/controllers/mismatches/artifacts/nodepool/remove_orphaned_nodepool_descendents/00-load-initial-state/controller-nodepool-fake.json @@ -8,6 +8,7 @@ "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "properties": { "cosmosMetadata": { + "partitionKey": "a433a095-1277-44f1-8453-8d61a4d848c2", "resourceID": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodepools/basic/hcpOpenShiftControllers/DoNothingExample" }, "externalId": "/subscriptions/a433a095-1277-44f1-8453-8d61a4d848c2/resourceGroups/unimportantpostponement/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/monstrousprecinct/nodepools/basic", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-01.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-01.json index 101d15c723e..bc812776a34 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-01.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-01.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/first-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-02.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-02.json index 7cb497ebd41..31b037579f3 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-02.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/01-02.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-01.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-01.json index 80084010680..cd556a5fc43 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-01.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-01.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool/hcpOpenShiftControllers/first-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-02.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-02.json index 8b1eccfd2c6..9ad74641784 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-02.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/01-create-01/02-02.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/first.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/first.json index 101d15c723e..bc812776a34 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/first.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/first.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/first-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/second.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/second.json index 7cb497ebd41..31b037579f3 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/second.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-first-nodepool/second.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/first.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/first.json index 80084010680..cd556a5fc43 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/first.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/first.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool/hcpOpenShiftControllers/first-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/second.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/second.json index 8b1eccfd2c6..9ad74641784 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/second.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/02-list-second-nodepool/second.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/second-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/03-replace-update-01/instance.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/03-replace-update-01/instance.json index a54f560ae6f..9553c96264c 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/03-replace-update-01/instance.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/03-replace-update-01/instance.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/first-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/first.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/first.json index a54f560ae6f..9553c96264c 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/first.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/first.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/first-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/second.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/second.json index 7cb497ebd41..31b037579f3 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/second.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/04-list-first-nodepool/second.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/06-list-first-nodepool/second.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/06-list-first-nodepool/second.json index 7cb497ebd41..31b037579f3 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/06-list-first-nodepool/second.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic-nodepool/06-list-first-nodepool/second.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/basic/nodePools/first-node-pool", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/01-load-initial/test-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/01-load-initial/test-controller.json index 5927c5b1674..46a420a20ff 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/01-load-initial/test-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/01-load-initial/test-controller.json @@ -8,6 +8,7 @@ "partitionKey": "subscriptionid", "properties": { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceID": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/test-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/02-get-initial/test-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/02-get-initial/test-controller.json index 1ba96d8e4e9..21e733e0e63 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/02-get-initial/test-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/02-get-initial/test-controller.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceID": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/test-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/03-list-another/test-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/03-list-another/test-controller.json index 1ba96d8e4e9..21e733e0e63 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/03-list-another/test-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/03-list-another/test-controller.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceID": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/test-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/04-create-another/second-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/04-create-another/second-controller.json index 2c9ba9788bf..0b5ea966f60 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/04-create-another/second-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/04-create-another/second-controller.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/05-get-new-instance/second-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/05-get-new-instance/second-controller.json index 2c9ba9788bf..0b5ea966f60 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/05-get-new-instance/second-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/05-get-new-instance/second-controller.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/second-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/second-controller.json index 2c9ba9788bf..0b5ea966f60 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/second-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/second-controller.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/test-controller.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/test-controller.json index 1ba96d8e4e9..21e733e0e63 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/test-controller.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/06-list-both-instances/test-controller.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceID": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/test-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/99-cosmosCompare-end-state/do-nothing-success.json b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/99-cosmosCompare-end-state/do-nothing-success.json index b19211676ea..fa1b4bdc3f8 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/99-cosmosCompare-end-state/do-nothing-success.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ControllerCRUD/basic/99-cosmosCompare-end-state/do-nothing-success.json @@ -8,6 +8,7 @@ "partitionKey": "subscriptionid", "properties": { "cosmosMetadata": { + "partitionKey": "subscriptionid", "resourceID": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/hcpOpenShiftControllers/second-controller" }, "externalId": "/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/02-create-another/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/02-create-another/default.json index b8d4e466ea8..3346a6e3928 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/02-create-another/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/02-create-another/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/03-get-new-instance/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/03-get-new-instance/default.json index b8d4e466ea8..3346a6e3928 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/03-get-new-instance/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/03-get-new-instance/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/04-replace-instance/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/04-replace-instance/default.json index 3724e581c76..439ef393771 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/04-replace-instance/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/04-replace-instance/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/newLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/06-list-instance/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/06-list-instance/default.json index 3724e581c76..439ef393771 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/06-list-instance/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/basic/06-list-instance/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/newLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/01-create-initial/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/01-create-initial/default.json index 51ca6ddc2b6..7b596a4d0ec 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/01-create-initial/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/01-create-initial/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/etagTestCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/initialLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/02-replace-with-wrong-etag/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/02-replace-with-wrong-etag/default.json index e71ac316046..3d984b86959 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/02-replace-with-wrong-etag/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/02-replace-with-wrong-etag/default.json @@ -1,6 +1,7 @@ { "cosmosMetadata": { "etag": "wrong-etag-value-that-will-not-match", + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/etagTestCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/updatedLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/03-get-after-failed-replace/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/03-get-after-failed-replace/default.json index 51ca6ddc2b6..7b596a4d0ec 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/03-get-after-failed-replace/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/03-get-after-failed-replace/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/etagTestCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/initialLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/04-replaceWithETag-success/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/04-replaceWithETag-success/default.json index a13458fd4c2..de538f758b0 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/04-replaceWithETag-success/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/04-replaceWithETag-success/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/etagTestCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/successfullyUpdatedLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/05-get-after-successful-replace/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/05-get-after-successful-replace/default.json index a13458fd4c2..de538f758b0 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/05-get-after-successful-replace/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderClusterCRUD/etag-conditional-replace/05-get-after-successful-replace/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/etagTestCluster/serviceProviderClusters/default" }, "loadBalancerResourceID": "/subscriptions/your-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/successfullyUpdatedLoadBalancer", diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/02-create-another/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/02-create-another/default.json index fb618fbf12c..2b2354be0a5 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/02-create-another/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/02-create-another/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" }, "resourceId": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/03-get-new-instance/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/03-get-new-instance/default.json index fb618fbf12c..2b2354be0a5 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/03-get-new-instance/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/03-get-new-instance/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" }, "resourceId": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/04-replace-instance/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/04-replace-instance/default.json index fb618fbf12c..2b2354be0a5 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/04-replace-instance/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/04-replace-instance/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" }, "resourceId": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" diff --git a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/06-list-instance/default.json b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/06-list-instance/default.json index fb618fbf12c..2b2354be0a5 100644 --- a/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/06-list-instance/default.json +++ b/test-integration/frontend/artifacts/DatabaseCRUD/ServiceProviderNodePoolCRUD/basic/06-list-instance/default.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "ca3b7be4-6ac8-4784-b2b5-0e398a60269a", "resourceID": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" }, "resourceId": "/subscriptions/ca3b7be4-6ac8-4784-b2b5-0e398a60269a/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/parentCluster/nodePools/parentNodePool/serviceProviderNodePools/default" diff --git a/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/request/03-listActiveOperations-request-credentials/operation-request-credential.json b/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/request/03-listActiveOperations-request-credentials/operation-request-credential.json index 408bc5d31f6..7db227b43c2 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/request/03-listActiveOperations-request-credentials/operation-request-credential.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/request/03-listActiveOperations-request-credentials/operation-request-credential.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "0465bc32-c654-41b8-8d87-9815d7abe8f6", "resourceID": "/subscriptions/0465bc32-c654-41b8-8d87-9815d7abe8f6/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/00000000-0000-0000-0000-000000000000" }, "externalId": "/subscriptions/0465bc32-c654-41b8-8d87-9815d7abe8f6/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/some-hcp-cluster", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/revoke/03-listActiveOperations-revoke-credentials/operation-revoke-credentials.json b/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/revoke/03-listActiveOperations-revoke-credentials/operation-revoke-credentials.json index 78388efceed..b6e673acc3c 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/revoke/03-listActiveOperations-revoke-credentials/operation-revoke-credentials.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/AdminCredentials/revoke/03-listActiveOperations-revoke-credentials/operation-revoke-credentials.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "0465bc32-c654-41b8-8d87-9815d7abe8f6", "resourceID": "/subscriptions/0465bc32-c654-41b8-8d87-9815d7abe8f6/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/00000000-0000-0000-0000-000000000000" }, "externalId": "/subscriptions/0465bc32-c654-41b8-8d87-9815d7abe8f6/resourceGroups/some-resource-group/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/some-hcp-cluster", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/cluster-create-with-tags.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/cluster-create-with-tags.json index 838f63f2ae1..286f8788f6f 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/cluster-create-with-tags.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/cluster-create-with-tags.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json index ba28a5f337b..b96d636044d 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/7a4ed07a-47a1-4efb-966a-93a6316522a0" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/subscription.json index 9c642482427..7899acc26f8 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/02-cosmosCompare-confirm-content/subscription.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/05-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/05-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json index 2c0d935cbe9..f13c1b6ad89 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/05-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/05-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/07314510-beb6-4379-902a-ab6452603265" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/09-cosmosCompare-confirm-update/cluster-create-with-tags.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/09-cosmosCompare-confirm-update/cluster-create-with-tags.json index e3d36ec2322..993a83c7ca5 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/09-cosmosCompare-confirm-update/cluster-create-with-tags.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/create-current/09-cosmosCompare-confirm-update/cluster-create-with-tags.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/cluster-test-cluster.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/cluster-test-cluster.json index d3f3b16dc7d..4edaff84320 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/cluster-test-cluster.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/cluster-test-cluster.json @@ -3,6 +3,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/test-cluster" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/subscription.json index 179c2daa061..ef70ed7302f 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-cluster-operation/03-cosmosCompare-final-state/subscription.json @@ -3,6 +3,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/cluster-test-cluster.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/cluster-test-cluster.json index d3f3b16dc7d..4edaff84320 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/cluster-test-cluster.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/cluster-test-cluster.json @@ -3,6 +3,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/test-cluster" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/nodepool-test-nodepool.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/nodepool-test-nodepool.json index 6a57d06fe1f..5e1978e623b 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/nodepool-test-nodepool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/nodepool-test-nodepool.json @@ -3,6 +3,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/test-cluster/nodePools/test-nodepool" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/subscription.json index 179c2daa061..ef70ed7302f 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/delete-with-pending-nodepool-operation/05-cosmosCompare-final-state/subscription.json @@ -3,6 +3,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/01-load-old-data/hcpoperationstatuses_Create_90b2322c-2c26-47ca-b6f9-d9b1a8385cbc.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/01-load-old-data/hcpoperationstatuses_Create_90b2322c-2c26-47ca-b6f9-d9b1a8385cbc.json index 6362b5cfecc..8d4ab38ad11 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/01-load-old-data/hcpoperationstatuses_Create_90b2322c-2c26-47ca-b6f9-d9b1a8385cbc.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/01-load-old-data/hcpoperationstatuses_Create_90b2322c-2c26-47ca-b6f9-d9b1a8385cbc.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/90b2322c-2c26-47ca-b6f9-d9b1a8385cbc" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/04-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/04-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json index 2c0d935cbe9..f13c1b6ad89 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/04-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/04-listActiveOperations-cluster-create/operation-cluster-create-with-tags-create.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/07314510-beb6-4379-902a-ab6452603265" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/09-cosmosCompare-confirm-update/cluster-create-with-tags.json b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/09-cosmosCompare-confirm-update/cluster-create-with-tags.json index 28034e83c15..141362d7730 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/09-cosmosCompare-confirm-update/cluster-create-with-tags.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Cluster/read-old-data/09-cosmosCompare-confirm-update/cluster-create-with-tags.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/cluster-create-with-tags.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/cluster-create-with-tags.json index f2c292816d6..b6690ddb5ea 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/cluster-create-with-tags.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/cluster-create-with-tags.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/externalauth-default.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/externalauth-default.json index d099655f0db..35fc67b287b 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/externalauth-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/externalauth-default.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/operation-externalauth-create-default.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/operation-externalauth-create-default.json index 20e76398e7a..a3a7b4a8aba 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/operation-externalauth-create-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/operation-externalauth-create-default.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/ea807c13-7e15-43d4-b760-69ef7e31d273" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/subscription.json index 9c642482427..7899acc26f8 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/create-current/06-cosmosCompare-ending-content/subscription.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-cluster-create-with-tags-create.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-cluster-create-with-tags-create.json index 34e89642956..4bf24cf9596 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-cluster-create-with-tags-create.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-cluster-create-with-tags-create.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/9696fbeb-0e78-4a32-a3fd-a6e987c2a015" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-externalauth-create-default.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-externalauth-create-default.json index 283cf1095ec..16aeddffacd 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-externalauth-create-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/01-load-old-data/operation-externalauth-create-default.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/5dce3cac-e09b-4ef5-803c-cb8f17b3a552" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/09-cosmosCompare-confirm-update/externalauth-default.json b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/09-cosmosCompare-confirm-update/externalauth-default.json index 889d1977174..e3a45cd180e 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/09-cosmosCompare-confirm-update/externalauth-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/ExternalAuth/read-old-data/09-cosmosCompare-confirm-update/externalauth-default.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/cluster-create-with-tags.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/cluster-create-with-tags.json index 2b281726eba..196f622da79 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/cluster-create-with-tags.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/cluster-create-with-tags.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/externalauth-default.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/externalauth-default.json index d6abe18e73d..8b73e929cf0 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/externalauth-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/externalauth-default.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-basic-node-pool.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-basic-node-pool.json index 6a33a0092f6..249c7a8bb97 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-basic-node-pool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-basic-node-pool.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-node-pool-02.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-node-pool-02.json index 6d0c3319335..d509749e36a 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-node-pool-02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/nodepool-node-pool-02.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/subscription.json index 94631f97ab8..835a8a5bdb0 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-data/99-cosmosCompare-confirm-migration/subscription.json @@ -5,6 +5,7 @@ "properties": { "cosmosMetadata": { "etag": "\"00000000-0000-0000-7121-fcdc980501dc\"", + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-subscription/99-cosmosCompare-confirm-migration/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-subscription/99-cosmosCompare-confirm-migration/subscription.json index 3a4386f2e52..d9c073a330e 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-subscription/99-cosmosCompare-confirm-migration/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/migrate-old-subscription/99-cosmosCompare-confirm-migration/subscription.json @@ -4,6 +4,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-basicnodepool.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-basicnodepool.json index 1c196d4d0c9..5d6a66ecacd 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-basicnodepool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-basicnodepool.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/cdfb496e-6e70-4022-9f8d-b0dacf6d2ff5" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-nodepool-02.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-nodepool-02.json index 26540f730be..a8a6a7f9ceb 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-nodepool-02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-create-nodepool-02.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/4067756a-fcc1-4732-a211-d785d888203c" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-externalauth-create-default.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-externalauth-create-default.json index 283cf1095ec..16aeddffacd 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-externalauth-create-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/01-load-old-data/operation-externalauth-create-default.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/5dce3cac-e09b-4ef5-803c-cb8f17b3a552" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/externalauth-default.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/externalauth-default.json index 5b43dc25a70..63977d4618d 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/externalauth-default.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/externalauth-default.json @@ -4,6 +4,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/externalAuths/default" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/nodepool-node-pool-02.json b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/nodepool-node-pool-02.json index 5a743b89303..e43e27cf2e9 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/nodepool-node-pool-02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/Migration/read-new-data/18-cosmosCompare-confirm/nodepool-node-pool-02.json @@ -4,6 +4,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-basic-nodepool.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-basic-nodepool.json index a05b850c85f..ac67f87575a 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-basic-nodepool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-basic-nodepool.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/7c3de93c-ff5d-4865-a177-291549ba8020" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-nodepool-02.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-nodepool-02.json index ffd00da74ef..f763dabdaac 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-nodepool-02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/05-listActiveOperations-cluster-create/operation-nodepool-create-nodepool-02.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/c1216e33-a694-4a65-a504-d821c30dc67c" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/cluster-create-with-tags.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/cluster-create-with-tags.json index 906d3b469d2..e17fa942678 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/cluster-create-with-tags.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/cluster-create-with-tags.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-basic-node-pool.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-basic-node-pool.json index e828f2f906e..89e9446cd2e 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-basic-node-pool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-basic-node-pool.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-node-pool-02.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-node-pool-02.json index 6ba5b39fcc8..c6a5e35d630 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-node-pool-02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/nodepool-node-pool-02.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json index 28244838b70..7f3306e32b3 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/operation-cluster-create-with-tags-create.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/7a4ed07a-47a1-4efb-966a-93a6316522a0" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/subscription.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/subscription.json index 9c642482427..7899acc26f8 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/subscription.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/create-current/06-cosmosCompare-confirm-content/subscription.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7" }, "properties": null, diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-basicnodepool.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-basicnodepool.json index 1c196d4d0c9..5d6a66ecacd 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-basicnodepool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-basicnodepool.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/cdfb496e-6e70-4022-9f8d-b0dacf6d2ff5" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-nodepool-02.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-nodepool-02.json index 26540f730be..a8a6a7f9ceb 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-nodepool-02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/01-load-old-data/operation-create-nodepool-02.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/4067756a-fcc1-4732-a211-d785d888203c" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-basicnodepool.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-basicnodepool.json index d0e3e4b1fab..d0963ad7fcb 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-basicnodepool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-basicnodepool.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/cdfb496e-6e70-4022-9f8d-b0dacf6d2ff5" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-nodepool02.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-nodepool02.json index 4df6e937da0..7bb19963842 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-nodepool02.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/04-listActiveOperations-node-create/operation-nodepool-create-nodepool02.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/4067756a-fcc1-4732-a211-d785d888203c" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/node-pool-02", diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/09-cosmosCompare-confirm-update/nodepool-basic-node-pool.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/09-cosmosCompare-confirm-update/nodepool-basic-node-pool.json index d5e4d6f942a..fd682b4cf33 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/09-cosmosCompare-confirm-update/nodepool-basic-node-pool.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/read-old-data/09-cosmosCompare-confirm-update/nodepool-basic-node-pool.json @@ -8,6 +8,7 @@ "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "properties": { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/create-with-tags/nodePools/basic-node-pool" }, "intermediateResourceDoc": { diff --git a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/version-update/08-listActiveOperations-version-update/operation.json b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/version-update/08-listActiveOperations-version-update/operation.json index 32a4c672fb1..6d4dd5ed08e 100644 --- a/test-integration/frontend/artifacts/FrontendCRUD/NodePool/version-update/08-listActiveOperations-version-update/operation.json +++ b/test-integration/frontend/artifacts/FrontendCRUD/NodePool/version-update/08-listActiveOperations-version-update/operation.json @@ -1,5 +1,6 @@ { "cosmosMetadata": { + "partitionKey": "6b690bec-0c16-4ecb-8f67-781caf40bba7", "resourceID": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/providers/Microsoft.RedHatOpenShift/hcpOperationStatuses/00000000-0000-0000-0000-000000000000" }, "externalId": "/subscriptions/6b690bec-0c16-4ecb-8f67-781caf40bba7/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/version-update/nodePools/update-np",