File tree Expand file tree Collapse file tree 5 files changed +8
-17
lines changed Expand file tree Collapse file tree 5 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ jobs:
148
148
149
149
- run : go install gotest.tools/gotestsum@latest
150
150
151
+ - uses : hashicorp/setup-terraform@v1
152
+ with :
153
+ terraform_version : 1.1.2
154
+
151
155
- name : Test with Mock Database
152
156
run :
153
157
gotestsum --jsonfile="gotests.json" --packages="./..." --
Original file line number Diff line number Diff line change
1
+ // This test runs slowly on MacOS instance, and really
2
+ // only needs to run on Linux anyways.
3
+ //go:build linux
4
+
1
5
package userpassword_test
2
6
3
7
import (
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ require (
13
13
github.com/golang-migrate/migrate/v4 v4.15.1
14
14
github.com/google/uuid v1.3.0
15
15
github.com/hashicorp/go-version v1.4.0
16
- github.com/hashicorp/hc-install v0.3.1
17
16
github.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f
18
17
github.com/hashicorp/terraform-exec v0.15.0
19
18
github.com/justinas/nosurf v1.1.1
@@ -64,7 +63,6 @@ require (
64
63
github.com/google/go-cmp v0.5.7 // indirect
65
64
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
66
65
github.com/hashicorp/errwrap v1.1.0 // indirect
67
- github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
68
66
github.com/hashicorp/go-multierror v1.1.1 // indirect
69
67
github.com/hashicorp/hcl v1.0.0 // indirect
70
68
github.com/hashicorp/hcl/v2 v2.11.1 // indirect
Original file line number Diff line number Diff line change @@ -693,8 +693,6 @@ github.com/hashicorp/go-version v1.4.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09
693
693
github.com/hashicorp/golang-lru v0.5.0 /go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8 =
694
694
github.com/hashicorp/golang-lru v0.5.1 /go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8 =
695
695
github.com/hashicorp/golang-lru v0.5.4 /go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4 =
696
- github.com/hashicorp/hc-install v0.3.1 h1:VIjllE6KyAI1A244G8kTaHXy+TL5/XYzvrtFi8po/Yk =
697
- github.com/hashicorp/hc-install v0.3.1 /go.mod h1:3LCdWcCDS1gaHC9mhHCGbkYfoY6vdsKohGjugbZdZak =
698
696
github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f /go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w =
699
697
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4 =
700
698
github.com/hashicorp/hcl v1.0.0 /go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ =
@@ -1309,7 +1307,6 @@ golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPh
1309
1307
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 /go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto =
1310
1308
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 /go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4 =
1311
1309
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b /go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4 =
1312
- golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
1313
1310
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
1314
1311
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
1315
1312
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
Original file line number Diff line number Diff line change @@ -9,27 +9,16 @@ import (
9
9
"path/filepath"
10
10
"testing"
11
11
12
- "github.com/hashicorp/go-version"
13
12
"github.com/stretchr/testify/require"
14
13
"storj.io/drpc/drpcconn"
15
14
16
15
"github.com/coder/coder/provisionersdk"
17
16
"github.com/coder/coder/provisionersdk/proto"
18
-
19
- "github.com/hashicorp/hc-install/product"
20
- "github.com/hashicorp/hc-install/releases"
21
17
)
22
18
23
19
func TestProvision (t * testing.T ) {
24
20
t .Parallel ()
25
21
26
- installer := & releases.ExactVersion {
27
- Product : product .Terraform ,
28
- Version : version .Must (version .NewVersion ("1.1.2" )),
29
- }
30
- execPath , err := installer .Install (context .Background ())
31
- require .NoError (t , err )
32
-
33
22
client , server := provisionersdk .TransportPipe ()
34
23
ctx , cancelFunc := context .WithCancel (context .Background ())
35
24
t .Cleanup (func () {
@@ -42,7 +31,6 @@ func TestProvision(t *testing.T) {
42
31
ServeOptions : & provisionersdk.ServeOptions {
43
32
Transport : server ,
44
33
},
45
- BinaryPath : execPath ,
46
34
})
47
35
require .NoError (t , err )
48
36
}()
You can’t perform that action at this time.
0 commit comments