Test fixes

This commit is contained in:
Gavin Bunney
2019-10-15 13:47:31 -07:00
parent 041e008176
commit 567a08231d
2 changed files with 4 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,