Skip to content

Commit

Permalink
chore(compatibility-suite): Correct the shared steps after updating t…
Browse files Browse the repository at this point in the history
…he compatibility suite
  • Loading branch information
rholshausen committed Feb 12, 2025
1 parent 8789492 commit 1b1cf84
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ class SharedHttpProvider {
) {
def interaction = world.interactions[num - 1].copy()
def entry = dataTable.entries().first()
if (entry['status']) {
interaction.response.status = entry['status'].toInteger()
if (entry['response']) {
interaction.response.status = entry['response'].toInteger()
}

if (entry['headers']) {
entry['headers'].split(',').collect {
if (entry['response headers']) {
entry['response headers'].split(',').collect {
it.trim()[1..-2].split(':')
}.collect {
[it[0].trim(), parseHeaderValue(it[1].trim()).collect { HeaderParser.INSTANCE.hvToString(it) }]
Expand All @@ -97,8 +97,8 @@ class SharedHttpProvider {
}
}

if (entry['body']) {
def part = configureBody(entry['body'], determineContentType(entry['body'],
if (entry['response body']) {
def part = configureBody(entry['response body'], determineContentType(entry['response body'],
interaction.response.contentTypeHeader()))
interaction.response.body = part.body
interaction.response.headers.putAll(part.headers)
Expand Down

0 comments on commit 1b1cf84

Please sign in to comment.