-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request terraform-google-modules#20 from terraform-google-…
…modules/feature/restructure-tests Restructure tests to take advantage of kitchen-terraform
- Loading branch information
Showing
63 changed files
with
1,906 additions
and
1,006 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright 2018 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
driver: | ||
name: "terraform" | ||
command_timeout: 1800 | ||
|
||
provisioner: | ||
name: "terraform" | ||
|
||
platforms: | ||
- name: local | ||
|
||
suites: | ||
- name: "deploy_service" | ||
driver: | ||
name: "terraform" | ||
command_timeout: 1800 | ||
root_module_directory: examples/deploy_service | ||
variable_files: | ||
- test/fixtures/deploy_service/terraform.tfvars | ||
verifier: | ||
name: terraform | ||
systems: | ||
- name: deploy_service | ||
backend: local | ||
provisioner: | ||
name: terraform | ||
- name: "node_pool" | ||
driver: | ||
name: "terraform" | ||
command_timeout: 1800 | ||
root_module_directory: examples/node_pool | ||
variable_files: | ||
- test/fixtures/node_pool/terraform.tfvars | ||
verifier: | ||
name: terraform | ||
systems: | ||
- name: node_pool | ||
backend: local | ||
provisioner: | ||
name: terraform | ||
- name: "simple_regional" | ||
driver: | ||
name: "terraform" | ||
command_timeout: 1800 | ||
root_module_directory: examples/simple_regional | ||
variable_files: | ||
- test/fixtures/simple_regional/terraform.tfvars | ||
verifier: | ||
name: terraform | ||
systems: | ||
- name: simple_regional | ||
backend: local | ||
provisioner: | ||
name: terraform | ||
- name: "simple_zonal" | ||
driver: | ||
name: "terraform" | ||
command_timeout: 1800 | ||
root_module_directory: examples/simple_zonal | ||
variable_files: | ||
- test/fixtures/simple_zonal/terraform.tfvars | ||
verifier: | ||
name: terraform | ||
systems: | ||
- name: simple_zonal | ||
backend: local | ||
provisioner: | ||
name: terraform | ||
- name: "stub_domains" | ||
driver: | ||
name: "terraform" | ||
command_timeout: 1800 | ||
root_module_directory: examples/stub_domains | ||
variable_files: | ||
- test/fixtures/stub_domains/terraform.tfvars | ||
verifier: | ||
name: terraform | ||
systems: | ||
- name: stub_domains | ||
backend: local | ||
provisioner: | ||
name: terraform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 2018 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
ARG BUILD_TERRAFORM_IMAGE | ||
ARG BUILD_RUBY_VERSION | ||
# hadolint ignore=DL3006 | ||
FROM $BUILD_TERRAFORM_IMAGE as cfkt_terraform | ||
|
||
|
||
|
||
FROM ruby:$BUILD_RUBY_VERSION-alpine | ||
|
||
RUN apk add --no-cache \ | ||
bash=4.3.42-r5 \ | ||
curl=7.60.0-r1 \ | ||
git=2.8.6-r0 \ | ||
g++=5.3.0-r0 \ | ||
jq=1.5-r2 \ | ||
make=4.1-r1 \ | ||
musl-dev=1.1.14-r16 \ | ||
python=2.7.14-r0 \ | ||
python-dev=2.7.14-r0 \ | ||
py-pip=8.1.2-r0 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
ENV APP_BASE_DIR="/cftk" | ||
|
||
COPY --from=cfkt_terraform $APP_BASE_DIR $APP_BASE_DIR | ||
|
||
ENV HOME="$APP_BASE_DIR/home" | ||
ENV PATH $APP_BASE_DIR/bin:$APP_BASE_DIR/google-cloud-sdk/bin:$PATH | ||
ENV GOOGLE_APPLICATION_CREDENTIALS="$CREDENTIALS_PATH" \ | ||
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE="$CREDENTIALS_PATH" | ||
|
||
# Fix base64 inconsistency | ||
SHELL ["/bin/bash", "-c"] | ||
RUN echo 'base64() { if [[ $@ == "--decode" ]]; then command base64 -d | more; else command base64 "$@"; fi; }' >> $APP_BASE_DIR/home/.bashrc | ||
|
||
RUN terraform --version && \ | ||
gcloud --version && \ | ||
ruby --version && \ | ||
bundle --version | ||
|
||
COPY ./Gemfile /opt/kitchen/ | ||
|
||
WORKDIR /opt/kitchen | ||
RUN bundle install | ||
|
||
RUN gcloud components install beta --quiet | ||
|
||
WORKDIR $APP_BASE_DIR/workdir |
Oops, something went wrong.