summaryrefslogtreecommitdiff
path: root/cloudinit/sources/tests
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-08-14 11:37:33 -0400
committerGitHub <noreply@github.com>2020-08-14 11:37:33 -0400
commit2d3533b59c7bf00affbda9c2c94fb5f214ffcb11 (patch)
treeddc2e87c994ded3d67998acb389e47df887c47fb /cloudinit/sources/tests
parentc3556ae82dfb47d635344fcd78908f003648d6d2 (diff)
downloadvyos-cloud-init-2d3533b59c7bf00affbda9c2c94fb5f214ffcb11.tar.gz
vyos-cloud-init-2d3533b59c7bf00affbda9c2c94fb5f214ffcb11.zip
DataSourceOracle: retry twice (and document why we retry at all) (#536)
Diffstat (limited to 'cloudinit/sources/tests')
-rw-r--r--cloudinit/sources/tests/test_oracle.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cloudinit/sources/tests/test_oracle.py b/cloudinit/sources/tests/test_oracle.py
index 2fb9a20a..7bd23813 100644
--- a/cloudinit/sources/tests/test_oracle.py
+++ b/cloudinit/sources/tests/test_oracle.py
@@ -481,9 +481,11 @@ class TestReadOpcMetadata:
"v2_failure_count,v1_failure_count,expected_body,expectation",
[
(1, 0, json.loads(OPC_V2_METADATA), does_not_raise()),
- (2, 0, json.loads(OPC_V1_METADATA), does_not_raise()),
- (2, 1, json.loads(OPC_V1_METADATA), does_not_raise()),
- (2, 2, None, pytest.raises(UrlError)),
+ (2, 0, json.loads(OPC_V2_METADATA), does_not_raise()),
+ (3, 0, json.loads(OPC_V1_METADATA), does_not_raise()),
+ (3, 1, json.loads(OPC_V1_METADATA), does_not_raise()),
+ (3, 2, json.loads(OPC_V1_METADATA), does_not_raise()),
+ (3, 3, None, pytest.raises(UrlError)),
]
)
def test_retries(self, v2_failure_count, v1_failure_count,