-
Notifications
You must be signed in to change notification settings - Fork 75
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
Cypress: add view-only tests #1082
Conversation
070c13c
to
7467ad9
Compare
local dev setup:
with pulp-oci-images:
I think this may be a gunicorn vs nginx difference in handling the double => ansible/galaxykit#14 .. released in galaxykit 0.5.2 |
e1b3c5c
to
ccdac03
Compare
Related to ansible/ansible-hub-ui#1082 (comment) {galaxy_root}/content yields a string with a double slash when used with a --server value with a trailing slash (the default) double slashes don't seem to work with pulp-oci-images (or nginx?), using urljoin as elsewhere
ccdac03
to
ba5fc13
Compare
d4c0cbc
to
00b0ac0
Compare
both describes need it
and wait for namespace detail title
…UIRE_CONTENT_APPROVAL) GALAXY_REQUIRE_CONTENT_APPROVAL=True is the default, and causes collections added by `galaxykit collection upload` to only appear in Approvals UI, where they need to be approved first before appearing (AAH-628 is open for approval tests)
eef815d
to
29db1a4
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.
LGTM 👍
Backport to stable-4.4: 💚 backport PR created✅ Backport PR branch: Backported as #1186 🤖 @patchback |
* view-only: simple test for view-only mode * view-only: add tests * view-only: galaxykit collection upload, to ensure there's a collection both describes need it * test/README: mention cypress.env.json.template, document `settings` and `restart` * view-only: actually go to namespace detail and wait for namespace detail title * github cypress settings.py: turn off collections approval (GALAXY_REQUIRE_CONTENT_APPROVAL) GALAXY_REQUIRE_CONTENT_APPROVAL=True is the default, and causes collections added by `galaxykit collection upload` to only appear in Approvals UI, where they need to be approved first before appearing (AAH-628 is open for approval tests) * test/README: also document `containers` in `cypress.env.json`, from #1142 (cherry picked from commit fb0a8d0)
* view-only: simple test for view-only mode * view-only: add tests * view-only: galaxykit collection upload, to ensure there's a collection both describes need it * test/README: mention cypress.env.json.template, document `settings` and `restart` * view-only: actually go to namespace detail and wait for namespace detail title * github cypress settings.py: turn off collections approval (GALAXY_REQUIRE_CONTENT_APPROVAL) GALAXY_REQUIRE_CONTENT_APPROVAL=True is the default, and causes collections added by `galaxykit collection upload` to only appear in Approvals UI, where they need to be approved first before appearing (AAH-628 is open for approval tests) * test/README: also document `containers` in `cypress.env.json`, from #1142 (cherry picked from commit fb0a8d0) Co-authored-by: Martin Hradil <mhradil@redhat.com>
Fixes AAH-997
A
cy.settings
Cypress command was added in #1116.(It also added
cypress.env.json.template
but didn't document it, fixing here.)Adding a test for view-only mode, using
cy.settings
to change the server settings for the duration.With
GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_ACCESS
&GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_DOWNLOAD
, test that Collections, Namespaces and Documentation are in the menu, we can see the list & detail screens, and no Add/Upload/Create buttons, as well as Unauthorized elsewhere.With just
GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_ACCESS
: check that collection detail screen has the alert instead of a download button.And changing the settings for github actions to
GALAXY_REQUIRE_CONTENT_APPROVAL=False
, so thatgalaxykit collection upload
doesn't require approvals everywhere (AAH-628 will deal with enabling it back for approval tests). This should unblock #1117 & #1137.❕ Note: when testing locally, most likely you first need to:
python -m pip install --user galaxykit --upgrade
settings
andrestart
to yourtest/cypress.env.json
(seetest/cypress.env.json.template
andtest/README.md
)