[ARVADOS-WORKBENCH2] updated: 1.3.1-366-g8f09b333
Git user
git at public.curoverse.com
Fri Feb 22 16:08:09 EST 2019
Summary of changes:
src/store/auth/auth-action.test.ts | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
via 8f09b3335729ba3c15c2c55c088b569cae56e6b4 (commit)
from d6c7e8411ec818d537453c5564c7fa15834cb0be (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 8f09b3335729ba3c15c2c55c088b569cae56e6b4
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Fri Feb 22 16:07:52 2019 -0500
14841: Fix tests and make some test values more realistic.
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/src/store/auth/auth-action.test.ts b/src/store/auth/auth-action.test.ts
index d5e03c69..db3211c4 100644
--- a/src/store/auth/auth-action.test.ts
+++ b/src/store/auth/auth-action.test.ts
@@ -41,14 +41,16 @@ describe('auth-actions', () => {
localStorage.setItem(USER_EMAIL_KEY, "test at test.com");
localStorage.setItem(USER_FIRST_NAME_KEY, "John");
localStorage.setItem(USER_LAST_NAME_KEY, "Doe");
- localStorage.setItem(USER_UUID_KEY, "uuid");
+ localStorage.setItem(USER_UUID_KEY, "zzzzz-tpzed-abcefg");
localStorage.setItem(USER_USERNAME, "username");
localStorage.setItem(USER_PREFS, JSON.stringify({}));
localStorage.setItem(USER_OWNER_UUID_KEY, "ownerUuid");
localStorage.setItem(USER_IS_ADMIN, JSON.stringify("false"));
const config: any = {
- remoteHosts: { "xc59": "xc59.api.arvados.com" }
+ rootUrl: "https://zzzzz.arvadosapi.com",
+ uuidPrefix: "zzzzz",
+ remoteHosts: { xc59z: "xc59z.arvadosapi.com" },
};
store.dispatch(initAuth(config));
@@ -56,28 +58,29 @@ describe('auth-actions', () => {
expect(store.getState().auth).toEqual({
apiToken: "token",
sshKeys: [],
- homeCluster: "uuid",
- localCluster: undefined,
+ homeCluster: "zzzzz",
+ localCluster: "zzzzz",
remoteHosts: {
- xc59: "xc59.api.arvados.com"
+ zzzzz: "zzzzz.arvadosapi.com",
+ xc59z: "xc59z.arvadosapi.com"
},
sessions: [{
"active": true,
"baseUrl": undefined,
- "clusterId": undefined,
+ "clusterId": "zzzzz",
"email": "test at test.com",
"loggedIn": true,
- "remoteHost": undefined,
+ "remoteHost": "https://zzzzz.arvadosapi.com",
"status": 2,
"token": "token",
"username": "John Doe"
}, {
"active": false,
"baseUrl": "",
- "clusterId": "xc59",
+ "clusterId": "xc59z",
"email": "",
"loggedIn": false,
- "remoteHost": "xc59.api.arvados.com",
+ "remoteHost": "xc59z.arvadosapi.com",
"status": 0,
"token": "",
"username": ""
@@ -86,7 +89,7 @@ describe('auth-actions', () => {
email: "test at test.com",
firstName: "John",
lastName: "Doe",
- uuid: "uuid",
+ uuid: "zzzzz-tpzed-abcefg",
ownerUuid: "ownerUuid",
username: "username",
prefs: {},
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list