mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-06-12 01:14:35 +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/schema"
|
||||||
"github.com/hashicorp/terraform/helper/validation"
|
"github.com/hashicorp/terraform/helper/validation"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"sort"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PaginatedProjectHooksValue struct {
|
type PaginatedProjectHooksValue struct {
|
||||||
@@ -169,6 +170,7 @@ func readProjectHooks(m interface{}, project string, typeFilter string) ([]Proje
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, hook := range projectHooks.Values {
|
for _, hook := range projectHooks.Values {
|
||||||
|
sort.Strings(hook.Details.ScopeTypes)
|
||||||
h := ProjectHook{
|
h := ProjectHook{
|
||||||
Key: hook.Details.Key,
|
Key: hook.Details.Key,
|
||||||
Name: hook.Details.Name,
|
Name: hook.Details.Name,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
"github.com/hashicorp/terraform/helper/schema"
|
"github.com/hashicorp/terraform/helper/schema"
|
||||||
"github.com/hashicorp/terraform/helper/validation"
|
"github.com/hashicorp/terraform/helper/validation"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"sort"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PaginatedRepositoryHooksValue struct {
|
type PaginatedRepositoryHooksValue struct {
|
||||||
@@ -174,6 +175,7 @@ func readRepositoryHooks(m interface{}, project string, repository string, typeF
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, hook := range repositoryHooks.Values {
|
for _, hook := range repositoryHooks.Values {
|
||||||
|
sort.Strings(hook.Details.ScopeTypes)
|
||||||
h := RepositoryHook{
|
h := RepositoryHook{
|
||||||
Key: hook.Details.Key,
|
Key: hook.Details.Key,
|
||||||
Name: hook.Details.Name,
|
Name: hook.Details.Name,
|
||||||
|
|||||||
Reference in New Issue
Block a user