summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Patterson <cpatterson@microsoft.com>2022-01-11 17:55:42 -0500
committerGitHub <noreply@github.com>2022-01-11 16:55:42 -0600
commit42b938e8ff4c50833ff7b8f5acc1d9ab3f43ab18 (patch)
tree3beec8d8061f2cf86ac78f93be4abb5dd7656a23 /tests
parentdc1aabfca851e520693c05322f724bd102c76364 (diff)
downloadvyos-cloud-init-42b938e8ff4c50833ff7b8f5acc1d9ab3f43ab18.tar.gz
vyos-cloud-init-42b938e8ff4c50833ff7b8f5acc1d9ab3f43ab18.zip
sources/azure: rename metadata_type -> MetadataType (#1181)
Format tweak to match naming conventions for classes & enums. No functional changes. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/sources/test_azure.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unittests/sources/test_azure.py b/tests/unittests/sources/test_azure.py
index 44c0a545..ff7f6479 100644
--- a/tests/unittests/sources/test_azure.py
+++ b/tests/unittests/sources/test_azure.py
@@ -500,7 +500,7 @@ class TestGetMetadataFromIMDS(HttprettyTestCase):
)
dsaz.get_metadata_from_imds(
- "eth0", retries=3, md_type=dsaz.metadata_type.all
+ "eth0", retries=3, md_type=dsaz.MetadataType.ALL
)
m_readurl.assert_called_with(
"http://169.254.169.254/metadata/instance?api-version=2019-06-01",
@@ -525,7 +525,7 @@ class TestGetMetadataFromIMDS(HttprettyTestCase):
)
dsaz.get_metadata_from_imds(
- "eth0", retries=3, md_type=dsaz.metadata_type.network
+ "eth0", retries=3, md_type=dsaz.MetadataType.NETWORK
)
m_readurl.assert_called_with(
"http://169.254.169.254/metadata/instance/network?api-version="
@@ -576,7 +576,7 @@ class TestGetMetadataFromIMDS(HttprettyTestCase):
dsaz.get_metadata_from_imds(
"eth0",
retries=3,
- md_type=dsaz.metadata_type.all,
+ md_type=dsaz.MetadataType.ALL,
api_version="2021-08-01",
)
m_readurl.assert_called_with(
@@ -2154,14 +2154,14 @@ scbus-1 on xpt0 bus 0
mock.call(
fallback_nic="eth9",
retries=0,
- md_type=dsaz.metadata_type.all,
+ md_type=dsaz.MetadataType.ALL,
api_version="2021-08-01",
exc_cb=mock.ANY,
),
mock.call(
fallback_nic="eth9",
retries=10,
- md_type=dsaz.metadata_type.all,
+ md_type=dsaz.MetadataType.ALL,
api_version="2019-06-01",
exc_cb=mock.ANY,
infinite=False,
@@ -2186,7 +2186,7 @@ scbus-1 on xpt0 bus 0
mock.call(
fallback_nic="eth9",
retries=0,
- md_type=dsaz.metadata_type.all,
+ md_type=dsaz.MetadataType.ALL,
api_version="2021-08-01",
exc_cb=mock.ANY,
)