Class RoleMaintainerMock

java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.user.RoleMaintainerMock
All Implemented Interfaces:
RoleMaintainer

public class RoleMaintainerMock extends Object implements RoleMaintainer
Author:
olaa
  • Constructor Details

    • RoleMaintainerMock

      public RoleMaintainerMock()
  • Method Details

    • deleteLeftoverRoles

      public void deleteLeftoverRoles(List<Tenant> tenants, List<com.yahoo.config.provision.ApplicationId> applications)
      Description copied from interface: RoleMaintainer
      Given the set of all existing tenants and applications, delete any superflous roles
      Specified by:
      deleteLeftoverRoles in interface RoleMaintainer
    • tenantsToDelete

      public List<Tenant> tenantsToDelete(List<Tenant> tenants)
      Description copied from interface: RoleMaintainer
      Finds the subset of tenants that should be deleted based on role/domain existence
      Specified by:
      tenantsToDelete in interface RoleMaintainer
    • mockTenantToDelete

      public void mockTenantToDelete(Tenant tenant)