Add ID, Links, all Providers, & capitalize OAuth2 in dummy User data

pull/10616/head
Jared Scheib 2017-11-01 00:02:19 -07:00
parent bd299f121e
commit aee3c9643d
1 changed files with 42 additions and 14 deletions

View File

@ -2,26 +2,31 @@ export const NO_ROLE = 'No Role'
export const DUMMY_USERS = [ export const DUMMY_USERS = [
{ {
name: 'thealexpaxton@gmail.com', id: 666,
name: 'bob@billietta.com',
provider: 'GitHub', provider: 'GitHub',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Green Team', organizationID: 1234, name: 'admin'}, {organizationName: 'Green Team', organizationID: 1234, name: 'admin'},
{organizationName: 'Blue Team', organizationID: 1235, name: 'editor'}, {organizationName: 'Blue Team', organizationID: 1235, name: 'editor'},
], ],
links: {self: '/chronograf/v1/users/666'},
}, },
{ {
id: 667,
name: 'billybob@gmail.com', name: 'billybob@gmail.com',
provider: 'GitHub', provider: 'Auth0',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Green Team', organizationID: 1234, name: 'viewer'}, {organizationName: 'Green Team', organizationID: 1234, name: 'viewer'},
{organizationName: 'Red Team', organizationID: 1236, name: 'editor'}, {organizationName: 'Red Team', organizationID: 1236, name: 'editor'},
], ],
links: {self: '/chronograf/v1/users/667'},
}, },
{ {
id: 720,
name: 'shorty@gmail.com', name: 'shorty@gmail.com',
provider: 'Heroku', provider: 'Heroku',
scheme: 'LDAP', scheme: 'LDAP',
@ -29,38 +34,46 @@ export const DUMMY_USERS = [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Green Team', organizationID: 1234, name: 'editor'}, {organizationName: 'Green Team', organizationID: 1234, name: 'editor'},
], ],
links: {self: '/chronograf/v1/users/720'},
}, },
{ {
id: 271,
name: 'shawn.ofthe.dead@gmail.com', name: 'shawn.ofthe.dead@gmail.com',
provider: 'GitHub', provider: 'GitHub',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Blue Team', organizationID: 1235, name: 'editor'}, {organizationName: 'Blue Team', organizationID: 1235, name: 'editor'},
], ],
links: {self: '/chronograf/v1/users/271'},
}, },
{ {
id: 6389,
name: 'swogglez@gmail.com', name: 'swogglez@gmail.com',
provider: 'Heroku', provider: 'Heroku',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Red Team', organizationID: 1236, name: 'viewer'}, {organizationName: 'Red Team', organizationID: 1236, name: 'viewer'},
{organizationName: 'Blue Team', organizationID: 1235, name: 'viewer'}, {organizationName: 'Blue Team', organizationID: 1235, name: 'viewer'},
], ],
links: {self: '/chronograf/v1/users/6389'},
}, },
{ {
id: 99181,
name: 'whiskey.elbow@gmail.com', name: 'whiskey.elbow@gmail.com',
provider: 'GitHub', provider: 'GitHub',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Green Team', organizationID: 1234, name: 'viewer'}, {organizationName: 'Green Team', organizationID: 1234, name: 'viewer'},
{organizationName: 'Blue Team', organizationID: 1235, name: 'viewer'}, {organizationName: 'Blue Team', organizationID: 1235, name: 'viewer'},
{organizationName: 'Red Team', organizationID: 1236, name: 'viewer'}, {organizationName: 'Red Team', organizationID: 1236, name: 'viewer'},
], ],
links: {self: '/chronograf/v1/users/99181'},
}, },
{ {
id: 3786,
name: 'bob.builder@gmail.com', name: 'bob.builder@gmail.com',
provider: 'Generic', provider: 'Generic',
scheme: 'LDAP', scheme: 'LDAP',
@ -68,32 +81,40 @@ export const DUMMY_USERS = [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Red Team', organizationID: 1236, name: 'editor'}, {organizationName: 'Red Team', organizationID: 1236, name: 'editor'},
], ],
links: {self: '/chronograf/v1/users/3786'},
}, },
{ {
id: 112345,
name: 'lost.in.translation@gmail.com', name: 'lost.in.translation@gmail.com',
provider: 'Generic', provider: 'Generic',
scheme: 'LDAP', scheme: 'LDAP',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
], ],
links: {self: '/chronograf/v1/users/112345'},
}, },
{ {
id: 23,
name: 'wandering.soul@gmail.com', name: 'wandering.soul@gmail.com',
provider: 'Heroku', provider: 'Heroku',
scheme: 'LDAP', scheme: 'LDAP',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
], ],
links: {self: '/chronograf/v1/users/23'},
}, },
{ {
id: 7,
name: 'disembodied@gmail.com', name: 'disembodied@gmail.com',
provider: 'GitHub', provider: 'Auth0',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
], ],
links: {self: '/chronograf/v1/users/7'},
}, },
{ {
id: 0,
name: 'bob.builder@gmail.com', name: 'bob.builder@gmail.com',
provider: 'Heroku', provider: 'Heroku',
scheme: 'LDAP', scheme: 'LDAP',
@ -101,34 +122,41 @@ export const DUMMY_USERS = [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Red Team', organizationID: 1236, name: 'editor'}, {organizationName: 'Red Team', organizationID: 1236, name: 'editor'},
], ],
links: {self: '/chronograf/v1/users/0'},
}, },
{ {
id: 2891,
name: 'swag.bandit@gmail.com', name: 'swag.bandit@gmail.com',
provider: 'GitHub', provider: 'Google',
scheme: 'oAuth2', scheme: 'OAuth2',
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Blue Team', organizationID: 1234, name: 'admin'}, {organizationName: 'Blue Team', organizationID: 1234, name: 'admin'},
], ],
links: {self: '/chronograf/v1/users/2891'},
}, },
{ {
id: 2645,
name: 'lord.ofthe.dance@gmail.com', name: 'lord.ofthe.dance@gmail.com',
provider: 'GitHub', provider: 'GitHub',
scheme: 'oAuth2', scheme: 'OAuth2',
superadmin: true, superadmin: true,
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
], ],
links: {self: '/chronograf/v1/users/2645'},
}, },
{ {
id: 47119,
name: 'ohnooeezzz@gmail.com', name: 'ohnooeezzz@gmail.com',
provider: 'GitHub', provider: 'Google',
scheme: 'oAuth2', scheme: 'OAuth2',
superadmin: true, superadmin: true,
roles: [ roles: [
{organizationName: 'All Users', organizationID: 666, name: NO_ROLE}, {organizationName: 'All Users', organizationID: 666, name: NO_ROLE},
{organizationName: 'Blue Team', organizationID: 1234, name: NO_ROLE}, {organizationName: 'Blue Team', organizationID: 1234, name: NO_ROLE},
], ],
links: {self: '/chronograf/v1/users/47119'},
}, },
] ]