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

« back to all changes in this revision

Viewing changes to unit_tests/test_templates.py

  • Committer: Antoni Segura Puimedon
  • Date: 2016-01-28 00:56:30 UTC
  • Revision ID: toni@midokura.com-20160128005630-z9ijncumfh90grxf
make amqp relation joined executable

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': {},
71
 
            'unit': {
 
70
            'config': {
72
71
                'shared_secret': '',
73
72
            }
74
73
        }
103
102
            self.assertEqual(config.get('DEFAULT', 'admin_password'),
104
103
                             self.nova[6]),
105
104
            self.assertEqual(config.get('DEFAULT', 'nova_metadata_ip'),
106
 
                             '127.0.0.1')
 
105
                             self.nova[15]),
107
106
            self.assertEqual(config.get('DEFAULT',
108
107
                                        'metadata_proxy_shared_secret'),
109
 
                             self.context['unit']['shared_secret']),
 
108
                             self.context['config']['shared_secret']),
110
109
        finally:
111
110
            if os.path.exists(temp_path):
112
111
                os.remove(temp_path)