@@ -41,45 +41,45 @@ describe('Cynosdb', () => {
4141 expect ( res . length ) . toBe ( 6 ) ;
4242 } ) ;
4343
44- test ( '[NORMAL] deploy' , async ( ) => {
45- const res = await client . deploy ( inputs ) ;
46- expect ( res ) . toEqual ( {
47- dbMode : 'NORMAL' ,
48- region : inputs . region ,
49- region : inputs . region ,
50- zone : inputs . zone ,
51- vpcConfig : inputs . vpcConfig ,
52- instanceCount : 2 ,
53- adminPassword : expect . stringMatching ( pwdReg ) ,
54- clusterId : expect . stringContaining ( 'cynosdbmysql-' ) ,
55- connection : {
56- ip : expect . any ( String ) ,
57- port : 3306 ,
58- readList : [
59- {
60- ip : expect . any ( String ) ,
61- port : 3306 ,
62- } ,
63- ] ,
64- } ,
65- } ) ;
66-
67- ( { clusterId } = res ) ;
68- } ) ;
69-
70- test ( '[NORMAL] remove' , async ( ) => {
71- await sleep ( 300 ) ;
72- const res = await client . remove ( { clusterId } ) ;
73-
74- const detail = await getClusterDetail ( client . capi , clusterId ) ;
75- expect ( res ) . toEqual ( true ) ;
76- expect ( detail . Status ) . toBe ( 'isolated' ) ;
77- } ) ;
78- test ( '[NORMAL] offline' , async ( ) => {
79- await sleep ( 300 ) ;
80- const res = await offlineCluster ( client . capi , clusterId ) ;
81- expect ( res ) . toBeUndefined ( ) ;
82- } ) ;
44+ // test('[NORMAL] deploy', async () => {
45+ // const res = await client.deploy(inputs);
46+ // expect(res).toEqual({
47+ // dbMode: 'NORMAL',
48+ // region: inputs.region,
49+ // region: inputs.region,
50+ // zone: inputs.zone,
51+ // vpcConfig: inputs.vpcConfig,
52+ // instanceCount: 2,
53+ // adminPassword: expect.stringMatching(pwdReg),
54+ // clusterId: expect.stringContaining('cynosdbmysql-'),
55+ // connection: {
56+ // ip: expect.any(String),
57+ // port: 3306,
58+ // readList: [
59+ // {
60+ // ip: expect.any(String),
61+ // port: 3306,
62+ // },
63+ // ],
64+ // },
65+ // });
66+
67+ // ({ clusterId } = res);
68+ // });
69+
70+ // test('[NORMAL] remove', async () => {
71+ // await sleep(300);
72+ // const res = await client.remove({ clusterId });
73+
74+ // const detail = await getClusterDetail(client.capi, clusterId);
75+ // expect(res).toEqual(true);
76+ // expect(detail.Status).toBe('isolated');
77+ // });
78+ // test('[NORMAL] offline', async () => {
79+ // await sleep(300);
80+ // const res = await offlineCluster(client.capi, clusterId);
81+ // expect(res).toBeUndefined();
82+ // });
8383
8484 test ( '[SERVERLESS] deploy' , async ( ) => {
8585 inputs . dbMode = 'SERVERLESS' ;
0 commit comments