import { securitySolutionOnlyAll , observabilityOnlyAll , securitySolutionOnlyRead , observabilityOnlyRead , globalRead as globalReadRole , noKibanaPrivileges as noKibanaPrivilegesRole , securitySolutionOnlyAllSpacesAll , securitySolutionOnlyReadSpacesAll , observabilityOnlyAllSpacesAll , observabilityOnlyReadSpacesAll , observabilityMinReadAlertsAll , observabilityMinReadAlertsRead , observabilityMinReadAlertsReadSpacesAll , observabilityMinimalRead , observabilityMinimalReadSpacesAll , securitySolutionOnlyAllSpace2 , securitySolutionOnlyReadSpace2 , observabilityOnlyAllSpace2 , observabilityOnlyReadSpace2 , observabilityMinReadAlertsAllSpacesAll , } from './roles' ; import { User } from './types' ; export const superUser = { username : 'superuser' , password : 'superuser' , roles : [ 'superuser' ] , } ; export const secOnly = { username : 'sec_only_all_spaces_space1' , password : 'sec_only_all_spaces_space1' , roles : [ securitySolutionOnlyAll . name ] , } ; export const secOnlySpace2 = { username : 'sec_only_all_spaces_space2' , password : 'sec_only_all_spaces_space2' , roles : [ securitySolutionOnlyAllSpace2 . name ] , } ; export const secOnlyRead = { username : 'sec_only_read_spaces_space1' , password : 'sec_only_read_spaces_space1' , roles : [ securitySolutionOnlyRead . name ] , } ; export const secOnlyReadSpace2 = { username : 'sec_only_read_spaces_space2' , password : 'sec_only_read_spaces_space2' , roles : [ securitySolutionOnlyReadSpace2 . name ] , } ; export const obsOnly = { username : 'obs_only_all_spaces_space1' , password : 'obs_only_all_spaces_space1' , roles : [ observabilityOnlyAll . name ] , } ; export const obsOnlySpace2 = { username : 'obs_only_all_spaces_space2' , password : 'obs_only_all_spaces_space2' , roles : [ observabilityOnlyAllSpace2 . name ] , } ; export const obsOnlyRead = { username : 'obs_only_read_spaces_space1' , password : 'obs_only_read_spaces_space1' , roles : [ observabilityOnlyRead . name ] , } ; export const obsOnlyReadSpace2 = { username : 'obs_only_read_spaces_space2' , password : 'obs_only_read_spaces_space2' , roles : [ observabilityOnlyReadSpace2 . name ] , } ; export const obsSec = { username : 'sec_only_all_spaces_space1_and_obs_only_all_spaces_space1' , password : 'sec_only_all_spaces_space1_and_obs_only_all_spaces_space1' , roles : [ securitySolutionOnlyAll . name , observabilityOnlyAll . name ] , } ; export const obsSecAllSpace2 = { username : 'sec_only_all_spaces_space2_and_obs_only_all_spaces_space2' , password : 'sec_only_all_spaces_space2_and_obs_only_all_spaces_space2' , roles : [ securitySolutionOnlyAllSpace2 . name , observabilityOnlyAllSpace2 . name ] , } ; export const obsSecRead = { username : 'sec_only_read_spaces_space1_and_obs_only_read_spaces_space1' , password : 'sec_only_read_spaces_space1_and_obs_only_read_spaces_space1' , roles : [ securitySolutionOnlyRead . name , observabilityOnlyRead . name ] , } ; export const obsSecReadSpace2 = { username : 'sec_only_read_spaces_space2_and_obs_only_read_spaces_space2' , password : 'sec_only_read_spaces_space2_and_obs_only_read_spaces_space2' , roles : [ securitySolutionOnlyReadSpace2 . name , observabilityOnlyReadSpace2 . name ] , } ; export const globalRead = { username : 'global_read' , password : 'global_read' , roles : [ globalReadRole . name ] , } ; export const noKibanaPrivileges = { username : 'no_kibana_privileges' , password : 'no_kibana_privileges' , roles : [ noKibanaPrivilegesRole . name ] , } ; export const obsOnlyReadSpacesAll = { username : 'obs_only_read_all_spaces_all' , password : 'obs_only_read_all_spaces_all' , roles : [ observabilityOnlyReadSpacesAll . name ] , } ; export const users = [ superUser , secOnly , secOnlyRead , obsOnly , obsOnlyRead , obsSec , obsSecRead , globalRead , noKibanaPrivileges , obsOnlyReadSpacesAll , ] ; /**
 * These users will have access to all spaces.
 */ export const secOnlySpacesAll = { username : 'sec_only_all_spaces_all' , password : 'sec_only_all_spaces_all' , roles : [ securitySolutionOnlyAllSpacesAll . name ] , } ; export const secOnlyReadSpacesAll = { username : 'sec_only_read_spaces_all' , password : 'sec_only_read_spaces_all' , roles : [ securitySolutionOnlyReadSpacesAll . name ] , } ; export const obsOnlySpacesAll = { username : 'obs_only_all_spaces_all' , password : 'obs_only_all_spaces_all' , roles : [ observabilityOnlyAllSpacesAll . name ] , } ; export const obsSecSpacesAll = { username : 'sec_only_all_spaces_all_and_obs_only_all_spaces_all' , password : 'sec_only_all_spaces_all_and_obs_only_all_spaces_all' , roles : [ securitySolutionOnlyAllSpacesAll . name , observabilityOnlyAllSpacesAll . name ] , } ; export const obsSecReadSpacesAll = { username : 'sec_only_read_all_spaces_all_and_obs_only_read_all_spaces_all' , password : 'sec_only_read_all_spaces_all_and_obs_only_read_all_spaces_all' , roles : [ securitySolutionOnlyReadSpacesAll . name , observabilityOnlyReadSpacesAll . name ] , } ; /**
 * Trial users with trial roles
 */ export const obsMinReadAlertsRead = { username : 'obs_minimal_read_alerts_read_single_space' , password : 'obs_minimal_read_alerts_read_single_space' , roles : [ observabilityMinReadAlertsRead . name ] , } ; export const obsMinReadAlertsReadSpacesAll = { username : 'obs_minimal_read_alerts_read_all_spaces' , password : 'obs_minimal_read_alerts_read_all_spaces' , roles : [ observabilityMinReadAlertsReadSpacesAll . name ] , } ; export const obsMinRead = { username : 'obs_minimal_read_single_space' , password : 'obs_minimal_read_single_space' , roles : [ observabilityMinimalRead . name ] , } ; export const obsMinReadSpacesAll = { username : 'obs_minimal_read_all_space' , password : 'obs_minimal_read_all_space' , roles : [ observabilityMinimalReadSpacesAll . name ] , } ; export const obsMinReadAlertsAll = { username : 'obs_minimal_read_alerts_all_single_space' , password : 'obs_minimal_read_alerts_all_single_space' , roles : [ observabilityMinReadAlertsAll . name ] , } ; export const obsMinReadAlertsAllSpacesAll = { username : 'obs_minimal_read_alerts_all_all_spaces' , password : 'obs_minimal_read_alerts_all_all_spaces' , roles : [ observabilityMinReadAlertsAllSpacesAll . name ] , } ; export const obsMinAll = { username : 'obs_minimal_all_single_space' , password : 'obs_minimal_all_single_space' , roles : [ observabilityMinimalRead . name ] , } ; export const obsMinAllSpacesAll = { username : 'obs_minimal_all_all_space' , password : 'obs_minimal_read_all_space' , roles : [ observabilityMinimalReadSpacesAll . name ] , } ; export const trialUsers = [ obsMinReadAlertsRead , obsMinReadAlertsReadSpacesAll , obsMinRead , obsMinReadSpacesAll , obsMinReadAlertsAll , obsMinReadAlertsAllSpacesAll , obsMinAll , obsMinAllSpacesAll , ] ; export const allUsers = [ superUser , secOnly , secOnlyRead , obsOnly , obsOnlyRead , obsSec , obsSecRead , globalRead , noKibanaPrivileges , obsOnlyReadSpacesAll , secOnlySpacesAll , secOnlyReadSpacesAll , obsOnlySpacesAll , obsSecSpacesAll , obsSecReadSpacesAll , obsMinReadAlertsRead , obsMinReadAlertsReadSpacesAll , obsMinRead , obsMinReadSpacesAll , obsMinReadAlertsAll , obsMinReadAlertsAllSpacesAll , obsMinAll , obsMinAllSpacesAll , secOnlySpace2 , secOnlyReadSpace2 , obsOnlySpace2 , obsOnlyReadSpace2 , obsSecAllSpace2 , obsSecReadSpace2 , ] ;