-
Notifications
You must be signed in to change notification settings - Fork 2
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
secured THREDDS tests #55
Conversation
…way + apply masking of test-auth credentials
30c4efc
to
058ce18
Compare
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 for writing extra test for Magpie. Some good round-trip test cases.
However I think you misunderstood the purpose of this test suite. It's being run on live production instance! It's not just run inside the DACCS-iac fresh and disposable instances. @matprov never told you about this?! This same test suite probably also hit your hirondelle nightly. On our side it's nightly agaisnt our prod.
I see Thredds access permissions being changed without being restored!
I suggest add a clean-up at the end to revert all the permission changes and delete all the created test user/group and make the whole test case not enabled by default. Then @matprov can enable it in the DACCS-iac while our nightly hitting prod will not enable it. Only run against prod manually but not nightly.
I have not finished reading the notebook, will continue later.
The permissions are changed for a new group created on the fly during that test suite, so it will not impact access to other users/groups unless they are randomly added to that group.
I agree. I can add a cleanup of said test group afterwards execution, but I cannot 100% guarantee everything will be cleaned properly if the reason the test fails is caused by Magpie errors. So a "clean as best as possible" with some try/except. If that test feels too critical for a given server, it can be disabled using Jenkins' |
Exact, that's why I suggested default the |
My personal take on this is that it is better to have all tests enabled by default, and if you don't want them for specific reasons, you disable them with the knowledge under which deactivating them is reasonable. For now I applied |
It's not un-common to have a That said, I hear you point. So I would suggest bringing your 3 new options all the way to the top to make them really visible. Also add in the I also assume there are instructions with sufficient details in the test for manual cleanup if something go south? |
I'm not sure of what you mean by the top here? Do you mean setting true in
Yes, I added clenup in new commits. It only really needs to remove the test user/group. |
I meant the list of params when requesting a jenkins build as in here https://daccs-jenkins.crim.ca/job/PAVICS-e2e-workflow-tests/job/magpie-func-tests/build. To increase awareness that there are additional tests available, I was proposing to move those 3 new jenkins param high up in that page, just below The order these params are in the |
@tlvu Oh ok, I see what you mean. Will do. |
Also there has been a massive documentation restructure on birdhouse-deploy repo (PR bird-house/birdhouse-deploy#118) so expect merge conflict with your merge with |
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.
Branches not up-to-date with master
for both repos. Some other Jenkins failure not related to lax mode so real failure and need to be addressed. Might need to update catalog_search.ipynb
as well.
By the way, is the host tested by Jenkins https://host-140-88.rdext.crim.ca from bird-house/birdhouse-deploy#102? The Magpie/Twitcher combo is still Are you trying to test this PR bird-house/birdhouse-deploy#107 or bird-house/birdhouse-deploy#114? |
Using bird-house/birdhouse-deploy#107 with Magpie/Twitcher 3.5.1 |
@huard
|
Ok. Could you send me a code snippet to authenticate ? I'll update the notebook once the new magpie auth system is deployed. |
@huard
|
…o check result, avoid mismatch user ids and hostnames
Update: @huard @tlvu |
No need to invest time in catalog_search. I'm ok with deprecating it and removing it entirely from our NBs. |
Superb ! So if we disable |
@tlvu Exactly. |
+1 waiting for that passing build ! |
It was agreed the default value was supposed to be `false` in comment #55 (comment) Another reason to keep this option to `false` by default, is this entire Jenkins test suite also runs nightly on production instances so the admin password on production instances will never be the default value, for security reason, so this new notebook activated by `TEST_MAGPIE_AUTH` will never pass.
Trying out a new tool "ReviewNB". Use "Reply via ReviewNB" for a much better display of the notebook cells the comment was meant for. |
All changes applied in #67 |
Why in this commit d1fe816 that is only supposed to move the new options up, changed the default value of
@tlvu Sorry I misinterpreted |
…-disabled-by-default jenkins: set TEST_MAGPIE_AUTH default value to false It was agreed the default value was supposed to be `false` in comment #55 (comment). Another reason to keep this option to `false` by default, is this entire Jenkins test suite also runs nightly on production instances so the admin password on production instances will never be the default value, for security reason, so this new notebook activated by `TEST_MAGPIE_AUTH` will never pass.
notebooks-auth
requires: