Registering configs before config-changed hook
This commit is contained in:
		@@ -48,7 +48,7 @@ def install():
 | 
			
		||||
        apt_install(pkg, options=['--force-yes'], fatal=True)
 | 
			
		||||
    load_iovisor()
 | 
			
		||||
    ensure_mtu()
 | 
			
		||||
    add_lcm_key()
 | 
			
		||||
    CONFIGS.write_all()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@hooks.hook('director-relation-joined')
 | 
			
		||||
 
 | 
			
		||||
@@ -57,7 +57,6 @@ class PGDirHooksTests(CharmTestCase):
 | 
			
		||||
        ])
 | 
			
		||||
        self.load_iovisor.assert_called_with()
 | 
			
		||||
        self.ensure_mtu.assert_called_with()
 | 
			
		||||
        self.add_lcm_key.assert_called_with()
 | 
			
		||||
 | 
			
		||||
    def test_config_changed_hook(self):
 | 
			
		||||
        self.add_lcm_key.return_value = 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user