Skip to content

Commit 1b1cf84

Browse files
committed
chore(compatibility-suite): Correct the shared steps after updating the compatibility suite
1 parent 8789492 commit 1b1cf84

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compatibility-suite/src/test/groovy/steps/shared/SharedHttpProvider.groovy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ class SharedHttpProvider {
7878
) {
7979
def interaction = world.interactions[num - 1].copy()
8080
def entry = dataTable.entries().first()
81-
if (entry['status']) {
82-
interaction.response.status = entry['status'].toInteger()
81+
if (entry['response']) {
82+
interaction.response.status = entry['response'].toInteger()
8383
}
8484

85-
if (entry['headers']) {
86-
entry['headers'].split(',').collect {
85+
if (entry['response headers']) {
86+
entry['response headers'].split(',').collect {
8787
it.trim()[1..-2].split(':')
8888
}.collect {
8989
[it[0].trim(), parseHeaderValue(it[1].trim()).collect { HeaderParser.INSTANCE.hvToString(it) }]
@@ -97,8 +97,8 @@ class SharedHttpProvider {
9797
}
9898
}
9999

100-
if (entry['body']) {
101-
def part = configureBody(entry['body'], determineContentType(entry['body'],
100+
if (entry['response body']) {
101+
def part = configureBody(entry['response body'], determineContentType(entry['response body'],
102102
interaction.response.contentTypeHeader()))
103103
interaction.response.body = part.body
104104
interaction.response.headers.putAll(part.headers)

0 commit comments

Comments
 (0)