File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
internal/provider/data/test Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 28
28
run : go mod download
29
29
30
30
- name : Run tests
31
- run : TF_ACC=1 go test -v -race - coverprofile=coverage.txt -covermode=atomic ./...
31
+ run : TF_ACC=1 go test -v -coverprofile=coverage.txt -covermode=atomic ./...
32
32
33
33
lint :
34
34
name : Lint
Original file line number Diff line number Diff line change @@ -69,6 +69,17 @@ func TestAccFileDataSource(t *testing.T) {
69
69
70
70
func testAccFileDataSourceConfig (path string ) string {
71
71
return fmt .Sprintf (`
72
+ terraform {
73
+ required_providers {
74
+ ssh = {
75
+ source = "askrella/ssh"
76
+ version = "0.1.0"
77
+ }
78
+ }
79
+ }
80
+
81
+ provider "askrella-ssh" {}
82
+
72
83
data "ssh_file_info" "test" {
73
84
ssh = {
74
85
host = "localhost"
Original file line number Diff line number Diff line change 8
8
9
9
var (
10
10
testAccProtoV6ProviderFactories = map [string ]func () (tfprotov6.ProviderServer , error ){
11
- "askrella- ssh" : providerserver .NewProtocol6WithError (provider .New ("test" )()),
11
+ "ssh" : providerserver .NewProtocol6WithError (provider .New ("test" )()),
12
12
}
13
13
)
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func main() {
20
20
flag .Parse ()
21
21
22
22
opts := providerserver.ServeOpts {
23
- Address : "registry.terraform.io/askrella/askrella- ssh" ,
23
+ Address : "registry.terraform.io/askrella/ssh" ,
24
24
Debug : debug ,
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments