Only return live workers in ListHcpbWorkersResponse (#2876)
This commit is contained in:
4 files changed
+44
-27
No files matched your search
@@ -21,7 +21,7 @@ func TestTestKmsWorker(t *testing.T) {
|
||||
description = "test description"
|
||||
address = "test address"
|
||||
)
|
||||
tWorker := TestKmsWorker(t, conn, wrapper, WithName(name), WithDescription(description), WithAddress(address))
|
||||
tWorker := TestKmsWorker(t, conn, wrapper, WithName(name), WithDescription(description), WithAddress(address), WithOperationalState(ShutdownOperationalState.String()))
|
||||
assert.NotNil(t, tWorker)
|
||||
assert.True(t, strings.HasPrefix(tWorker.GetPublicId(), WorkerPrefix))
|
||||
|
||||
@@ -35,6 +35,7 @@ func TestTestKmsWorker(t *testing.T) {
|
||||
assert.Equal(t, name, lkpWorker.GetName())
|
||||
assert.Equal(t, description, lkpWorker.GetDescription())
|
||||
assert.Equal(t, address, lkpWorker.GetAddress())
|
||||
assert.Equal(t, ShutdownOperationalState.String(), lkpWorker.OperationalState)
|
||||
}
|
||||
|
||||
func TestTestPkiWorker(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user