File tree Expand file tree Collapse file tree
lambda_codebase/initial_commit/bootstrap_repository
lambda_codebase/determine_default_branch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/lambda_codebase -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/lambda_codebase/pytest.ini
1111 pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/lambda_codebase/initial_commit -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/lambda_codebase/initial_commit/pytest.ini
1212 pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/lambda_codebase/determine_default_branch -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/lambda_codebase/determine_default_branch/pytest.ini
13+ pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/helpers -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/helpers/pytest.ini
1314 pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/pytest.ini
1415 pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/pytest.ini
1516 pytest src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared -vvv -s -c src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/pytest.ini
Original file line number Diff line number Diff line change @@ -767,10 +767,13 @@ Resources:
767767 - npm install cdk@1.169 -g -y --quiet --no-progress
768768 - aws s3 cp s3://$SHARED_MODULES_BUCKET/adf-build/ ./adf-build/ --recursive --quiet
769769 - pip install -r adf-build/requirements.txt -q -t ./adf-build
770+ pre_build:
771+ commands:
772+ - mkdir -p deployment_maps
770773 build:
771774 commands:
772- - python adf-build/sync_to_s3.py --upload-with-metadata execution_id=${!CODEBUILD_BUILD_NUMBER} deployment_map.yml s3://$ADF_PIPELINES_BUCKET/deployment_map.yml
773- - python adf-build/sync_to_s3.py --extension .yml --upload-with-metadata execution_id=${!CODEBUILD_BUILD_NUMBER} --recursive deployment_maps '**/*.yml' s3://$ADF_PIPELINES_BUCKET/deployment_maps
775+ - python adf-build/helpers/ sync_to_s3.py --upload-with-metadata execution_id=${!CODEBUILD_BUILD_NUMBER} deployment_map.yml s3://$ADF_PIPELINES_BUCKET/deployment_map.yml
776+ - python adf-build/helpers/ sync_to_s3.py --extension .yml --upload-with-metadata execution_id=${!CODEBUILD_BUILD_NUMBER} --recursive deployment_maps s3://$ADF_PIPELINES_BUCKET/deployment_maps
774777 post_build:
775778 commands:
776779 - echo "Pipelines are updated in the AWS Step Functions ADFPipelineManagementStateMachine."
Original file line number Diff line number Diff line change 1- boto3 == 1.18.2
1+ boto3 == 1.24.59
22cfn-custom-resource ~= 1.0.1
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ awscli==1.25.60
55boto3 == 1.24.59
66botocore == 1.27.59
77aws-sam-cli == 1.55.0
8- docopt ~= 0.6.2
98mock ~= 4.0.3
109pip ~= 21.3.1
1110pylint ~= 2.13.9
Original file line number Diff line number Diff line change 1+ # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ # SPDX-License-Identifier: MIT-0
Original file line number Diff line number Diff line change 1+ [pytest]
2+ testpaths = tests
3+ norecursedirs = terraform
Original file line number Diff line number Diff line change 118118import boto3
119119from docopt import docopt
120120
121- from logger import configure_logger
122-
123121
124122ADF_VERSION = os .environ .get ("ADF_VERSION" )
125123ADF_LOG_LEVEL = os .environ .get ("ADF_LOG_LEVEL" , "INFO" )
126- LOGGER = configure_logger (__name__ )
127124NON_RECURSIVE_KEY = '%%-single-match-%%'
128125
126+ logging .basicConfig (level = logging .INFO )
127+ LOGGER = logging .getLogger (__name__ )
128+ LOGGER .setLevel (ADF_LOG_LEVEL )
129+
129130
130131class GenericFileData (TypedDict ):
131132 """
Original file line number Diff line number Diff line change 1+ # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ # SPDX-License-Identifier: MIT-0
3+
4+ """
5+ __init__ for tests module
6+ """
7+
8+ import sys
9+ import os
10+
11+ sys .path .append (os .path .abspath (os .path .join (os .path .dirname (__file__ ), '..' )))
File renamed without changes.
Original file line number Diff line number Diff line change 11[pytest]
22testpaths = tests
3- norecursedirs = python cdk
3+ norecursedirs = python cdk helpers
You can’t perform that action at this time.
0 commit comments