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