Linting
This commit is contained in:
parent
cb6731f340
commit
273ca63d59
92 changed files with 515 additions and 1200 deletions
|
|
@ -638,7 +638,9 @@ def test_put_secret_value_on_non_existing_secret():
|
|||
VersionStages=["AWSCURRENT"],
|
||||
)
|
||||
|
||||
cm.value.response["Error"]["Message"].should.equal("Secrets Manager can't find the specified secret.")
|
||||
cm.value.response["Error"]["Message"].should.equal(
|
||||
"Secrets Manager can't find the specified secret."
|
||||
)
|
||||
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -923,17 +925,11 @@ def test_tag_resource():
|
|||
conn = boto3.client("secretsmanager", region_name="us-west-2")
|
||||
conn.create_secret(Name="test-secret", SecretString="foosecret")
|
||||
conn.tag_resource(
|
||||
SecretId="test-secret",
|
||||
Tags=[
|
||||
{"Key": "FirstTag", "Value": "SomeValue"},
|
||||
],
|
||||
SecretId="test-secret", Tags=[{"Key": "FirstTag", "Value": "SomeValue"},],
|
||||
)
|
||||
|
||||
conn.tag_resource(
|
||||
SecretId="test-secret",
|
||||
Tags=[
|
||||
{"Key": "SecondTag", "Value": "AnotherValue"},
|
||||
],
|
||||
SecretId="test-secret", Tags=[{"Key": "SecondTag", "Value": "AnotherValue"},],
|
||||
)
|
||||
|
||||
secrets = conn.list_secrets()
|
||||
|
|
@ -945,14 +941,13 @@ def test_tag_resource():
|
|||
with pytest.raises(ClientError) as cm:
|
||||
conn.tag_resource(
|
||||
SecretId="dummy-test-secret",
|
||||
Tags=[
|
||||
{"Key": "FirstTag", "Value": "SomeValue"},
|
||||
],
|
||||
Tags=[{"Key": "FirstTag", "Value": "SomeValue"},],
|
||||
)
|
||||
|
||||
assert \
|
||||
"Secrets Manager can't find the specified secret." == \
|
||||
cm.value.response["Error"]["Message"]
|
||||
assert (
|
||||
"Secrets Manager can't find the specified secret."
|
||||
== cm.value.response["Error"]["Message"]
|
||||
)
|
||||
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue