def test_2_connected_topology_with_ca_kra(self): tasks.install_topo('double-circle', self.master, self.replicas, [], setup_replica_cas=True, setup_replica_kras=True) self.replication_is_working()
def test_star_topology_with_ca_kra(self): tasks.install_topo('star', self.master, self.replicas, [], setup_replica_cas=True, setup_replica_kras=True) self.replication_is_working()
def install(cls, mh): if cls.domain_level is not None: domain_level = cls.domain_level else: domain_level = cls.master.config.domain_level tasks.install_topo(cls.topology, cls.master, cls.replicas, cls.clients, domain_level, clients_extra_args=('--mkhomedir',)) cls.ad = cls.ads[0] cls.smbserver = cls.clients[0] cls.smbclient = cls.clients[1] cls.ad_user = '******'.format(cls.ad_user_login, cls.ad.domain.name) tasks.config_host_resolvconf_with_master_data(cls.master, cls.smbclient) tasks.install_adtrust(cls.master) tasks.configure_dns_for_trust(cls.master, cls.ad) tasks.configure_windows_dns_for_trust(cls.ad, cls.master) tasks.establish_trust_with_ad(cls.master, cls.ad.domain.name, extra_args=['--two-way=true']) tasks.create_active_user(cls.master, cls.ipa_user1, password=cls.ipa_user1_password) tasks.create_active_user(cls.master, cls.ipa_user2, password=cls.ipa_user2_password) # Trigger creation of home directories on the SMB server for user in [cls.ipa_user1, cls.ipa_user2, cls.ad_user]: tasks.run_command_as_user(cls.smbserver, user, ['stat', '.'])
def install(cls, mh): if cls.domain_level is not None: domain_level = cls.domain_level else: domain_level = cls.master.config.domain_level if cls.topology is None: return else: tasks.install_topo(cls.topology, cls.master, cls.replicas, cls.clients, domain_level)
def install(cls, mh): if cls.domain_level is not None: domain_level = cls.domain_level else: domain_level = cls.master.config.domain_level if cls.topology is None: return else: tasks.install_topo(cls.topology, cls.master, cls.replicas, cls.clients, domain_level)
def install(cls, mh): cls.replica1 = cls.replicas[0] cls.replica2 = cls.replicas[1] if cls.domain_level is None: domain_level = cls.master.config.domain_level else: domain_level = cls.domain_level # Configure only master and one replica. # Replica is configured without CA tasks.install_topo( cls.topology, cls.master, [cls.replica1], cls.clients, domain_level, setup_replica_cas=False )
def install(cls, mh): test_record = 'test1234' cls.client = cls.clients[0] cls.test_record = '{}.{}'.format(test_record, cls.master.domain.name) cls.test_record_address = '1.2.3.4' if cls.domain_level is not None: domain_level = cls.domain_level else: domain_level = cls.master.config.domain_level tasks.install_topo(cls.topology, cls.master, [], [], domain_level) tasks.kinit_admin(cls.master) cls.master.run_command([ 'ipa', 'dnsrecord-add', cls.master.domain.name, test_record, '--a-ip-address={}'.format(cls.test_record_address) ])
def install(cls, mh): if cls.domain_level is not None: domain_level = cls.domain_level else: domain_level = cls.master.config.domain_level if cls.master.config.fips_mode: cls.fips_mode = True if cls.fips_mode: cls.enable_fips_mode() if cls.topology is None: return else: tasks.install_topo(cls.topology, cls.master, cls.replicas, cls.clients, domain_level)
def install(cls, mh): cls.replica1 = cls.replicas[0] cls.replica2 = cls.replicas[1] if cls.domain_level is None: domain_level = cls.master.config.domain_level else: domain_level = cls.domain_level # Configure /etc/resolv.conf on each replica to use the master as DNS # Otherwise ipa-replica-manage re-initialize is unable to # resolve the master name tasks.config_host_resolvconf_with_master_data(cls.master, cls.replica1) tasks.config_host_resolvconf_with_master_data(cls.master, cls.replica2) # Configure only master and one replica. # Replica is configured without CA tasks.install_topo(cls.topology, cls.master, [cls.replica1], cls.clients, domain_level, setup_replica_cas=False)
def install(cls, mh): cls.replica1 = cls.replicas[0] cls.replica2 = cls.replicas[1] if cls.domain_level is None: domain_level = cls.master.config.domain_level else: domain_level = cls.domain_level # Configure /etc/resolv.conf on each replica to use the master as DNS # Otherwise ipa-replica-manage re-initialize is unable to # resolve the master name tasks.config_replica_resolvconf_with_master_data( cls.master, cls.replica1) tasks.config_replica_resolvconf_with_master_data( cls.master, cls.replica2) # Configure only master and one replica. # Replica is configured without CA tasks.install_topo( cls.topology, cls.master, [cls.replica1], cls.clients, domain_level, setup_replica_cas=False )
def install(cls, mh): tasks.install_topo(cls.topology, cls.master, cls.replicas[:-1], cls.clients)
def install(cls, mh): tasks.install_topo(cls.topology, cls.master, cls.replicas, [], domain_level=cls.domain_level, setup_replica_cas=False)
def test_complete_topology_without_ca(self): tasks.install_topo('complete', self.master, self.replicas, [], setup_replica_cas=False) self.replication_is_working()
def test_star_topology_with_ca_kra(self): tasks.install_topo('star', self.master, self.replicas, [], setup_replica_cas=True, setup_replica_kras=True) self.replication_is_working()
def test_line_topology_with_ca(self): tasks.install_topo('line', self.master, self.replicas, [], setup_replica_cas=True) self.replication_is_working()
def test_star_topology_without_ca(self): tasks.install_topo('star', self.master, self.replicas, [], setup_replica_cas=False) self.replication_is_working()
def test_2_connected_topology_with_ca(self): tasks.install_topo('2-connected', self.master, self.replicas, [], setup_replica_cas=True) self.replication_is_working()
def install(cls, mh): tasks.install_topo(cls.topology, cls.master, cls.replicas[:-1], cls.clients)
def test_2_connected_topology_with_ca(self): tasks.install_topo('2-connected', self.master, self.replicas, [], setup_replica_cas=True) self.replication_is_working()
def test_2_connected_topology_with_ca_kra(self): tasks.install_topo('double-circle', self.master, self.replicas, [], setup_replica_cas=True, setup_replica_kras=True) self.replication_is_working()
def install(cls, mh): tasks.install_topo( cls.topology, cls.master, cls.replicas, [], domain_level=cls.domain_level, setup_replica_cas=False)
def test_line_topology_with_ca(self): tasks.install_topo('line', self.master, self.replicas, [], setup_replica_cas=True) self.replication_is_working()