@@ -68,7 +68,7 @@ describe('Gateway permissions', () => {
6868 . expect ( 403 ) ;
6969
7070 expect ( res . body && res . body . error )
71- . toStrictEqual ( 'Permission is not allowed : graphql' ) ;
71+ . toStrictEqual ( 'Permission is missed : graphql' ) ;
7272
7373 apiGateway . release ( ) ;
7474 } ) ;
@@ -86,15 +86,15 @@ describe('Gateway permissions', () => {
8686 . expect ( 403 ) ;
8787
8888 expect ( res1 . body && res1 . body . error )
89- . toStrictEqual ( 'Permission is not allowed : meta' ) ;
89+ . toStrictEqual ( 'Permission is missed : meta' ) ;
9090
9191 const res2 = await request ( app )
9292 . post ( '/cubejs-api/v1/pre-aggregations/can-use' )
9393 . set ( 'Authorization' , AUTH_TOKEN )
9494 . expect ( 403 ) ;
9595
9696 expect ( res2 . body && res2 . body . error )
97- . toStrictEqual ( 'Permission is not allowed : meta' ) ;
97+ . toStrictEqual ( 'Permission is missed : meta' ) ;
9898
9999 apiGateway . release ( ) ;
100100 } ) ;
@@ -112,31 +112,31 @@ describe('Gateway permissions', () => {
112112 . expect ( 403 ) ;
113113
114114 expect ( res1 . body && res1 . body . error )
115- . toStrictEqual ( 'Permission is not allowed : data' ) ;
115+ . toStrictEqual ( 'Permission is missed : data' ) ;
116116
117117 const res2 = await request ( app )
118118 . post ( '/cubejs-api/v1/load' )
119119 . set ( 'Authorization' , AUTH_TOKEN )
120120 . expect ( 403 ) ;
121121
122122 expect ( res2 . body && res2 . body . error )
123- . toStrictEqual ( 'Permission is not allowed : data' ) ;
123+ . toStrictEqual ( 'Permission is missed : data' ) ;
124124
125125 const res3 = await request ( app )
126126 . get ( '/cubejs-api/v1/subscribe' )
127127 . set ( 'Authorization' , AUTH_TOKEN )
128128 . expect ( 403 ) ;
129129
130130 expect ( res3 . body && res3 . body . error )
131- . toStrictEqual ( 'Permission is not allowed : data' ) ;
131+ . toStrictEqual ( 'Permission is missed : data' ) ;
132132
133133 const res4 = await request ( app )
134134 . get ( '/cubejs-api/v1/sql' )
135135 . set ( 'Authorization' , AUTH_TOKEN )
136136 . expect ( 403 ) ;
137137
138138 expect ( res4 . body && res4 . body . error )
139- . toStrictEqual ( 'Permission is not allowed : data' ) ;
139+ . toStrictEqual ( 'Permission is missed : data' ) ;
140140
141141 const res5 = await request ( app )
142142 . post ( '/cubejs-api/v1/sql' )
@@ -145,15 +145,15 @@ describe('Gateway permissions', () => {
145145 . expect ( 403 ) ;
146146
147147 expect ( res5 . body && res5 . body . error )
148- . toStrictEqual ( 'Permission is not allowed : data' ) ;
148+ . toStrictEqual ( 'Permission is missed : data' ) ;
149149
150150 const res6 = await request ( app )
151151 . get ( '/cubejs-api/v1/dry-run' )
152152 . set ( 'Authorization' , AUTH_TOKEN )
153153 . expect ( 403 ) ;
154154
155155 expect ( res6 . body && res6 . body . error )
156- . toStrictEqual ( 'Permission is not allowed : data' ) ;
156+ . toStrictEqual ( 'Permission is missed : data' ) ;
157157
158158 const res7 = await request ( app )
159159 . post ( '/cubejs-api/v1/dry-run' )
@@ -162,7 +162,7 @@ describe('Gateway permissions', () => {
162162 . expect ( 403 ) ;
163163
164164 expect ( res7 . body && res7 . body . error )
165- . toStrictEqual ( 'Permission is not allowed : data' ) ;
165+ . toStrictEqual ( 'Permission is missed : data' ) ;
166166
167167 apiGateway . release ( ) ;
168168 } ) ;
@@ -180,15 +180,15 @@ describe('Gateway permissions', () => {
180180 . expect ( 403 ) ;
181181
182182 expect ( res1 . body && res1 . body . error )
183- . toStrictEqual ( 'Permission is not allowed : jobs' ) ;
183+ . toStrictEqual ( 'Permission is missed : jobs' ) ;
184184
185185 const res2 = await request ( app )
186186 . get ( '/cubejs-api/v1/run-scheduled-refresh' )
187187 . set ( 'Authorization' , AUTH_TOKEN )
188188 . expect ( 403 ) ;
189189
190190 expect ( res2 . body && res2 . body . error )
191- . toStrictEqual ( 'Permission is not allowed : jobs' ) ;
191+ . toStrictEqual ( 'Permission is missed : jobs' ) ;
192192
193193 apiGateway . release ( ) ;
194194 } ) ;
0 commit comments