Skip to content

Commit

Permalink
Added projectID field and removed line
Browse files Browse the repository at this point in the history
  • Loading branch information
sreinkemeier committed Feb 26, 2018
1 parent 43d51e5 commit 5476bd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func CreateIPSecPolicy(t *testing.T, client *gophercloud.ServiceClient) (*ipsecp
}

t.Logf("Successfully created IPSec policy %s", policyName)
t.Logf("Successfully created IKE policy %s", policyName)

return policy, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ type Policy struct {
// TenantID is the ID of the project
TenantID string `json:"tenant_id"`

// ProjectID is the ID of the project
ProjectID string `json:"project_id"`

// Description is the human readable description of the policy
Description string `json:"description"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func TestCreate(t *testing.T) {
"ikepolicy":{
"name": "policy",
"tenant_id": "9145d91459d248b1b02fdaca97c6a75d",
"project_id": "9145d91459d248b1b02fdaca97c6a75d",
"id": "f2b08c1e-aa81-4668-8ae1-1401bcb0576c",
"description": "IKE policy",
"auth_algorithm": "sha1",
Expand Down Expand Up @@ -78,6 +79,7 @@ func TestCreate(t *testing.T) {
Name: "policy",
ID: "f2b08c1e-aa81-4668-8ae1-1401bcb0576c",
Lifetime: expectedLifetime,
ProjectID: "9145d91459d248b1b02fdaca97c6a75d",
}
th.AssertDeepEquals(t, expected, *actual)
}

0 comments on commit 5476bd1

Please sign in to comment.