import { FtrProviderContext } from '../../../common/ftr_provider_context' ; import { createSpaces , createUsersAndRoles , deleteSpaces , deleteUsersAndRoles , } from '../../../common/lib/authentication' ; import { observabilityMinReadAlertsRead , observabilityMinReadAlertsReadSpacesAll , observabilityMinimalRead , observabilityMinimalReadSpacesAll , observabilityMinReadAlertsAll , observabilityMinReadAlertsAllSpacesAll , observabilityMinimalAll , observabilityMinimalAllSpacesAll , } from '../../../common/lib/authentication/roles' ; import { obsMinReadAlertsRead , obsMinReadAlertsReadSpacesAll , obsMinRead , obsMinReadSpacesAll , superUser , obsMinReadAlertsAll , obsMinReadAlertsAllSpacesAll , obsMinAll , obsMinAllSpacesAll , } from '../../../common/lib/authentication/users' ; export default ( { loadTestFile , getService } ) : void => { describe . skip ( 'rules security and spaces enabled: trial' , function ( ) { this . tags ( 'ciGroup5' ) ; before ( async ( ) => { await createSpaces ( getService ) ; await createUsersAndRoles ( getService , [ obsMinReadAlertsRead , obsMinReadAlertsReadSpacesAll , obsMinRead , obsMinReadSpacesAll , superUser , obsMinReadAlertsAll , obsMinReadAlertsAllSpacesAll , obsMinAll , obsMinAllSpacesAll , ] , [ observabilityMinReadAlertsRead , observabilityMinReadAlertsReadSpacesAll , observabilityMinimalRead , observabilityMinimalReadSpacesAll , observabilityMinReadAlertsAll , observabilityMinReadAlertsAllSpacesAll , observabilityMinimalAll , observabilityMinimalAllSpacesAll , ] ) ; } ) ; after ( async ( ) => { await deleteSpaces ( getService ) ; await deleteUsersAndRoles ( getService , [ obsMinReadAlertsRead , obsMinReadAlertsReadSpacesAll , obsMinRead , obsMinReadSpacesAll , superUser , obsMinReadAlertsAll , obsMinReadAlertsAllSpacesAll , obsMinAll , obsMinAllSpacesAll , ] , [ observabilityMinReadAlertsRead , observabilityMinReadAlertsReadSpacesAll , observabilityMinimalRead , observabilityMinimalReadSpacesAll , observabilityMinReadAlertsAll , observabilityMinReadAlertsAllSpacesAll , observabilityMinimalAll , observabilityMinimalAllSpacesAll , ] ) ; } ) ; loadTestFile ( require . resolve ( './get_alerts' ) ) ; loadTestFile ( require . resolve ( './update_alert' ) ) ; } ) ; } ;