Skip to content

Commit 7bb49af

Browse files
Merge pull request #1819 from GowthamShanmugam/DFBUGS-1309
MDR DR policy creation issue with UI
2 parents eef8b28 + 6a5f746 commit 7bb49af

File tree

6 files changed

+344
-390
lines changed

6 files changed

+344
-390
lines changed

packages/mco/__mocks__/managedcluster.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const mockManagedClusterEast1 = {
55
kind: ACMManagedClusterModel.kind,
66
metadata: {
77
name: 'east-1',
8+
uid: 'f5302bfd-7c34-42a7-8be7-c410d614a7c3',
89
},
910
status: {
1011
conditions: [
@@ -31,6 +32,7 @@ export const mockManagedClusterWest1 = {
3132
kind: ACMManagedClusterModel.kind,
3233
metadata: {
3334
name: 'west-1',
35+
uid: '314ec799-647c-47f7-ae3e-b4ea71a8d06f',
3436
},
3537
status: {
3638
conditions: [
@@ -57,6 +59,7 @@ export const mockManagedClusterWest1Down = {
5759
kind: ACMManagedClusterModel.kind,
5860
metadata: {
5961
name: 'west-1',
62+
uid: 'e2f4fcb4-df5b-4c00-8d31-f918842f1c3a',
6063
},
6164
status: {
6265
conditions: [
@@ -83,6 +86,7 @@ export const mockManagedClusterEast2 = {
8386
kind: ACMManagedClusterModel.kind,
8487
metadata: {
8588
name: 'east-2',
89+
uid: '47f8367d-49e1-4b24-9343-aaf6e47bd012',
8690
},
8791
status: {
8892
conditions: [
@@ -103,3 +107,30 @@ export const mockManagedClusterEast2 = {
103107
],
104108
},
105109
};
110+
111+
export const mockManagedClusterWest2Down = {
112+
apiVersion: `${ACMManagedClusterModel.apiGroup}/${ACMManagedClusterModel.apiVersion}`,
113+
kind: ACMManagedClusterModel.kind,
114+
metadata: {
115+
name: 'west-2',
116+
uid: '817346d9-7886-43b2-821b-7c9eea49089c',
117+
},
118+
status: {
119+
conditions: [
120+
{
121+
type: 'ManagedClusterJoined',
122+
lastTransitionTime: '2023-11-29T04:30:13Z',
123+
message: 'Managed cluster joined',
124+
reason: 'ManagedClusterJoined',
125+
status: 'True',
126+
},
127+
{
128+
lastTransitionTime: '2023-11-29T04:30:13Z',
129+
message: 'Managed cluster is available',
130+
reason: 'ManagedClusterAvailable',
131+
status: 'False',
132+
type: 'ManagedClusterConditionAvailable',
133+
},
134+
],
135+
},
136+
};

0 commit comments

Comments
 (0)