def test_snapshot_with_extended_task_role(): template = get_template( deploy_config= 'tests/fixtures/conf/fargate/extended_task_role/deploy.yml') snapshot_template = Config.dataload( 'tests/fixtures/fargate_extended_task_role.template') assert snapshot_template == json.loads(template)
def test_snapshot_with_no_default_vpcs(): template = get_template( vpcs_config='tests/fixtures/conf/cluster/no_default_vpcs/vpcs.yml', deploy_config='tests/fixtures/conf/cluster/no_default_vpcs/cluster.yml' ) snapshot_template = Config.dataload('tests/fixtures/cluster.template') assert snapshot_template == json.loads(template)
def test_snapshot_with_no_default_vpcs(): template = get_template( global_config='tests/fixtures/conf/fargate/single_container/global.yml', vpcs_config='tests/fixtures/conf/fargate/no_default_vpcs/vpcs.yml', deploy_config='tests/fixtures/conf/fargate/no_default_vpcs/deploy.yml') snapshot_template = Config.dataload( 'tests/fixtures/fargate_single_container.template') assert snapshot_template == json.loads(template)
def test_snapshot(): snapshot_template = Config.dataload('tests/fixtures/fargate.template') assert snapshot_template == json.loads(get_template())
def test_snapshot_with_overrides(): template = get_template( global_config='tests/fixtures/conf/fargate/with_overrides/global.yml') snapshot_template = Config.dataload( 'tests/fixtures/fargate_with_overrides.template') assert snapshot_template == json.loads(template)