예제 #1
0
 def setUp(self):
     self.cfinfo = opsmgr.get_cfinfo()
     self.proxy = 'http://app1.' + self.cfinfo['apps_domain']
     self.env = self.getEnv(self.proxy)
     self.host = self.env.get('APP4_HOST')
     if self.host is not None:
         self.url = self.proxy + '/proxy?url=http://' + self.host + ':8080'
예제 #2
0
	def setUp(self):
		self.cfinfo = opsmgr.get_cfinfo()
		self.proxy = 'http://app1.' + self.cfinfo['apps_domain']
		self.env = self.getEnv(self.proxy)
		self.host = self.env.get('APP4_HOST')
		if self.host is not None:
			self.url = self.proxy + '/proxy?url=http://' + self.host + ':8080'
예제 #3
0
def get_cf_properties():
	cf = opsmgr.get_cfinfo()
	properties = {}
	properties['cf'] = {
		'admin_user': cf['system_services_username'],
		'admin_password': cf['system_services_password'],
	}
	properties['domain'] = cf['system_domain']
	properties['app_domains'] = [ cf['apps_domain'] ]
	properties['ssl'] = { 'skip_cert_verify': True }
	properties['security'] = {
		'user': '******',
		'password': ''.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(12))
	}
	return properties
예제 #4
0
def get_cf_properties():
	cf = opsmgr.get_cfinfo()
	properties = {}
	properties['cf'] = {
		'admin_user': cf['admin_username'],
		'admin_password': cf['admin_password'],
	}
	properties['domain'] = cf['system_domain']
	properties['app_domains'] = [ cf['apps_domain'] ]
	properties['ssl'] = { 'skip_cert_verify': True }
	properties['security'] = {
		'user': '******',
		'password': ''.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(12))
	}
	return properties
	def setUp(self):
		self.cfinfo = opsmgr.get_cfinfo()
		self.hostname = 'app2-hostname.' + self.cfinfo['apps_domain']
		self.url = 'http://' + self.hostname
예제 #6
0
 def setUp(self):
     self.cfinfo = opsmgr.get_cfinfo()
     self.hostname = 'app2-hostname.' + self.cfinfo['apps_domain']
     self.url = 'http://' + self.hostname