@@ -24,7 +24,7 @@ const expectAfterDelete = (id, err, next) => {
2424 chai . assert . isNotNull ( res . deletedBy ) ;
2525
2626 request ( server )
27- . get ( `/v4/orgConfig/${ id } ` )
27+ . get ( `/v4/projects/metadata/ orgConfig/${ id } ` )
2828 . set ( {
2929 Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
3030 } )
@@ -51,13 +51,13 @@ describe('DELETE organization config', () => {
5151 describe ( 'DELETE /orgConfig/{id}' , ( ) => {
5252 it ( 'should return 403 if user is not authenticated' , ( done ) => {
5353 request ( server )
54- . delete ( `/v4/orgConfig/${ id } ` )
54+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
5555 . expect ( 403 , done ) ;
5656 } ) ;
5757
5858 it ( 'should return 403 for member' , ( done ) => {
5959 request ( server )
60- . delete ( `/v4/orgConfig/${ id } ` )
60+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
6161 . set ( {
6262 Authorization : `Bearer ${ testUtil . jwts . member } ` ,
6363 } )
@@ -66,7 +66,7 @@ describe('DELETE organization config', () => {
6666
6767 it ( 'should return 403 for copilot' , ( done ) => {
6868 request ( server )
69- . delete ( `/v4/orgConfig/${ id } ` )
69+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
7070 . set ( {
7171 Authorization : `Bearer ${ testUtil . jwts . copilot } ` ,
7272 } )
@@ -75,7 +75,7 @@ describe('DELETE organization config', () => {
7575
7676 it ( 'should return 403 for manager' , ( done ) => {
7777 request ( server )
78- . delete ( `/v4/orgConfig/${ id } ` )
78+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
7979 . set ( {
8080 Authorization : `Bearer ${ testUtil . jwts . manager } ` ,
8181 } )
@@ -84,7 +84,7 @@ describe('DELETE organization config', () => {
8484
8585 it ( 'should return 404 for non-existed config' , ( done ) => {
8686 request ( server )
87- . delete ( '/v4/orgConfig/not_existed' )
87+ . delete ( '/v4/projects/metadata/ orgConfig/not_existed' )
8888 . set ( {
8989 Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
9090 } )
@@ -95,7 +95,7 @@ describe('DELETE organization config', () => {
9595 models . OrgConfig . destroy ( { where : { id } } )
9696 . then ( ( ) => {
9797 request ( server )
98- . delete ( `/v4/orgConfig/${ id } ` )
98+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
9999 . set ( {
100100 Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
101101 } )
@@ -105,7 +105,7 @@ describe('DELETE organization config', () => {
105105
106106 it ( 'should return 204, for admin, if config was successfully removed' , ( done ) => {
107107 request ( server )
108- . delete ( `/v4/orgConfig/${ id } ` )
108+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
109109 . set ( {
110110 Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
111111 } )
@@ -115,7 +115,7 @@ describe('DELETE organization config', () => {
115115
116116 it ( 'should return 204, for connect admin, if config was successfully removed' , ( done ) => {
117117 request ( server )
118- . delete ( `/v4/orgConfig/${ id } ` )
118+ . delete ( `/v4/projects/metadata/ orgConfig/${ id } ` )
119119 . set ( {
120120 Authorization : `Bearer ${ testUtil . jwts . connectAdmin } ` ,
121121 } )
0 commit comments