Fix misc test failures (some from other PRs)

This commit is contained in:
Paul Banks 2018-06-13 20:01:05 +01:00 committed by Jack Pearkes
parent 382ce8f98a
commit 05a8097c5d
3 changed files with 3 additions and 1 deletions

View File

@ -1166,6 +1166,7 @@ func TestFSM_Intention_CRUD(t *testing.T) {
Intention: structs.TestIntention(t),
}
ixn.Intention.ID = generateUUID()
ixn.Intention.UpdatePrecedence()
{
buf, err := structs.Encode(structs.IntentionRequestType, ixn)

View File

@ -24,7 +24,7 @@ func TestAPI_ConnectCARoots_empty(t *testing.T) {
connect := c.Connect()
list, meta, err := connect.CARoots(nil)
require.NoError(err)
require.Equal(uint64(0), meta.LastIndex)
require.Equal(uint64(1), meta.LastIndex)
require.Len(list.Roots, 0)
require.Empty(list.TrustDomain)
}

View File

@ -163,6 +163,7 @@ func testIntention() *Intention {
SourceName: "api",
DestinationNS: "eng",
DestinationName: "db",
Precedence: 9,
Action: IntentionActionAllow,
SourceType: IntentionSourceConsul,
Meta: map[string]string{},