[ARVADOS-WORKBENCH2] updated: 1.4.1-418-g68139213

Git user git at public.arvados.org
Tue Sep 1 13:42:01 UTC 2020


Summary of changes:
 cypress/integration/login.spec.js | 19 +++++++++++++++++++
 docker/Dockerfile                 |  2 +-
 2 files changed, 20 insertions(+), 1 deletion(-)

       via  68139213ebfa9eea7b38fa8236362d8acb7f1c5c (commit)
       via  9da811232b47b26dff20cdd076a5aa9812f3dbf0 (commit)
      from  202a49e579c8ba643f6bc7f2bcb55fcf57d12eb8 (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 68139213ebfa9eea7b38fa8236362d8acb7f1c5c
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Tue Sep 1 10:40:57 2020 -0300

    16680: Adds end-to-end test convering invalid token and auto log-out.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/cypress/integration/login.spec.js b/cypress/integration/login.spec.js
index c30124d8..d88c7a6c 100644
--- a/cypress/integration/login.spec.js
+++ b/cypress/integration/login.spec.js
@@ -78,6 +78,25 @@ describe('Login tests', function() {
             `${activeUser.user.first_name} ${activeUser.user.last_name}`);
     })
 
+    it('logs out when token no longer valid', function() {
+        // Log in
+        cy.visit(`/token/?api_token=${activeUser.token}`);
+        cy.url().should('contain', '/projects/');
+        cy.get('div#root').should('contain', 'Arvados Workbench (zzzzz)');
+        cy.get('div#root').should('not.contain', 'Your account is inactive');
+        // Invalidate own token.
+        const tokenUuid = activeUser.token.split('/')[1];
+        cy.doRequest('PUT', `/arvados/v1/api_client_authorizations/${tokenUuid}`, {
+            id: tokenUuid,
+            api_client_authorization: JSON.stringify({
+                api_token: `randomToken${Math.floor(Math.random() * Math.floor(999999))}`
+            })
+        }, null, activeUser.token, true);
+        // Should log the user out.
+        cy.get('[data-cy=breadcrumb-first]').click();
+        cy.get('div#root').should('contain', 'Please log in');
+    })
+
     it('logs in successfully with valid admin token', function() {
         cy.visit(`/token/?api_token=${adminUser.token}`);
         cy.url().should('contain', '/projects/');

commit 9da811232b47b26dff20cdd076a5aa9812f3dbf0
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Mon Aug 31 10:48:46 2020 -0300

    16680: Updates deprecated MAINTAINER use on Dockerfile.
    
    See: https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/docker/Dockerfile b/docker/Dockerfile
index e134dca0..f138e842 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -3,7 +3,7 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 FROM node:8-buster
-MAINTAINER MAINTAINER Arvados Package Maintainers <packaging at arvados.org>
+LABEL maintainer="Arvados Package Maintainers <packaging at arvados.org>"
 
 RUN echo deb http://deb.debian.org/debian buster-backports main >> /etc/apt/sources.list.d/backports.list
 RUN apt-get update && \

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list