Given
Set token of apiUsername "super-admin-skd"
121ms
And
Set basic authorities "ROLE_QUEUE_STATUS_TAB;ROLE_SEND_SMS_TO_ALL_DRIVERS_IN_QUEUE" to user "swiss-krono-delivery-admin"
042ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd"
038ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.
at sun.reflect.GeneratedConstructorAccessor191.newInstance(Unknown Source)
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.GeneratedMethodAccessor94.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.GeneratedMethodAccessor93.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.post(RequestSpecificationImpl.groovy:175)
at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)
at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:64)
at CucumberTests.Transport.CreateTransport.createByJSONFileAs(CreateTransport.java:76)
at ✽.Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd"(file:Features/Atom/ClassificationResource/QueuesStatusTab.feature:92)
When
Confirm status "REPORTING" by Public API "v1"
000ms
And
Confirm status "ARRIVAL" by Public API "v1"
000ms
And
Assign Queue to classification resource: "super-admin-skd" "zrębki" "CLASSIFICATION"
000ms
And
Login as "swiss-krono-delivery-admin"
000ms
And
Go to transport details "DELIVERY"
000ms
And
Set driver phone number "48" "789440109"
000ms
And
Go to "QUEUES_STATUS_TAB"
000ms
And
Verify that classification resource is proper "Zrębki" and "zrębki" in Queues Status Tab
000ms
And
Set "Zrębki" and "zrębki" for test
000ms
Then
Click Send SMS icon
000ms
And
Put default text in SMS modal
000ms
And
Wait "20" seconds
000ms
And
Verify that sms has been sent to driver "logintegra-imperial-test" "Argetnigol.7890"
000ms
And
Wait "10" seconds
000ms