def _create_rds_sections(): region = 'region' config = AWSConfig('hostname', [], (None, None)) config.add_single_service_config('rds_names', None) config.add_service_tags('rds_tags', (None, None)) fake_rds_client = FakeRDSClient() fake_cloudwatch_client = FakeCloudwatchClient() rds_summary_distributor = ResultDistributor() rds_limits = RDSLimits(FakeRDSClient(), region, config) rds_summary = RDSSummary(fake_rds_client, region, config, rds_summary_distributor) rds = RDS(fake_cloudwatch_client, region, config) rds_summary_distributor.add(rds) return rds_limits, rds_summary, rds
def _create_rds_sections(names, tags): region = "region" config = AWSConfig("hostname", [], (None, None)) config.add_single_service_config("rds_names", names) config.add_service_tags("rds_tags", tags) fake_rds_client = FakeRDSClient() fake_cloudwatch_client = FakeCloudwatchClient() rds_summary_distributor = ResultDistributor() rds_limits = RDSLimits(FakeRDSClient(), region, config) rds_summary = RDSSummary(fake_rds_client, region, config, rds_summary_distributor) rds = RDS(fake_cloudwatch_client, region, config) rds_summary_distributor.add(rds) return rds_limits, rds_summary, rds