Merge pull request #9724 from hashicorp/7410-simple-consistency-test
simple stale read test
This commit is contained in:
commit
b886e5a4fc
|
@ -5,6 +5,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
msgpackrpc "github.com/hashicorp/net-rpc-msgpackrpc"
|
msgpackrpc "github.com/hashicorp/net-rpc-msgpackrpc"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/hashicorp/nomad/acl"
|
"github.com/hashicorp/nomad/acl"
|
||||||
|
@ -14,6 +15,14 @@ import (
|
||||||
"github.com/hashicorp/nomad/testutil"
|
"github.com/hashicorp/nomad/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestScalingEndpoint_StaleReadSupport(t *testing.T) {
|
||||||
|
assert := assert.New(t)
|
||||||
|
list := &structs.ScalingPolicyListRequest{}
|
||||||
|
assert.True(list.IsRead())
|
||||||
|
get := &structs.ScalingPolicySpecificRequest{}
|
||||||
|
assert.True(get.IsRead())
|
||||||
|
}
|
||||||
|
|
||||||
func TestScalingEndpoint_GetPolicy(t *testing.T) {
|
func TestScalingEndpoint_GetPolicy(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
require := require.New(t)
|
require := require.New(t)
|
||||||
|
|
Loading…
Reference in New Issue