TESTS: Add "action" distinction

parent 2884f209
......@@ -326,7 +326,8 @@ good_sessions = [
"wup0tMMeQM/xrHgBYylaTT6ngfGZQpsrmpBAIhAIhxE9+bzUoBDYFRTFHq4lzD/mzCb3s\n"
"/lFwJy694PqA0-----END CERTIFICATE REQUEST-----",
"flags": [],
"digest": ""
"digest": "",
"action": "certs",
},
{
"flags": [],
......@@ -338,7 +339,8 @@ good_sessions = [
"M/iDdl4+m+fW3NnIOf3epwWZjJQqQY8R0b6+cm9eSHpqIlI6zjUCzBD1jC1BsewZ25Dy7\n"
"nQMGOmvwrTYoBEwDwYJKoZIhvcNAQkOMQIwADAKBggqhkjOPQQDAgNHADBEAiBN20doyA\n"
"17mcy4thRY61WY8njlY6jGTV05olYg6lJlDgIgM7DGv4yRLoj7HZkkKJmXDZ+w2PdKLp2\n"
"za8Si7xiC+zs=-----END CERTIFICATE REQUEST-----"
"za8Si7xiC+zs=-----END CERTIFICATE REQUEST-----",
"action": "certs",
}
]
......
......@@ -74,7 +74,7 @@ def bad_req_types(request):
["renew"],
[],
])
def good_flags(request):
def good_certs_flags(request):
return request.param
......@@ -84,7 +84,7 @@ def good_flags(request):
[" "],
[None],
])
def bad_flags(request):
def bad_certs_flags(request):
return request.param
......@@ -140,7 +140,8 @@ def bad_sid(request):
"digest": "",
"csr_str": "",
"flags": "",
}
"action": "certs",
},
])
def good_sessions(request):
return request.param
......
......@@ -38,13 +38,13 @@ def test_invalid_csr(bad_csr, bad_sn_atsha):
v.validate_csr(bad_csr, bad_sn_atsha)
def test_valid_flags(good_flags):
v.validate_flags(good_flags)
def test_valid_flags(good_certs_flags):
v.validate_certs_flags(good_certs_flags)
def test_invalid_flags(bad_flags):
def test_invalid_flags(bad_certs_flags):
with pytest.raises(ex.RequestConsistencyError):
v.validate_flags(bad_flags)
v.validate_certs_flags(bad_certs_flags)
def test_valid_auth_type(good_auth_types):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment