mirror of
https://github.com/Kichiyaki/terraform-provider-woodpecker.git
synced 2024-07-01 08:38:06 +00:00
refactor: rename test functions
This commit is contained in:
parent
a2c6aac53d
commit
94c39e5422
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
|
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDataSourceSecret(t *testing.T) {
|
func TestSecretDataSource(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
name := uuid.NewString()
|
name := uuid.NewString()
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
|
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDataSourceUser(t *testing.T) {
|
func TestUserDataSource(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
user, _ := woodpeckerClient.Self()
|
user, _ := woodpeckerClient.Self()
|
||||||
|
|
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
|
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestResourceRepository(t *testing.T) {
|
func TestRepositoryResource(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
t.Run("OK", func(t *testing.T) {
|
t.Run("OK", func(t *testing.T) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
|
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestResourceSecret(t *testing.T) {
|
func TestSecretResource(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
t.Run("OK", func(t *testing.T) {
|
t.Run("OK", func(t *testing.T) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
|
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestResourceUser(t *testing.T) {
|
func TestUserResource(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
login := uuid.NewString()
|
login := uuid.NewString()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user