@@ -60,7 +60,7 @@ Feature: With and without trailing slash cannot co-exist
6060 And header Link = '<http://www.w3.org/ns/ldp#BasicContainer> ; rel="type" '
6161 When method POST
6262 Then assert responseStatus >= 200 && responseStatus < 300
63- And def childContainerUrl = responseHeaders['Location'] [0]
63+ And def childContainerUrl = karate.response.headerValues('location') [0]
6464 And assert childContainerUrl.endsWith('/')
6565
6666 # confirm there is no non-container resource with the same URI
@@ -87,7 +87,7 @@ Feature: With and without trailing slash cannot co-exist
8787 And request 'Hello'
8888 When method POST
8989 # this should either succeed (without using the slug) or fail as a conflict
90- Then assert (responseStatus > = 200 && responseStatus < 300 && responseHeaders['Location'] [0] != resourceUrl) || [409, 415].includes(responseStatus)
90+ Then assert (responseStatus > = 200 && responseStatus < 300 && karate.response.headerValues('location') [0] != resourceUrl) || [409, 415].includes(responseStatus)
9191
9292 Scenario: POST resource, then try container with same name
9393 Given url testContainer.url
@@ -96,7 +96,7 @@ Feature: With and without trailing slash cannot co-exist
9696 And request 'Hello'
9797 When method POST
9898 Then assert responseStatus > = 200 && responseStatus < 300
99- And def resourceUrl = responseHeaders['Location'] [0]
99+ And def resourceUrl = karate.response.headerValues('location') [0]
100100 And assert !resourceUrl.endsWith('/')
101101
102102 # confirm there is no container with the same URI
@@ -122,6 +122,6 @@ Feature: With and without trailing slash cannot co-exist
122122 And header Link = '<http://www.w3.org/ns/ldp#BasicContainer> ; rel="type" '
123123 When method POST
124124 # this should either succeed (without using the slug) or fail as a conflict
125- Then assert (responseStatus >= 200 && responseStatus < 300 && responseHeaders['Location'] [0] != resourceUrl + '/') || [409, 415].includes(responseStatus)
125+ Then assert (responseStatus >= 200 && responseStatus < 300 && karate.response.headerValues('location') [0] != resourceUrl + '/') || [409, 415].includes(responseStatus)
126126
127127# TODO: Evil test to check various suffices.
0 commit comments