Skip to content

Commit

Permalink
fix: netplan rendering integrations tests (#4795)
Browse files Browse the repository at this point in the history
Netplan tests are failing on KeyError: 'match' for expected;
this change initializes the key.
  • Loading branch information
catmsred authored Jan 23, 2024
1 parent bc2e24e commit b620c04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration_tests/test_networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def test_netplan_rendering(
},
}
expected = yaml.safe_load(EXPECTED_NET_CONFIG)
expected["network"]["ethernets"]["eth0"]["match"] = {}
expected["network"]["ethernets"]["eth0"]["match"]["macaddress"] = mac_addr
with session_cloud.launch(launch_kwargs=launch_kwargs) as client:
result = client.execute("cat /etc/netplan/50-cloud-init.yaml")
Expand Down

0 comments on commit b620c04

Please sign in to comment.