Skip to content

Commit 9b9d013

Browse files
committed
Rename provider and resource prefix
1 parent 87fad1a commit 9b9d013

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: go mod download
2929

3030
- 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 ./...
3232

3333
lint:
3434
name: Lint

internal/provider/data/test/file_data_source_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ func TestAccFileDataSource(t *testing.T) {
6969

7070
func testAccFileDataSourceConfig(path string) string {
7171
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+
7283
data "ssh_file_info" "test" {
7384
ssh = {
7485
host = "localhost"

internal/provider/data/test/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import (
88

99
var (
1010
testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
11-
"askrella-ssh": providerserver.NewProtocol6WithError(provider.New("test")()),
11+
"ssh": providerserver.NewProtocol6WithError(provider.New("test")()),
1212
}
1313
)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
flag.Parse()
2121

2222
opts := providerserver.ServeOpts{
23-
Address: "registry.terraform.io/askrella/askrella-ssh",
23+
Address: "registry.terraform.io/askrella/ssh",
2424
Debug: debug,
2525
}
2626

0 commit comments

Comments
 (0)