32 lines
No EOL
630 B
Text
32 lines
No EOL
630 B
Text
meta {
|
|
name: Get Chain
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/chains/{{chainId}}
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer {{authToken}}
|
|
}
|
|
|
|
assert {
|
|
res.status: equals 200
|
|
}
|
|
|
|
tests {
|
|
test("Get chain returns chain object directly", function() {
|
|
const data = res.getBody();
|
|
expect(data).to.have.property("id");
|
|
expect(data).to.have.property("name");
|
|
expect(data).to.have.property("created_at");
|
|
expect(data).to.have.property("updated_at");
|
|
});
|
|
|
|
test("Chain id matches requested id", function() {
|
|
const data = res.getBody();
|
|
expect(data.id).to.equal(Number(bru.getVar("chainId")));
|
|
});
|
|
} |