We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30603ca + 4b8c865 commit 907c7dcCopy full SHA for 907c7dc
nomad/scaling_endpoint_test.go
@@ -5,6 +5,7 @@ import (
5
"time"
6
7
msgpackrpc "github.com/hashicorp/net-rpc-msgpackrpc"
8
+ "github.com/stretchr/testify/assert"
9
"github.com/stretchr/testify/require"
10
11
"github.com/hashicorp/nomad/acl"
@@ -14,6 +15,14 @@ import (
14
15
"github.com/hashicorp/nomad/testutil"
16
)
17
18
+func TestScalingEndpoint_StaleReadSupport(t *testing.T) {
19
+ assert := assert.New(t)
20
+ list := &structs.ScalingPolicyListRequest{}
21
+ assert.True(list.IsRead())
22
+ get := &structs.ScalingPolicySpecificRequest{}
23
+ assert.True(get.IsRead())
24
+}
25
+
26
func TestScalingEndpoint_GetPolicy(t *testing.T) {
27
t.Parallel()
28
require := require.New(t)
0 commit comments