Skip to content

Commit a044731

Browse files
andrew-edgarluan
authored andcommitted
Pass encryption key to BBS
[#103024166] Signed-off-by: Luan Santos <[email protected]>
1 parent ff8ba82 commit a044731

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cmd/rep/main_suite_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ var _ = SynchronizedBeforeSuite(func() []byte {
9898
AuctioneerAddress: auctioneerServer.URL(),
9999
EtcdCluster: etcdUrl,
100100
ConsulCluster: consulRunner.ConsulCluster(),
101+
102+
EncryptionKeys: []string{"label:key"},
103+
ActiveKeyLabel: "label",
101104
}
102105
})
103106

generator/internal/internal_suite_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ var _ = SynchronizedBeforeSuite(func() []byte {
5252
AuctioneerAddress: "some-address",
5353
EtcdCluster: etcdRunner.NodeURLS()[0],
5454
ConsulCluster: consulRunner.ConsulCluster(),
55+
56+
EncryptionKeys: []string{"label:key"},
57+
ActiveKeyLabel: "label",
5558
}
5659
bbsClient = bbs.NewClient("http://" + bbsAddress)
5760

generator/internal/task_processor_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package internal_test
33
import (
44
"errors"
55

6+
etcddb "github.com/cloudfoundry-incubator/bbs/db/etcd"
67
"github.com/cloudfoundry-incubator/bbs/models"
78
"github.com/cloudfoundry-incubator/bbs/models/test/model_helpers"
89
"github.com/cloudfoundry-incubator/executor"
@@ -29,7 +30,7 @@ var _ = Describe("Task <-> Container table", func() {
2930
)
3031

3132
BeforeEach(func() {
32-
etcdRunner.Reset()
33+
etcdRunner.ResetAllBut(etcddb.VersionKey)
3334
containerDelegate = new(fake_internal.FakeContainerDelegate)
3435
processor = internal.NewTaskProcessor(bbsClient, containerDelegate, localCellID)
3536

0 commit comments

Comments
 (0)