Skip to content

Commit

Permalink
Use zaza.model.get_unit_public_address()
Browse files Browse the repository at this point in the history
Replace the use of "unit.public_address" with
zaza.model.get_unit_public_address().

    AssertionError: {'host': '172.16.0.25', 'port': 3306, 'user': 'prom_exporter'} != {'host': None, 'port': 3306, 'user': 'prom_exporter'}
    - {'host': '172.16.0.25', 'port': 3306, 'user': 'prom_exporter'}
    ?          ^^^^^^^^^^^^^
    + {'host': None, 'port': 3306, 'user': 'prom_exporter'}

Related-Bug: openstack-charmers/zaza#472
  • Loading branch information
freyes committed Mar 22, 2023
1 parent ef62272 commit 6fec7c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_03_snap_config(self):
self.assertEqual(
json_mysql_config,
{
"host": unit.public_address,
"host": zaza_model.get_unit_public_address(unit),
"port": 3306,
"user": "prom_exporter"
}
Expand Down

0 comments on commit 6fec7c3

Please sign in to comment.