diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2022-01-18 14:17:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 13:17:56 -0600 |
commit | 032a7f219e9c70b1314d75da96cd380364c416be (patch) | |
tree | d61bc9c6e291b3bd0078cd1b8d7d1184d8091883 /tests/unittests/runs/test_simple_run.py | |
parent | 4ba6fd283674df1ef25300d91c6d2061910744be (diff) | |
download | vyos-cloud-init-032a7f219e9c70b1314d75da96cd380364c416be.tar.gz vyos-cloud-init-032a7f219e9c70b1314d75da96cd380364c416be.zip |
sources/azure: consolidate DHCP variants to EphemeralDHCPv4WithReporting (#1190)
- Update EphemeralDHCPv4WithReporting to subclass EphemeralDHCPv4 for
consistency (non-functional change).
- Replace all usage of EphemeralDHCPv4 with EphemeralDHCPv4WithReporting.
- Converging to one DHCP class exposed an issue with ExitStack patches
being mixed with decorators. Specifically, it appeared that tests
that did not enable azure.EphemeralDHCPv4WithReporting mocks had it
applied anyways from previous tests.
Presumably ExitStack was overwriting the actual value with the
mock provided by the decorator? For now, remove some mock patches
that trigger failures, but future work should move towards a
consistent approach to prevent undetected effects.
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'tests/unittests/runs/test_simple_run.py')
0 files changed, 0 insertions, 0 deletions