Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side get all actions
type: http
seq: 20
seq: 22
}

get {
Expand Down
36 changes: 36 additions & 0 deletions bruno/crosslink/PR Happy flow/Borrowing side check items.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
meta {
name: Borrowing side check items
type: http
seq: 12
}

get {
url: {{host}}/patron_requests/{{prId}}/items
body: none
auth: basic
}

headers {
X-Okapi-Tenant: {{OkapiTenantReq}}
}

auth:basic {
username: {{userName}}
password: {{userPassword}}
}

script:post-response {
test("for items", function() {
const items = res.getBody();
expect(items.length).to.be.at.least(1);
items.forEach(function(item) {
expect(item).to.have.property("itemId");
expect(item).to.have.property("barcode");
});
});
}

settings {
encodeUrl: true
timeout: 0
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side check status
type: http
seq: 19
seq: 21
}

get {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side check-in check
type: http
seq: 14
seq: 16
}

get {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side check-in
type: http
seq: 13
seq: 15
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side check-out check
type: http
seq: 12
seq: 14
}

get {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side check-out
type: http
seq: 11
seq: 13
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side receive check
type: http
seq: 10
seq: 11
}

get {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Borrowing side receive.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side receive
type: http
seq: 9
seq: 10
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side ship-return check
type: http
seq: 16
seq: 18
}

get {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Borrowing side ship-return
type: http
seq: 15
seq: 17
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Get Peers.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Peers
type: http
seq: 26
seq: 28
}

get {
Expand Down
38 changes: 38 additions & 0 deletions bruno/crosslink/PR Happy flow/Lending side check items.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
meta {
name: Lending side check items
type: http
seq: 6
}

get {
url: {{host}}/patron_requests/{{lendingPrId}}/items
body: none
auth: basic
}

headers {
X-Okapi-Tenant: {{OkapiTenantSup}}
}

auth:basic {
username: {{userName}}
password: {{userPassword}}
}

script:post-response {
test("for items", function() {
const pr = res.getBody();
const expected = bru.getEnvVar("itemId");
expect(pr.length).to.be.at.least(1);
pr.forEach(function(item) {
expect(item).to.have.property("itemId");
expect(item).to.have.property("barcode");
expect(item.itemId).to.equal(expected);
});
});
}

settings {
encodeUrl: true
timeout: 0
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Lending side check status
type: http
seq: 18
seq: 20
}

get {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Lending side get all actions
type: http
seq: 21
seq: 23
}

get {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Lending side mark-received
type: http
seq: 17
seq: 19
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Lending side ship check
type: http
seq: 8
seq: 9
}

get {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Lending side ship.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Lending side ship
type: http
seq: 7
seq: 8
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Lending side will-supply
type: http
seq: 6
seq: 7
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Req Patron Events.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Req Patron Events
type: http
seq: 23
seq: 25
}

get {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Requester Events.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Requester Events
type: http
seq: 22
seq: 24
}

get {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Sup Patron Events.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Sup Patron Events
type: http
seq: 25
seq: 27
}

get {
Expand Down
2 changes: 1 addition & 1 deletion bruno/crosslink/PR Happy flow/Supplier Events.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Supplier Events
type: http
seq: 24
seq: 26
}

get {
Expand Down
Loading