Skip to content

Commit 5c4e51e

Browse files
committed
fix merge conflict
1 parent b4fc32e commit 5c4e51e

File tree

2 files changed

+0
-58
lines changed

2 files changed

+0
-58
lines changed

.project_automation/functional_tests/entrypoint.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ post_entrypoint() {
3232
#********** Pre-entrypoint helper *************
3333
pre_entrypoint
3434

35-
<<<<<<< before updating
36-
export AWS_DEFAULT_REGION=eu-west-1
37-
38-
#********** Checkov Analysis *************
39-
echo "Running Checkov Analysis"
40-
terraform init
41-
terraform plan -out tf.plan
42-
terraform show -json tf.plan > tf.json
43-
checkov --config-file ${PROJECT_PATH}/.config/.checkov.yml
44-
=======
4535
#********** Functional Test *************
4636
/bin/bash ${PROJECT_PATH}/.project_automation/functional_tests/functional_tests.sh
4737
if [ $? -eq 0 ]
@@ -52,7 +42,6 @@ else
5242
echo "Functional test failed"
5343
EXIT_CODE=1
5444
fi
55-
>>>>>>> after updating
5645

5746
#********** Post-entrypoint helper *************
5847
post_entrypoint

.project_automation/static_tests/entrypoint.sh

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,9 @@ post_entrypoint() {
3232
#********** Pre-entrypoint helper *************
3333
pre_entrypoint
3434

35-
<<<<<<< before updating
36-
#********** tflint ********************
37-
echo 'Starting tflint'
38-
tflint --init --config ${PROJECT_PATH}/.config/.tflint.hcl
39-
MYLINT=$(tflint --force --config ${PROJECT_PATH}/.config/.tflint.hcl)
40-
if [ -z "$MYLINT" ]
41-
then
42-
echo "Success - tflint found no linting issues!"
43-
else
44-
echo "Failure - tflint found linting issues!"
45-
echo "$MYLINT"
46-
exit 1
47-
fi
48-
#********** tfsec *********************
49-
echo 'Starting tfsec'
50-
MYTFSEC=$(tfsec . --config-file ${PROJECT_PATH}/.config/.tfsec.yml || true)
51-
if [[ $MYTFSEC == *"No problems detected!"* ]];
52-
=======
5335
#********** Static Test *************
5436
/bin/bash ${PROJECT_PATH}/.project_automation/static_tests/static_tests.sh
5537
if [ $? -eq 0 ]
56-
>>>>>>> after updating
5738
then
5839
echo "Static test completed"
5940
EXIT_CODE=0
@@ -62,36 +43,8 @@ else
6243
EXIT_CODE=1
6344
fi
6445

65-
<<<<<<< before updating
66-
#********** Markdown Lint **************
67-
echo 'Starting markdown lint'
68-
MYMDL=$(mdl --config ${PROJECT_PATH}/.config/.mdlrc .header.md examples/*/.header.md || true)
69-
if [ -z "$MYMDL" ]
70-
then
71-
echo "Success - markdown lint found no linting issues!"
72-
else
73-
echo "Failure - markdown lint found linting issues!"
74-
echo "$MYMDL"
75-
exit 1
76-
fi
77-
#********** Terraform Docs *************
78-
echo 'Starting terraform-docs'
79-
TDOCS="$(terraform-docs --config ${PROJECT_PATH}/.config/.terraform-docs.yaml --lockfile=false ./)"
80-
git add -N README.md
81-
GDIFF="$(git diff --compact-summary)"
82-
if [ -z "$GDIFF" ]
83-
then
84-
echo "Success - Terraform Docs creation verified!"
85-
else
86-
echo "Failure - Terraform Docs creation failed, ensure you have precommit installed and running before submitting the Pull Request"
87-
exit 1
88-
fi
89-
#***************************************
90-
echo "End of Static Tests"
91-
=======
9246
#********** Post-entrypoint helper *************
9347
post_entrypoint
9448

9549
#********** Exit Code *************
9650
exit $EXIT_CODE
97-
>>>>>>> after updating

0 commit comments

Comments
 (0)