Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Dec 15, 2020
1 parent 52d317a commit ac6628e
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/terraform/static/all_fields.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/collector_fields.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/conditional_sources.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/custom.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/default.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/disable_default_metrics.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/strip_extrapolation.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down
4 changes: 4 additions & 0 deletions tests/terraform/static/traces.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
for file in $(ls -1 "/customer-scripts/${dir}_"* | grep -oE '_.*' | sed 's/_//g'); do
cp "/customer-scripts/${dir}_${file}" "${target}/${file}"
done
[[ ! -f setup.sh ]] \
&& echo "You're missing setup.sh script in custom scripts directory: '${dir}'" \
&& continue
cd "${target}" && bash setup.sh
done
fields.tf: |
Expand Down

0 comments on commit ac6628e

Please sign in to comment.