-
Notifications
You must be signed in to change notification settings - Fork 0
Crosslink 200 check items #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
92c3d8f
Add more patron request checks for lastResult, ...
adamdickmeiss ca4d276
Missing files
adamdickmeiss bd5dc63
Fix test messages
adamdickmeiss 3a1a751
Another one
adamdickmeiss 9c48701
bruno: Check Items in two places
adamdickmeiss 4e14822
Merge branch 'main' into CROSSLINK-200-check-items
adamdickmeiss 0d63ee0
check for barcode and itemId in borrowing side
adamdickmeiss e241d38
No need to pass side for /patron_requests/{{PrId}}/items
adamdickmeiss 574ee2c
Update bruno/crosslink/PR Happy flow/Borrowing side check items.bru
adamdickmeiss 6768214
Update bruno/crosslink/PR Happy flow/Borrowing side check items.bru
adamdickmeiss f75b3d6
Update bruno/crosslink/PR Happy flow/Lending side check items.bru
adamdickmeiss 1a7d5ed
body: none
adamdickmeiss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
bruno/crosslink/PR Happy flow/Borrowing side get all actions.bru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
36 changes: 36 additions & 0 deletions
36
bruno/crosslink/PR Happy flow/Borrowing side check items.bru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
bruno/crosslink/PR Happy flow/Borrowing side check-in check.bru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
bruno/crosslink/PR Happy flow/Borrowing side check-out check.bru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
bruno/crosslink/PR Happy flow/Borrowing side ship-return check.bru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
38 changes: 38 additions & 0 deletions
38
bruno/crosslink/PR Happy flow/Lending side check items.bru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | ||
| }); | ||
adamdickmeiss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }); | ||
| } | ||
|
|
||
| settings { | ||
| encodeUrl: true | ||
| timeout: 0 | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.