Skip to content

Commit 9cb8b80

Browse files
committed
update
1 parent dc746f1 commit 9cb8b80

File tree

4 files changed

+2001
-9
lines changed

4 files changed

+2001
-9
lines changed

CHAP07/testing-terratest/azure-pipeline.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ stages:
2222
persistCredentials: true
2323
clean: true
2424
fetchDepth: 1
25-
- script: |
26-
docker build -t module-test:$(tag) .
27-
workingDirectory: "$(Build.SourcesDirectory)/CHAP07/testing-terratest/"
28-
displayName: "Docker build"
29-
- script: |
30-
docker run module-test:$(tag)
31-
workingDirectory: "$(Build.SourcesDirectory)/CHAP07/testing-terratest/"
32-
displayName: "Docker run"
25+
# - script: |
26+
# docker build -t module-test:$(tag) .
27+
# workingDirectory: "$(Build.SourcesDirectory)/CHAP07/testing-terratest/"
28+
# displayName: "Docker build"
29+
# - script: |
30+
# docker run module-test:$(tag)
31+
# workingDirectory: "$(Build.SourcesDirectory)/CHAP07/testing-terratest/"
32+
# displayName: "Docker run"
33+
- script: runtests.sh
34+
workingDirectory: "$(Build.SourcesDirectory)/CHAP07/testing-terratest/module"
35+
displayName: "run test"
3336
- task: PowerShell@2
3437
displayName: "Tag code"
3538
inputs:

CHAP07/testing-terratest/module/runtests.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
2+
cd tests
23
echo "==> Get terratest package"
34
go get github.com/gruntwork-io/terratest/modules/terraform
45
echo "==> go test"
5-
go test -v ./tests/ -timeout 30m
6+
go test -v -timeout 30m
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
module terra
2+
3+
go 1.20
4+
5+
require (
6+
cloud.google.com/go v0.105.0 // indirect
7+
cloud.google.com/go/compute v1.12.1 // indirect
8+
cloud.google.com/go/compute/metadata v0.2.1 // indirect
9+
cloud.google.com/go/iam v0.7.0 // indirect
10+
cloud.google.com/go/storage v1.27.0 // indirect
11+
github.com/agext/levenshtein v1.2.3 // indirect
12+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
13+
github.com/aws/aws-sdk-go v1.44.122 // indirect
14+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
15+
github.com/davecgh/go-spew v1.1.1 // indirect
16+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
17+
github.com/golang/protobuf v1.5.3 // indirect
18+
github.com/google/go-cmp v0.5.9 // indirect
19+
github.com/google/uuid v1.3.0 // indirect
20+
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
21+
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
22+
github.com/gruntwork-io/terratest v0.43.8
23+
github.com/hashicorp/errwrap v1.0.0 // indirect
24+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
25+
github.com/hashicorp/go-getter v1.7.1 // indirect
26+
github.com/hashicorp/go-multierror v1.1.0 // indirect
27+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
28+
github.com/hashicorp/go-version v1.6.0 // indirect
29+
github.com/hashicorp/hcl/v2 v2.9.1 // indirect
30+
github.com/hashicorp/terraform-json v0.13.0 // indirect
31+
github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect
32+
github.com/jmespath/go-jmespath v0.4.0 // indirect
33+
github.com/klauspost/compress v1.15.11 // indirect
34+
github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect
35+
github.com/mitchellh/go-homedir v1.1.0 // indirect
36+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
37+
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
38+
github.com/pmezard/go-difflib v1.0.0 // indirect
39+
github.com/stretchr/testify v1.8.1
40+
github.com/tmccombs/hcl2json v0.3.3 // indirect
41+
github.com/ulikunitz/xz v0.5.10 // indirect
42+
github.com/zclconf/go-cty v1.9.1 // indirect
43+
go.opencensus.io v0.24.0 // indirect
44+
golang.org/x/crypto v0.1.0 // indirect
45+
golang.org/x/net v0.8.0 // indirect
46+
golang.org/x/oauth2 v0.1.0 // indirect
47+
golang.org/x/sys v0.6.0 // indirect
48+
golang.org/x/text v0.8.0 // indirect
49+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
50+
google.golang.org/api v0.103.0 // indirect
51+
google.golang.org/appengine v1.6.7 // indirect
52+
google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c // indirect
53+
google.golang.org/grpc v1.51.0 // indirect
54+
google.golang.org/protobuf v1.31.0 // indirect
55+
gopkg.in/yaml.v3 v3.0.1 // indirect
56+
)

0 commit comments

Comments
 (0)