Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/goimports
go:
- "1.9"
- "1.10"
- "1.11"
- tip
env:
global:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ var FirstQuotaSet = quotasets.QuotaSet{

// FirstQuotaDetailsSet is the first result in ListOutput.
var FirstQuotaDetailsSet = quotasets.QuotaDetailSet{
ID: FirstTenantID,
ID: FirstTenantID,
InjectedFileContentBytes: quotasets.QuotaDetail{InUse: 0, Reserved: 0, Limit: 10240},
InjectedFilePathBytes: quotasets.QuotaDetail{InUse: 0, Reserved: 0, Limit: 255},
InjectedFiles: quotasets.QuotaDetail{InUse: 0, Reserved: 0, Limit: 5},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ func TestCreate(t *testing.T) {
IKEVersion: "v2",
TenantID: "9145d91459d248b1b02fdaca97c6a75d",
Phase1NegotiationMode: "main",
PFS: "Group5",
EncryptionAlgorithm: "aes-128",
Description: "IKE policy",
Name: "policy",
ID: "f2b08c1e-aa81-4668-8ae1-1401bcb0576c",
Lifetime: expectedLifetime,
ProjectID: "9145d91459d248b1b02fdaca97c6a75d",
PFS: "Group5",
EncryptionAlgorithm: "aes-128",
Description: "IKE policy",
Name: "policy",
ID: "f2b08c1e-aa81-4668-8ae1-1401bcb0576c",
Lifetime: expectedLifetime,
ProjectID: "9145d91459d248b1b02fdaca97c6a75d",
}
th.AssertDeepEquals(t, expected, *actual)
}
Expand Down Expand Up @@ -130,12 +130,12 @@ func TestGet(t *testing.T) {
TenantID: "9145d91459d248b1b02fdaca97c6a75d",
ProjectID: "9145d91459d248b1b02fdaca97c6a75d",
Phase1NegotiationMode: "main",
PFS: "Group5",
EncryptionAlgorithm: "aes-128",
Description: "IKE policy",
Name: "policy",
ID: "5c561d9d-eaea-45f6-ae3e-08d1a7080828",
Lifetime: expectedLifetime,
PFS: "Group5",
EncryptionAlgorithm: "aes-128",
Description: "IKE policy",
Name: "policy",
ID: "5c561d9d-eaea-45f6-ae3e-08d1a7080828",
Lifetime: expectedLifetime,
}
th.AssertDeepEquals(t, expected, *actual)
}
Expand Down Expand Up @@ -208,12 +208,12 @@ func TestList(t *testing.T) {
TenantID: "9145d91459d248b1b02fdaca97c6a75d",
ProjectID: "9145d91459d248b1b02fdaca97c6a75d",
Phase1NegotiationMode: "main",
PFS: "Group5",
EncryptionAlgorithm: "aes-128",
Description: "IKE policy",
Name: "policy",
ID: "5c561d9d-eaea-45f6-ae3e-08d1a7080828",
Lifetime: expectedLifetime,
PFS: "Group5",
EncryptionAlgorithm: "aes-128",
Description: "IKE policy",
Name: "policy",
ID: "5c561d9d-eaea-45f6-ae3e-08d1a7080828",
Lifetime: expectedLifetime,
},
}

Expand Down
2 changes: 1 addition & 1 deletion signer_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func deriveSigningKey(signParam reqSignParams) []byte {

signKey := buildSignKey(signParam)
signKeyStr, _ := json.Marshal(signKeyCacheEntry{
Key: signKey,
Key: signKey,
NumberOfDaysSinceEpoch: signParam.getDaysSinceEpon(),
})
cache.Add(cacheKey, string(signKeyStr))
Expand Down