Skip to content

Commit

Permalink
Added missing 'id' field to results struct, fixed typo in comment to …
Browse files Browse the repository at this point in the history
…TransformProtocol
  • Loading branch information
sreinkemeier committed Feb 20, 2018
1 parent 23f1ca1 commit 40efda3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ type Policy struct {
// PFS is the Perfect forward secrecy (PFS) mode
PFS string `json:"pfs"`

// TranformProtocol is the transform protocol
// TransformProtocol is the transform protocol
TransformProtocol string `json:"transform_protocol"`

// Lifetime is the lifetime of the security association
Lifetime Lifetime `json:"lifetime"`

// ID is the ID of the policy
ID string `json:"id"`
}

type Lifetime struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func TestCreate(t *testing.T) {
PFS: "group5",
Description: "",
Lifetime: expectedLifetime,
ID: "5291b189-fd84-46e5-84bd-78f40c05d69c",
}
th.AssertDeepEquals(t, expected, *actual)
}

0 comments on commit 40efda3

Please sign in to comment.