@@ -32,51 +32,50 @@ describe('CreateManagedControlPlaneWizardContainer', () => {
3232 /> ,
3333 ) ;
3434
35+ const expMutationPayload : CreateManagedControlPlaneType = {
36+ apiVersion : 'core.openmcp.cloud/v1alpha1' ,
37+ kind : 'ManagedControlPlane' ,
38+ metadata : {
39+ name : 'some-text' ,
40+ namespace : '--ws-' ,
41+ annotations : {
42+ 'openmcp.cloud/display-name' : '' ,
43+ } ,
44+ labels : {
45+ 'openmcp.cloud.sap/charging-target-type' : '' ,
46+ 'openmcp.cloud.sap/charging-target' : '' ,
47+ } ,
48+ } ,
49+ spec : {
50+ authentication : {
51+ enableSystemIdentityProvider : true ,
52+ } ,
53+ components : {
54+ apiServer : {
55+ type : 'GardenerDedicated' ,
56+ } ,
57+ } ,
58+ authorization : {
59+ roleBindings : [
60+ {
61+ role : 'admin' ,
62+ subjects : [
63+ {
64+ kind : 'User' ,
65+ name :
'openmcp:[email protected] ' , 66+ } ,
67+ ] ,
68+ } ,
69+ ] ,
70+ } ,
71+ } ,
72+ } ;
73+
3574 cy . get ( '#name' ) . find ( ' input[id*="inner"]' ) . type ( 'some-text' ) ;
3675 cy . get ( 'ui5-button' ) . contains ( 'Next' ) . click ( ) ; // navigate to Members
3776 cy . get ( 'ui5-button' ) . contains ( 'Next' ) . click ( ) ; // navigate to Component Selection
3877 cy . get ( 'ui5-button' ) . contains ( 'Next' ) . click ( ) ; // navigate to Summarize
3978 cy . get ( 'ui5-button' ) . contains ( 'Create' ) . click ( ) ;
40-
41- cy . then ( ( ) =>
42- cy . wrap ( createMutationPayload ) . deepEqualJson ( {
43- apiVersion : 'core.openmcp.cloud/v1alpha1' ,
44- kind : 'ManagedControlPlane' ,
45- metadata : {
46- name : 'some-text' ,
47- namespace : '--ws-' ,
48- annotations : {
49- 'openmcp.cloud/display-name' : '' ,
50- } ,
51- labels : {
52- 'openmcp.cloud.sap/charging-target-type' : '' ,
53- 'openmcp.cloud.sap/charging-target' : '' ,
54- } ,
55- } ,
56- spec : {
57- authentication : {
58- enableSystemIdentityProvider : true ,
59- } ,
60- components : {
61- apiServer : {
62- type : 'GardenerDedicated' ,
63- } ,
64- } ,
65- authorization : {
66- roleBindings : [
67- {
68- role : 'admin' ,
69- subjects : [
70- {
71- kind : 'User' ,
72- name :
'openmcp:[email protected] ' , 73- } ,
74- ] ,
75- } ,
76- ] ,
77- } ,
78- } ,
79- } ) ,
80- ) ;
79+ cy . then ( ( ) => cy . wrap ( createMutationPayload ) . deepEqualJson ( expMutationPayload ) ) ;
8180 } ) ;
8281} ) ;
0 commit comments