~celebdor/charms/trusty/neutron-agents-midonet/trunk

« back to all changes in this revision

Viewing changes to unit_tests/test_templates.py

  • Committer: James Page
  • Date: 2016-02-04 11:42:36 UTC
  • Revision ID: james.page@ubuntu.com-20160204114236-btikuqecvdku2v2a
Initial changes to use local nova-api-metadata service with neutron-metadata-agent

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                'quantum_host': self.nova[13],
68
68
                'quantum_port': self.nova[14],
69
69
                'private-address': self.nova[15]}],
70
 
            'config': {
 
70
            'config': {},
 
71
            'unit': {
71
72
                'shared_secret': '',
72
73
            }
73
74
        }
102
103
            self.assertEqual(config.get('DEFAULT', 'admin_password'),
103
104
                             self.nova[6]),
104
105
            self.assertEqual(config.get('DEFAULT', 'nova_metadata_ip'),
105
 
                             self.nova[15]),
 
106
                             '127.0.0.1')
106
107
            self.assertEqual(config.get('DEFAULT',
107
108
                                        'metadata_proxy_shared_secret'),
108
 
                             self.context['config']['shared_secret']),
 
109
                             self.context['unit']['shared_secret']),
109
110
        finally:
110
111
            if os.path.exists(temp_path):
111
112
                os.remove(temp_path)