-
Notifications
You must be signed in to change notification settings - Fork 0
ETT-1241: fix section 108 access #177
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
base: main
Are you sure you want to change the base?
Conversation
ln shouldn't be in environment
|
@carylwyatt @Ronster2018 See 39b2c1d. I think the main blocker to just using the regular apache service (rather than apache-test) is that we have a health check configured for the catalog; previously, the catalog repo was private, so we couldn't easily check it out here. I think we could maybe think about removing some of the health checks for optional things (i.e. the things we don't have automated playwright tests for anyway), controlling bringing the rest of it up via profile instead (e.g. a 'test' profile vs a 'everything' profile), and get rid of apache vs. apache-test. I may see what I can do here with that, because I think it will simplify trying to develop these ETAS & section 108 tests. |
|
Yes, please. The |
|
The playwright tests that were failing were an experiment that accidentally got committed. I think they should be fine. |
This should eliminate the issue of apache vs. apache-test and fighting over port numbers. One potential drawback is that the auth state won't be retained after running the tests, but that was the case currently too for apache-test.
3c711c2 to
f4bfef2
Compare
f4bfef2 to
6ed770c
Compare
|
@Ronster2018 I'm hoping you can take a look at the docker compose changes. |
| echo -e "Resetting ht_sessions database table " | ||
| docker compose exec mysql-sdr mariadb -u mdp-lib -pmdp-lib -h localhost ht -e "DELETE FROM ht_sessions;" | ||
| echo -e "Resetting ht_sessions & pt_exclusivity_ng database tables" | ||
| docker compose exec mysql-sdr mariadb -u mdp-lib -pmdp-lib -h localhost ht -e "DELETE FROM ht_sessions; DELETE FROM pt_exclusivity_ng;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to clear pt_exclusivity_ng to start with a blank slate for ETAS and section 108 testing. Ideally, could clear it before every test; not sure we have a good way to do that; should work as-is though.
6ed770c to
bf44eac
Compare
|
Playwright tests for section 108 access are failing. I'm not exactly sure what's missing, but I'll look more. |
* Sample item op_brlm with requisite holdings * Limit authed tests to one worker - parallel workers will run into race conditions with the item already being checked out, etc. * Run authed tests only with chromium -- we're mainly testing application logic, not browser display * Restart apache with HUP rather than USR1 & add delay - may help with more reliably reloading config completely before running tests
bf44eac to
71b169f
Compare
|
Was missing the holdings API response for the brittle item. Hopefully this should be fixed now & playwright tests will pass here. |
|
When I first pulled this down to test out docker, catalog wasn't working correctly. There was an error that referenced php 8, so I just ran I did a |
Regardless I might have to see what's going on. Maybe |
setup.sh
Outdated
| BABEL_HOME="$(dirname $(realpath $0))" | ||
| EOT | ||
|
|
||
| ln -rsv geoip/always_us.mmdb geoip/GeoIP2-Country.mmdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My ln does not like the -r option. I had to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the symlink work correctly without the -r option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apache local didn't work for me until I changed the command to ln -svf always_us.mmdb geoip/GeoIP2-Country.mmdb (using the -f flag from geoip/README.md)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated in this branch. @carylwyatt see if that works for you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this branch, and it works well in my environment.
|
I too had issues, even with the updated It also helped that I somewhat belatedly remembered to update imgsrv sample data :-) |
|
It took me many attempts to get all the right pieces lined up in the correct order, but this is working! Catalog, pt, ls, mb, all loaded. I had no problem running my usual firebird and pt commands, and I ran playwright without issue. Probably unrelated to this PR, but the playwright tests failed on some of the full resolution TIFF downloads, and honestly it's the perfect timing for adding that try/catch block there, so I'm kind of glad those tests failed. I have never seen this response for a download before! Response: Which seems to be related to this It's a 200 response, but for whatever reason, this "in progress"/"packing images..." message is sent to pt, but Of course when I try to get it to happen again, the tests pass and everything is normal in the browser. 😡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified that a unit test would have caught that $access_type vs $user_access_type error I introduced. Stay tuned for a proof of concept branch. This all looks good.
EDIT: I did get some PIFiller tests on the go, but I'll be darned if I can get Global symbol "$user_access_type" requires explicit package name (did you forget to declare "my $user_access_type"?) to show up now, short of slapping a use strict in the source file itself, which is not exactly what I intended (but which we should probably do for the whole of mdp-lib at least)!
This PR: