def setUpClass(cls): super(TestHcfQuotas, cls).setUpClass() # Connect to the cluster URI target hcf_auth.connect_target(cls.cluster_url, optional_args={'--skip-ssl-validation': ' '}) # Loginto Cluster using creds hcf_auth.login(optional_args={'-u': cls.username, '-p': cls.password})
def setUpClass(cls): super(TestHcfSecurityGroups, cls).setUpClass() # Connect to the cluster URI target hcf_auth.connect_target(cls.cluster_url, optional_args={'--skip-ssl-validation': ' '}) # Loginto Cluster using creds hcf_auth.login(optional_args={'-u': cls.username, '-p': cls.password}) # Create Organisation cls.org_name = 'org_test' + str(random.randint(1024, 4096)) out, err = hcf_organisations.create_org(cls.org_name) # Create Space out, err = hcf_auth.target(optional_args={'-o': cls.org_name}) cls.space_name = 'space_test' + str(random.randint(1024, 4096)) out, err = hcf_space.create_space(cls.space_name)
def setUpClass(cls): super(TestHcfMarketplace, cls).setUpClass() # Connect to the cluster URI target hcf_auth.connect_target(cls.cluster_url, optional_args={'--skip-ssl-validation': ' '}) # Log into Cluster using creds hcf_auth.login(optional_args={'-u': cls.username, '-p': cls.password}) # Create organisation cls.setup_org = 'og_test_org' + str(random.randint(1024, 4096)) out, err = hcf_organisations.create_org(cls.setup_org) out, err = hcf_auth.target(optional_args={'-o': cls.setup_org}) # Create Space cls.setup_space = 'sp_test_space' + str(random.randint(1024, 4096)) out, err = hcf_space.create_space(cls.setup_space) out, err = hcf_auth.target(optional_args={'-o': cls.setup_org, '-s': cls.setup_space})
def setUpClass(cls): super(TestHcfApps, cls).setUpClass() # Connect to the cluster URI target hcf_auth.connect_target(cls.cluster_url, optional_args={'--skip-ssl-validation': ' '}) # Loginto Cluster using creds hcf_auth.login(optional_args={'-u': cls.username, '-p': cls.password}) # Create Organisation cls.org_name = 'og_test_org' + str(random.randint(1024, 4096)) out, err = hcf_organisations.create_org(cls.org_name) # Create Space out, err = hcf_auth.target(optional_args={'-o': cls.org_name}) cls.space_name = 'sp_test_space' + str(random.randint(1024, 4096)) out, err = hcf_space.create_space(cls.space_name) parsed = urlparse(cls.app_url) link = parsed.path.split('/') cls.app_dir = link[len(link) - 1]
def setUpClass(cls): super(TestHcfUsers, cls).setUpClass() # Connect to the cluster URI target hcf_auth.connect_target(cls.cluster_url, optional_args={'--skip-ssl-validation': ' '})