[arvados] updated: 2.7.0-5315-g3cab0db617
git repository hosting
git at public.arvados.org
Tue Nov 7 18:57:56 UTC 2023
Summary of changes:
services/workbench2/cypress/integration/login.spec.js | 17 +++++------------
services/workbench2/tools/arvados_config.yml | 6 +++++-
2 files changed, 10 insertions(+), 13 deletions(-)
via 3cab0db61752abbe45590090993c3a56eac181ab (commit)
from b34c4b9234777d68b675aebf77680b8dd8708a6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3cab0db61752abbe45590090993c3a56eac181ab
Author: Tom Clegg <tom at curii.com>
Date: Tue Nov 7 13:57:08 2023 -0500
18874: Use test auth instead of adding real accounts on test host.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/services/workbench2/cypress/integration/login.spec.js b/services/workbench2/cypress/integration/login.spec.js
index 2c539e4902..056aaec124 100644
--- a/services/workbench2/cypress/integration/login.spec.js
+++ b/services/workbench2/cypress/integration/login.spec.js
@@ -27,17 +27,10 @@ describe('Login tests', function() {
.as('inactiveUser').then(function() {
inactiveUser = this.inactiveUser;
}
- );
- randomUser.username = `randomuser${Math.floor(Math.random() * 999999)}`;
- randomUser.password = {
- crypt: 'zpAReoZzPnwmQ',
- clear: 'topsecret',
- };
- cy.exec(`useradd ${randomUser.username} -p ${randomUser.password.crypt}`);
- })
-
- after(function() {
- cy.exec(`userdel ${randomUser.username}`);
+ );
+ // Username/password match Login.Test section of arvados_config.yml
+ randomUser.username = 'randomuser1234';
+ randomUser.password = 'topsecret';
})
beforeEach(function() {
@@ -135,7 +128,7 @@ describe('Login tests', function() {
it('successfully authenticates using the login form', function() {
cy.visit('/');
cy.get('#username').type(randomUser.username);
- cy.get('#password').type(randomUser.password.clear);
+ cy.get('#password').type(randomUser.password);
cy.get("button span:contains('Log in')").click();
cy.url().should('contain', '/projects/');
cy.get('div#root').should('contain', 'Arvados Workbench (zzzzz)');
diff --git a/services/workbench2/tools/arvados_config.yml b/services/workbench2/tools/arvados_config.yml
index 1ef77b86ce..ba41c51b63 100644
--- a/services/workbench2/tools/arvados_config.yml
+++ b/services/workbench2/tools/arvados_config.yml
@@ -18,8 +18,12 @@ Clusters:
original_owner_uuid: {Function: original_owner, Protected: true}
Login:
TrustPrivateNetworks: true
- PAM:
+ Test:
Enable: true
+ Users:
+ randomuser1234:
+ Email: randomuser1234 at example.invalid
+ Password: topsecret
StorageClasses:
default:
Default: true
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list