[FOLIO-732] create a test that verifies if dependencies match Created: 19/Jul/17 Updated: 12/Nov/18 Resolved: 25/Jul/17 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | New Feature | Priority: | P3 |
| Reporter: | Jakub Skoczen | Assignee: | charles |
| Resolution: | Done | Votes: | 0 |
| Labels: | ci, sprint18, sprint19 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1 hour, 30 minutes | ||
| Original estimate: | Not Specified | ||
| Sprint: |
| Description |
|
and fail if they don't. This could be implemented by scraping the FOLIO about page. |
| Comments |
| Comment by charles [ 19/Jul/17 ] |
|
Ok-- A dependencies test has been created (called dependencies.js). It has been added to the default test cycle. |
| Comment by charles [ 19/Jul/17 ] |
|
Oh yeah-- I couldn't find any installation on testing, demo or stable that had dependency issues thus far. So, I can't be certain that the test will work properly. |
| Comment by Wayne Schneider [ 21/Jul/17 ] |
|
Sorry – sent this comment via email yesterday, guess that feature doesn't work. charles – Do you want me to make you a VM that has dependency problems? Nothing could be simpler |
| Comment by charles [ 21/Jul/17 ] |
|
This sounds like a good idea, Wayne. Thanks. |
| Comment by charles [ 25/Jul/17 ] |
|
This test does indeed find incompatibilities and lists them nicely:
$ yarn test-dependencies
Using the App FOLIO UI App /about
Login > Click "About" link > Check for dependency errors > Logout
✓ should login as diku_admin/admin (7074ms)
✓ should load "about" page (631ms)
✓ should find no "red" errors (565ms)
1) should find no "orange" errors
✓ should logout (632ms)
4 passing (9s)
1 failing
1) Using the App FOLIO UI App /about Login > Click "About" link > Check for dependency errors > Logout
should find no "orange" errors:
Error: done() invoked with non-Error: Interfaces that are required but present only in an incompatible version:
circulation 2.0 (2.1 available)
loan-storage 3.0 (3.1 available)
circulation 2.0 (2.1 available)
loan-storage 3.0 (3.1 available)
at process._tickCallback (internal/process/next_tick.js:109:7)
error Command failed with exit code 1.
Closing issue... |