Skip to content

Commit 4ff0b43

Browse files
ACM-14711 Rosa-cluster-via-ocm (stolostron#3950)
* rosa-cluster-via-ocm Signed-off-by: vsanghishetty <vishali.kamenani@ymail.com> * Refactor proposal for ImportCluster Signed-off-by: Kevin Cormier <kcormier@redhat.com> --------- Signed-off-by: vsanghishetty <vishali.kamenani@ymail.com> Signed-off-by: Kevin Cormier <kcormier@redhat.com> Co-authored-by: Kevin Cormier <kcormier@redhat.com>
1 parent 2b1e7f1 commit 4ff0b43

File tree

2 files changed

+215
-193
lines changed

2 files changed

+215
-193
lines changed

frontend/src/routes/Infrastructure/Clusters/ManagedClusters/ImportCluster/ImportCluster.test.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,9 @@ const mockROSAAutoTokenSecretAPIToken: Secret = {
292292
},
293293
stringData: {
294294
autoImportRetry: '2',
295-
api_token: 'fake_token',
296295
cluster_id: '39ldt3r51vjjsho1eqntrg3m',
296+
auth_method: 'offline-token',
297+
api_token: 'fake_token',
297298
},
298299
type: 'auto-import/rosa',
299300
}
@@ -307,8 +308,10 @@ const mockROSAAutoTokenSecretServiceAcc: Secret = {
307308
},
308309
stringData: {
309310
autoImportRetry: '2',
310-
api_token: '',
311311
cluster_id: '39ldt3r51vjjsho1eqntrg3m',
312+
auth_method: 'service-account',
313+
client_id: 'fake_client_id1234',
314+
client_secret: 'fake_client_secret1234',
312315
},
313316
type: 'auto-import/rosa',
314317
}

0 commit comments

Comments
 (0)