Given
Set token of apiUsername "super-admin-piast"
278ms
And
Remove basic authorities "ROLE_ANNOUNCEMENTS_TAB" from user "super-admin-piast"
135ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)
at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:494)
at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1750)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:47)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1755)
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:47)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
at io.restassured.internal.RequestSpecificationImpl.delete(RequestSpecificationImpl.groovy:183)
at io.restassured.internal.RequestSpecificationImpl.delete(RequestSpecificationImpl.groovy)
at Utils.RestUtils.RestUtil.deleteResponse(RestUtil.java:344)
at Utils.RestUtils.RestUtil.deleteFromApolloApi(RestUtil.java:216)
at CucumberTests.Utils.AuthorityTest.lambda$null$1(AuthorityTest.java:76)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at CucumberTests.Utils.AuthorityTest.lambda$removeBasicAuthoritiesToUser$2(AuthorityTest.java:73)
at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
at CucumberTests.Utils.AuthorityTest.removeBasicAuthoritiesToUser(AuthorityTest.java:65)
at ✽.Remove basic authorities "ROLE_ANNOUNCEMENTS_TAB" from user "super-admin-piast"(file:Features/Atom/Users/UserAuthority.feature:134)
And
Login as "super-admin-piast"
000ms
When
Go to "SETTINGS_TAB"
000ms
And
Go to "QUALITY_CONTROLLER" authorities settings
000ms
And
Go to "DELIVERY" action authorities settings
000ms
And
Click add authority button
000ms
And
Select "Edycja głównych pól transportu" in action authority select
000ms
And
Select "Bez dodatkowych warunków" in action authority range select
000ms
And
Set transport type id
000ms
And
Click save authority button
000ms
And
Wait "5" seconds
000ms
And
Set action authority id
000ms
And
Expand "MAIN_TRANSPORT_DATA" panel
000ms
Then
Check if authority "Edycja głównych pól transportu" is "visible" in "MAIN_TRANSPORT_DATA" authority panel
000ms