Skip to content

Commit b050dc6

Browse files
committed
fix: lint
1 parent d20703c commit b050dc6

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

examples/main.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1+
# This is an example for using bytebase terraform provider to manage your resource.
2+
# To run this provider in your local machine,
3+
# 1. Run your bytebase service, then you can access the OpenAPI via http://localhost:8080/v1
4+
# 2. Replace the email and password with your account
5+
# 3. Run `make install` under terraform-provider-bytebase folder
6+
# 4. Run `terraform init` under terraform-provider-bytebase/examples folder
7+
# 5. Run terraform plan or terraform apply
18
terraform {
29
required_providers {
310
bytebase = {
411
version = "0.0.1"
5-
source = "registry.terraform.io/bytebase/bytebase"
12+
# The source is only used in this local example.
13+
source = "registry.terraform.io/bytebase/bytebase"
614
}
715
}
816
}
917

1018
provider "bytebase" {
19+
# You need to replace the email and password with your own bytebase account.
1120
1221
password = "ed"
1322
bytebase_url = "http://localhost:8080/v1"

provider/resource_environment_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ func TestAccEnvironment(t *testing.T) {
1616
envName := "dev"
1717

1818
resource.Test(t, resource.TestCase{
19-
PreCheck: func() { testAccPreCheck(t) },
19+
PreCheck: func() {
20+
testAccPreCheck(t)
21+
},
2022
Providers: testAccProviders,
2123
CheckDestroy: testAccCheckEnvironmentDestroy,
2224
Steps: []resource.TestStep{

0 commit comments

Comments
 (0)