Skip to content

Integration and lint testing#82

Open
marko7460 wants to merge 2 commits into
GoogleCloudPlatform:masterfrom
marko7460:cicd
Open

Integration and lint testing#82
marko7460 wants to merge 2 commits into
GoogleCloudPlatform:masterfrom
marko7460:cicd

Conversation

@marko7460

@marko7460 marko7460 commented May 3, 2022

Copy link
Copy Markdown

This PR:

  • Introduces integration testing
  • Introduces lint testing
  • Introduces docker image for the above testing
  • Introduces full integration testing for HANA-HA, HANA-Scaleup, Netweaver-HA, Netweaver-DB2-Standard
  • Introduces cloud build yaml configurations

This commit introduces linting capabilities for this repo. Linting
is done via a container that defined in build/Dockerfile. Linting
is implemented using the following techonologies:
- ansilbe code linting via ansible-lint
- terraform code linting via terraform fmt and terraform validate
- python code linting via flake8
- shell code linting via shellcheck
In addition to the above we also check if the files have proper
license header requires by Google PSO.
This commit also introduces cloud-build configuration that is
initial step towards CI/CD for this repo.
Linting is NOT performed on the third_party/ and venv/ directories

The code has been inspired by CFT CI/CD code. Please see
https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/tree/master/infra/build/developer-tools
for more information
This commit introduces integration testing capabilities.
This commit:
- introduces new terraform module test-setup
  used to create test environments from scratch
- defines test environments used for stack testing in
  terraform/integration/test-setup. Projects defined here
  are long running projects.
- introduces integration script runner int-test.sh
- introduces integration tests for stacks:
  - HANA-Scaleup
  - HANA-HA
  - Netweaver-HA
  - Netweaver-DB2-Standard
- introduces test-matrix.yaml for stack testing
- introduces cloud build configurations for stack testings
- introduces integration test cleanup scripts per stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant