Reduce & update user fixture data for tests
parent
1ce63b15f6
commit
eda5d949bc
|
@ -13,161 +13,119 @@ let state
|
|||
|
||||
const users = [
|
||||
{
|
||||
id: 666,
|
||||
id: '666',
|
||||
name: 'bob@billietta.com',
|
||||
provider: 'GitHub',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Green Team', organizationID: 1234, name: ADMIN_ROLE},
|
||||
{organizationName: 'Blue Team', organizationID: 1235, name: EDITOR_ROLE},
|
||||
{
|
||||
name: 'admin',
|
||||
organization: '0',
|
||||
},
|
||||
{
|
||||
name: 'member',
|
||||
organization: '667',
|
||||
},
|
||||
],
|
||||
provider: 'github',
|
||||
scheme: 'oauth2',
|
||||
superAdmin: true,
|
||||
links: {
|
||||
self: '/chronograf/v1/users/666',
|
||||
},
|
||||
organizations: [
|
||||
{
|
||||
id: '0',
|
||||
name: 'Default',
|
||||
},
|
||||
{
|
||||
id: '667',
|
||||
name: 'Engineering',
|
||||
defaultRole: 'member',
|
||||
},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/666'},
|
||||
},
|
||||
{
|
||||
id: 667,
|
||||
id: '831',
|
||||
name: 'billybob@gmail.com',
|
||||
provider: 'Auth0',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Green Team', organizationID: 1234, name: VIEWER_ROLE},
|
||||
{organizationName: 'Red Team', organizationID: 1236, name: EDITOR_ROLE},
|
||||
{
|
||||
name: 'member',
|
||||
organization: '0',
|
||||
},
|
||||
{
|
||||
name: 'viewer',
|
||||
organization: '667',
|
||||
},
|
||||
{
|
||||
name: 'editor',
|
||||
organization: '1236',
|
||||
},
|
||||
],
|
||||
provider: 'github',
|
||||
scheme: 'oauth2',
|
||||
superAdmin: false,
|
||||
links: {
|
||||
self: '/chronograf/v1/users/831',
|
||||
},
|
||||
organizations: [
|
||||
{
|
||||
id: '0',
|
||||
name: 'Default',
|
||||
},
|
||||
{
|
||||
id: '667',
|
||||
name: 'Engineering',
|
||||
defaultRole: 'member',
|
||||
},
|
||||
{
|
||||
id: '1236',
|
||||
name: 'PsyOps',
|
||||
defaultRole: 'editor',
|
||||
},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/667'},
|
||||
},
|
||||
{
|
||||
id: 720,
|
||||
id: '720',
|
||||
name: 'shorty@gmail.com',
|
||||
provider: 'Heroku',
|
||||
scheme: 'LDAP',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Green Team', organizationID: 1234, name: EDITOR_ROLE},
|
||||
{
|
||||
name: 'admin',
|
||||
organization: '667',
|
||||
},
|
||||
{
|
||||
name: 'viewer',
|
||||
organization: '1236',
|
||||
},
|
||||
],
|
||||
provider: 'github',
|
||||
scheme: 'oauth2',
|
||||
superAdmin: false,
|
||||
links: {
|
||||
self: '/chronograf/v1/users/720',
|
||||
},
|
||||
organizations: [
|
||||
{
|
||||
id: '667',
|
||||
name: 'Engineering',
|
||||
defaultRole: 'member',
|
||||
},
|
||||
{
|
||||
id: '1236',
|
||||
name: 'PsyOps',
|
||||
defaultRole: 'editor',
|
||||
},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/720'},
|
||||
},
|
||||
{
|
||||
id: 271,
|
||||
name: 'shawn.ofthe.dead@gmail.com',
|
||||
provider: 'GitHub',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Blue Team', organizationID: 1235, name: EDITOR_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/271'},
|
||||
},
|
||||
{
|
||||
id: 6389,
|
||||
name: 'swogglez@gmail.com',
|
||||
provider: 'Heroku',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Red Team', organizationID: 1236, name: VIEWER_ROLE},
|
||||
{organizationName: 'Blue Team', organizationID: 1235, name: VIEWER_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/6389'},
|
||||
},
|
||||
{
|
||||
id: 99181,
|
||||
name: 'whiskey.elbow@gmail.com',
|
||||
provider: 'GitHub',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Green Team', organizationID: 1234, name: VIEWER_ROLE},
|
||||
{organizationName: 'Blue Team', organizationID: 1235, name: VIEWER_ROLE},
|
||||
{organizationName: 'Red Team', organizationID: 1236, name: VIEWER_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/99181'},
|
||||
},
|
||||
{
|
||||
id: 3786,
|
||||
name: 'bob.builder@gmail.com',
|
||||
provider: 'Generic',
|
||||
scheme: 'LDAP',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Red Team', organizationID: 1236, name: EDITOR_ROLE},
|
||||
],
|
||||
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: MEMBER_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: MEMBER_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/23'},
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
name: 'disembodied@gmail.com',
|
||||
provider: 'Auth0',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/7'},
|
||||
},
|
||||
{
|
||||
id: 0,
|
||||
name: 'bob.builder@gmail.com',
|
||||
provider: 'Heroku',
|
||||
scheme: 'LDAP',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Red Team', organizationID: 1236, name: EDITOR_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/0'},
|
||||
},
|
||||
{
|
||||
id: 2891,
|
||||
name: 'swag.bandit@gmail.com',
|
||||
provider: 'Google',
|
||||
scheme: 'OAuth2',
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Blue Team', organizationID: 1234, name: ADMIN_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/2891'},
|
||||
},
|
||||
{
|
||||
id: 2645,
|
||||
name: 'lord.ofthe.dance@gmail.com',
|
||||
provider: 'GitHub',
|
||||
scheme: 'OAuth2',
|
||||
superadmin: true,
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/2645'},
|
||||
},
|
||||
{
|
||||
id: 47119,
|
||||
name: 'ohnooeezzz@gmail.com',
|
||||
provider: 'Google',
|
||||
scheme: 'OAuth2',
|
||||
superadmin: true,
|
||||
roles: [
|
||||
{organizationName: 'All Users', organizationID: 666, name: MEMBER_ROLE},
|
||||
{organizationName: 'Blue Team', organizationID: 1234, name: MEMBER_ROLE},
|
||||
],
|
||||
links: {self: '/chronograf/v1/users/47119'},
|
||||
id: '271',
|
||||
name: 'shawn.ofthe.dead@altavista.yop',
|
||||
roles: [],
|
||||
provider: 'github',
|
||||
scheme: 'oauth2',
|
||||
superAdmin: false,
|
||||
links: {
|
||||
self: '/chronograf/v1/users/271',
|
||||
},
|
||||
organizations: [],
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue