Python moto.mock_sts() Examples
The following are 10
code examples of moto.mock_sts().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
moto
, or try the search function
.
Example #1
Source File: test_securityhub_s3.py From aws-auto-remediate with GNU General Public License v3.0 | 5 votes |
def sh(self): with moto.mock_s3(), moto.mock_sts(): sh = security_hub_rules.SecurityHubRules(logging) yield sh
Example #2
Source File: test_securityhub_kms.py From aws-auto-remediate with GNU General Public License v3.0 | 5 votes |
def sh(self): with moto.mock_kms(), moto.mock_sts(): sh = security_hub_rules.SecurityHubRules(logging) yield sh
Example #3
Source File: test_securityhub_ec2.py From aws-auto-remediate with GNU General Public License v3.0 | 5 votes |
def sh(self): with moto.mock_ec2(), moto.mock_sts(): sh = security_hub_rules.SecurityHubRules(logging) yield sh
Example #4
Source File: test_setup.py From aws-auto-remediate with GNU General Public License v3.0 | 5 votes |
def setup(self): with moto.mock_cloudformation(), moto.mock_dynamodb2(), moto.mock_sts(): setup = lambda_handler.Setup(logging) yield setup
Example #5
Source File: test_setup.py From aws-auto-remediate with GNU General Public License v3.0 | 5 votes |
def setup(self): with moto.mock_cloudformation(), moto.mock_dynamodb2(), moto.mock_sts(): setup = lambda_handler.Setup(logging) yield setup
Example #6
Source File: test_setup.py From aws-auto-remediate with GNU General Public License v3.0 | 5 votes |
def setup(self): with moto.mock_dynamodb2(), moto.mock_sts(): setup = lambda_handler.Setup(logging) yield setup
Example #7
Source File: test_moto.py From aws-data-wrangler with Apache License 2.0 | 5 votes |
def moto_sts(): with moto.mock_sts(): yield True
Example #8
Source File: test_boto3_client.py From cfripper with Apache License 2.0 | 5 votes |
def boto3_client(): with mock_sts(): yield Boto3Client("123456789", "eu-west-1", "stack-id")
Example #9
Source File: conftest.py From cloudaux with Apache License 2.0 | 5 votes |
def sts(aws_credentials, conn_dict): with mock_sts(): yield boto3.client("sts", region_name="us-east-1")
Example #10
Source File: conftest.py From diffy with Apache License 2.0 | 5 votes |
def sts(): with mock_sts(): yield boto3.client("sts", region_name="us-east-1")