Skip to content

Commit

Permalink
chore: Upgrade library version in order to prepare integration tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonfv authored Nov 22, 2020
1 parent 70ee8ee commit 39a6a1b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ submodules, and example modules are all functionally correct.
### Test Environment
The easiest way to test the module is in an isolated test project. The setup for such a project is defined in [test/setup](./test/setup/) directory.

To use this setup, you need a service account with Project Creator access on a folder. Export the Service Account credentials to your environment like so:
To use this setup, you need a service account with following roles on corresponding resource level:

| Resource Level | IAM Role |
|------|-------------|
| Organization | Billing Account Administrator |
| Folder | Project Creator |

Export the Service Account credentials to your environment like so:

```
export SERVICE_ACCOUNT_JSON=$(< credentials.json)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.1.0
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd

Expand Down
2 changes: 1 addition & 1 deletion test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "project" {
source = "terraform-google-modules/project-factory/google"
version = "~> 3.0"
version = "~> 9.0"

name = "ci-cloud-dns"
random_project_id = "true"
Expand Down
4 changes: 2 additions & 2 deletions test/setup/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ terraform {
}

provider "google" {
version = "~> 2.13.0"
version = "~> 3.1"
}

provider "google-beta" {
version = "~> 2.13.0"
version = "~> 3.2"
}

0 comments on commit 39a6a1b

Please sign in to comment.