import makeUserContext from 'teleport/services/user/makeUserContext' ; import { Access , Acl } from 'teleport/services/user/types' ; const fullAccess = { list : true , read : true , edit : true , create : true , remove : true , } ; export const fullAcl = { sshLogins : [ 'dev' , 'root' ] , windowsLogins : [ 'Administrator' ] , tokens : fullAccess , appServers : fullAccess , kubeServers : fullAccess , sessions : fullAccess , authConnectors : fullAccess , roles : fullAccess , users : fullAccess , trustedClusters : fullAccess , events : fullAccess , accessRequests : fullAccess , billing : fullAccess , dbServers : fullAccess , desktops : fullAccess , } ; export const userContext = makeUserContext ( { authType : 'sso' , userName : 'Sam' , accessCapabilities : { suggestedReviewers : [ 'george_washington@gmail.com' , 'chad' ] , requestableRoles : [ 'dev-a' , 'dev-b' , 'dev-c' , 'dev-d' ] , } , userAcl : fullAcl , cluster : { name : 'aws' , lastConnected : '2020-09-26T17:30:23.512876876Z' , status : 'online' , nodeCount : 1 , publicURL : 'localhost' , authVersion : '4.4.0-dev' , proxyVersion : '4.4.0-dev' , } , } ) ;