refactor: rename test functions

This commit is contained in:
Dawid Wysokiński 2023-09-02 07:13:07 +02:00
parent a2c6aac53d
commit 94c39e5422
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
5 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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) {

View File

@ -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) {

View File

@ -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()