Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
0f7a43ef
Commit
0f7a43ef
authored
Nov 09, 2011
by
Michal 'vorner' Vaner
Browse files
[213] Reimplement the start_* tests
Which check it is started correctly on startup, not only on reconfiguration.
parent
9f854755
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bin/bind10/tests/bind10_test.py.in
View file @
0f7a43ef
...
...
@@ -487,6 +487,39 @@ class TestStartStopProcessesBob(unittest.TestCase):
'special': 'resolver' }
return {'components': config}
def config_start_init(self, start_auth, start_resolver):
"""
Test the configuration is loaded at the startup.
"""
bob = MockBob()
config = self.construct_config(start_auth, start_resolver)
class CC:
def get_full_config(self):
return config
# Provide the fake CC with data
bob.ccs = CC()
# And make sure it's not overwritten
def start_ccsession():
bob.ccsession = True
bob.start_ccsession = lambda _: start_ccsession()
# We need to return the original _read_bind10_config
bob._read_bind10_config = lambda: BoB._read_bind10_config(bob)
bob.start_all_processes()
self.check_started(bob, True, start_auth, start_resolver)
self.check_environment_unchanged()
def test_start_none(self):
self.config_start_init(False, False)
def test_start_resolver(self):
self.config_start_init(False, True)
def test_start_auth(self):
self.config_start_init(True, False)
def test_start_both(self):
self.config_start_init(True, True)
def test_config_start(self):
"""
Test that the configuration starts and stops processes according
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment