change 계약서 파일

This commit is contained in:
kimscott
2019-12-19 10:29:01 +09:00
parent a5fb3d7e15
commit 1873979e64
2 changed files with 0 additions and 62 deletions

View File

@@ -1,31 +0,0 @@
package contracts.rest
org.springframework.cloud.contract.spec.Contract.make {
request {
method 'GET'
url ('/product/1')
headers {
contentType(applicationJson())
}
}
response {
status 200
body(
id: 1,
name: "TV",
price: 10000,
stock: 10,
imageUrl: "testUrl"
)
bodyMatchers {
jsonPath('$.id', byRegex(nonEmpty()).asLong())
jsonPath('$.name', byRegex(nonEmpty()).asString())
jsonPath('$.price', byRegex(nonEmpty()).asLong())
jsonPath('$.stock', byRegex(nonEmpty()).asLong())
jsonPath('$.imageUrl', byRegex(nonEmpty()).asString())
}
headers {
contentType(applicationJson())
}
}
}

View File

@@ -1,31 +0,0 @@
package contracts.rest
org.springframework.cloud.contract.spec.Contract.make {
request {
method 'GET'
url ('/product/1')
headers {
contentType(applicationJson())
}
}
response {
status 200
body(
id: 1,
name: "TV",
price: 10000,
stock: 10,
imageUrl: "testUrl"
)
bodyMatchers {
jsonPath('$.id', byRegex(nonEmpty()).asLong())
jsonPath('$.name', byRegex(nonEmpty()).asString())
jsonPath('$.price', byRegex(nonEmpty()).asLong())
jsonPath('$.stock', byRegex(nonEmpty()).asLong())
jsonPath('$.imageUrl', byRegex(nonEmpty()).asString())
}
headers {
contentType(applicationJson())
}
}
}