-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to run with gateway (when CYPRESS_HUB_GATEWAY=true) (#5136)
* Update tests to run with gateway (when CYPRESS_HUB_GATEWAY=true) User Access > Users no create, no edit, no delete User Access > Groups no create, no delete no add/remove users yes add/remove roles User Access > Roles yes add/edit/delete No-Issue * add feature flag tests * prettier * increase defaltCommandTimeout, remove some custom timeouts * handle no source.parameter in namespace modal * more tests as only standalone - where creating users * community ci: disable signatures * ignore text in modal
- Loading branch information
Showing
24 changed files
with
229 additions
and
179 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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,21 @@ | ||
const apiPrefix = Cypress.env('apiPrefix'); | ||
|
||
describe('Feature flags', () => { | ||
it('match expectations', () => { | ||
cy.request(`${apiPrefix}_ui/v1/feature-flags/`).then(({ body }) => { | ||
expect(body._messages).to.be.empty; | ||
expect(body).to.include({ ai_deny_index: false }); | ||
expect(body).to.include({ can_create_signatures: true }); | ||
expect(body).to.include({ can_upload_signatures: false }); | ||
expect(body).to.include({ collection_auto_sign: true }); | ||
expect(body).to.include({ collection_signing: true }); | ||
expect(body).to.include({ container_signing: true }); | ||
expect(body).to.include({ display_repositories: true }); | ||
expect(body).to.include({ display_signatures: true }); | ||
expect(body).to.include({ execution_environments: true }); | ||
expect(body).to.include({ legacy_roles: false }); | ||
expect(body).to.include({ require_upload_signatures: false }); | ||
expect(body).to.include({ signatures_enabled: true }); | ||
}); | ||
}); | ||
}); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,10 @@ | ||
PULP_GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_ACCESS='true' | ||
PULP_GALAXY_ENABLE_UNAUTHENTICATED_COLLECTION_DOWNLOAD='true' | ||
PULP_GALAXY_REQUIRE_CONTENT_APPROVAL='false' | ||
PULP_GALAXY_FEATURE_FLAGS__ai_deny_index='true' | ||
PULP_GALAXY_FEATURE_FLAGS__collection_signing='false' | ||
PULP_GALAXY_FEATURE_FLAGS__container_signing='false' | ||
PULP_GALAXY_FEATURE_FLAGS__display_repositories='false' | ||
PULP_GALAXY_FEATURE_FLAGS__execution_environments='false' | ||
PULP_GALAXY_FEATURE_FLAGS__legacy_roles='true' | ||
PULP_GALAXY_FEATURE_FLAGS__signatures_enabled='false' | ||
PULP_GALAXY_REQUIRE_CONTENT_APPROVAL='false' |
This file contains 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,22 @@ | ||
const apiPrefix = Cypress.env('apiPrefix'); | ||
|
||
describe('Feature flags', () => { | ||
it('match expectations', () => { | ||
cy.request(`${apiPrefix}_ui/v1/feature-flags/`).then(({ body }) => { | ||
expect(body._messages).to.be.empty; | ||
expect(body).to.include({ ai_deny_index: true }); | ||
expect(body).to.include({ can_create_signatures: false }); | ||
expect(body).to.include({ can_upload_signatures: false }); | ||
expect(body).to.include({ collection_auto_sign: false }); | ||
expect(body).to.include({ collection_signing: false }); | ||
expect(body).to.include({ container_signing: false }); | ||
expect(body).to.include({ display_repositories: false }); | ||
expect(body).to.include({ display_signatures: false }); | ||
expect(body).to.include({ execution_environments: false }); | ||
expect(body).to.include({ external_authentication: true }); | ||
expect(body).to.include({ legacy_roles: true }); | ||
expect(body).to.include({ require_upload_signatures: false }); | ||
expect(body).to.include({ signatures_enabled: false }); | ||
}); | ||
}); | ||
}); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.