mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-04-01 15:03:08 +02:00
Test fixes
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform/helper/validation"
|
||||
"net/url"
|
||||
"sort"
|
||||
)
|
||||
|
||||
type PaginatedProjectHooksValue struct {
|
||||
@@ -169,6 +170,7 @@ func readProjectHooks(m interface{}, project string, typeFilter string) ([]Proje
|
||||
}
|
||||
|
||||
for _, hook := range projectHooks.Values {
|
||||
sort.Strings(hook.Details.ScopeTypes)
|
||||
h := ProjectHook{
|
||||
Key: hook.Details.Key,
|
||||
Name: hook.Details.Name,
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform/helper/validation"
|
||||
"net/url"
|
||||
"sort"
|
||||
)
|
||||
|
||||
type PaginatedRepositoryHooksValue struct {
|
||||
@@ -174,6 +175,7 @@ func readRepositoryHooks(m interface{}, project string, repository string, typeF
|
||||
}
|
||||
|
||||
for _, hook := range repositoryHooks.Values {
|
||||
sort.Strings(hook.Details.ScopeTypes)
|
||||
h := RepositoryHook{
|
||||
Key: hook.Details.Key,
|
||||
Name: hook.Details.Name,
|
||||
|
||||
Reference in New Issue
Block a user