[ARVADOS-WORKBENCH2] updated: 1.3.0-226-g77c99a36
Git user
git at public.curoverse.com
Tue Dec 18 08:04:32 EST 2018
Summary of changes:
src/store/auth/auth-action.test.ts | 21 +++++++++++++++++++++
src/store/auth/auth-reducer.test.ts | 7 +++++--
2 files changed, 26 insertions(+), 2 deletions(-)
via 77c99a3667bbbf09734bede8f154ef86a60d823b (commit)
from c7e85a03f2726bd20bc10aeb9edb2cc826f16909 (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 77c99a3667bbbf09734bede8f154ef86a60d823b
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Tue Dec 18 14:04:09 2018 +0100
Fix passing auth reducer tests
No issue #
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --git a/src/store/auth/auth-action.test.ts b/src/store/auth/auth-action.test.ts
index d58c9159..e5775a49 100644
--- a/src/store/auth/auth-action.test.ts
+++ b/src/store/auth/auth-action.test.ts
@@ -56,6 +56,27 @@ describe('auth-actions', () => {
expect(store.getState().auth).toEqual({
apiToken: "token",
sshKeys: [],
+ sessions: [{
+ "active": true,
+ "baseUrl": undefined,
+ "clusterId": undefined,
+ "email": "test at test.com",
+ "loggedIn": true,
+ "remoteHost": undefined,
+ "status": 2,
+ "token": "token",
+ "username": "John Doe"
+ }, {
+ "active": false,
+ "baseUrl": "",
+ "clusterId": "xc59",
+ "email": "",
+ "loggedIn": false,
+ "remoteHost": "xc59.api.arvados.com",
+ "status": 0,
+ "token": "",
+ "username": ""
+ }],
user: {
email: "test at test.com",
firstName: "John",
diff --git a/src/store/auth/auth-reducer.test.ts b/src/store/auth/auth-reducer.test.ts
index eb7e0c0d..773f9f82 100644
--- a/src/store/auth/auth-reducer.test.ts
+++ b/src/store/auth/auth-reducer.test.ts
@@ -38,7 +38,8 @@ describe('auth-reducer', () => {
expect(state).toEqual({
apiToken: "token",
user,
- sshKeys: []
+ sshKeys: [],
+ sessions: []
});
});
@@ -49,7 +50,8 @@ describe('auth-reducer', () => {
expect(state).toEqual({
apiToken: "token",
user: undefined,
- sshKeys: []
+ sshKeys: [],
+ sessions: []
});
});
@@ -71,6 +73,7 @@ describe('auth-reducer', () => {
expect(state).toEqual({
apiToken: undefined,
sshKeys: [],
+ sessions: [],
user: {
email: "test at test.com",
firstName: "John",
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list