Commit 7fb20c53 authored by Boxiang Sun's avatar Boxiang Sun

add new test

parent 7f8cd116
......@@ -26,6 +26,7 @@
##############################################################################
import os
import requests
from slapos.recipe.librecipe import generateHashFromFiles
from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass
......@@ -54,6 +55,9 @@ class ServicesTestCase(PowerDNSTestCase):
with self.slap.instance_supervisor_rpc as supervisor:
process_names = [process['name']
for process in supervisor.getAllProcessInfo()]
import pdb;
pdb.set_trace()
a = 0
hash_files = [os.path.join(self.computer_partition_root_path, path)
for path in hash_files]
......@@ -63,3 +67,23 @@ class ServicesTestCase(PowerDNSTestCase):
expected_process_name = name.format(hash=h)
self.assertIn(expected_process_name, process_names)
def test_zone(self):
connection_parameter_dict = self.computer_partition\
.getConnectionParameterDict()
import pdb;
pdb.set_trace()
# (Pdb) p connection_parameter_dict
# {
# 'domain': 'None',
# 'monitor-setup-url': 'https://monitor.app.officejs.com/#page=settings_configurator&url=https://[2001:67c:1254:e:d3::dbcc]:8099/public/feeds',
# 'monitor-user': 'admin',
# 'monitor-url': 'https://[2001:67c:1254:e:d3::dbcc]:8099/public/feeds',
# 'slave-amount': '0',
# 'ns-record': 'ns1.domain.com',
# 'monitor-password': 'carsltyo'
# }
result = requests.get(connection_parameter_dict['url'], verify=False)
self.assertEqual(httplib.OK, result.status_code)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment