moto/tests/test_secretsmanager/test_secretsmanager.py

14 lines
356 B
Python
Raw Normal View History

2018-06-08 05:31:44 +00:00
from __future__ import unicode_literals
import boto3
from moto import mock_secretsmanager
import sure # noqa
@mock_secretsmanager
def test_get_secret_value():
2018-06-10 05:08:10 +00:00
conn = boto3.client('secretsmanager', region_name='us-west-2')
2018-06-08 05:31:44 +00:00
result = conn.get_secret_value(SecretId='java-util-test-password')
assert result['SecretString'] == 'mysecretstring'