-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To include projectId attribute(optional) in Create Virtual Device, Cr…
…eate DLG, Create ACL template, Create SSH Public Key APIs (#28) * to include projectId(optional)in CVD,Create DLG, Create ACL template APIs * to include projectId(optional)in create ssh public key API * added in rest APIs and tests * fixed acl tests * fixed acl tests
- Loading branch information
1 parent
9404688
commit ed49263
Showing
15 changed files
with
83 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package api | ||
|
||
//SSHPublicKey describes SSH public key | ||
// SSHPublicKey describes SSH public key | ||
type SSHPublicKey struct { | ||
UUID *string `json:"uuid,omitempty"` | ||
KeyName *string `json:"keyName,omitempty"` | ||
KeyValue *string `json:"keyValue,omitempty"` | ||
KeyType *string `json:"keyType,omitempty"` | ||
UUID *string `json:"uuid,omitempty"` | ||
KeyName *string `json:"keyName,omitempty"` | ||
KeyValue *string `json:"keyValue,omitempty"` | ||
KeyType *string `json:"keyType,omitempty"` | ||
ProjectID *string `json:"projectId,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ var testDevice = Device{ | |
Notifications: []string{"[email protected]", "[email protected]"}, | ||
PackageCode: String("VM100"), | ||
TermLength: Int(24), | ||
ProjectID: String("68ccfd49-39b1-478e-957a-67c72f719d7a"), | ||
Throughput: Int(1), | ||
ThroughputUnit: String("Gbps"), | ||
Name: String("PaloAltoSRmy"), | ||
|
@@ -501,6 +502,7 @@ func verifyDeviceRequest(t *testing.T, device Device, req api.DeviceRequest) { | |
assert.Equal(t, device.TypeCode, req.DeviceTypeCode, "TypeCode matches") | ||
termLengthStr := strconv.Itoa(*device.TermLength) | ||
assert.Equal(t, &termLengthStr, req.TermLength, "TermLength matches") | ||
assert.Equal(t, device.ProjectID, req.ProjectID, "Project Id matches") | ||
if *device.IsBYOL { | ||
assert.Equal(t, DeviceLicenseModeBYOL, StringValue(req.LicenseMode), "LicenseMode matches") | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.