Skip to content

Commit

Permalink
[FABC-740] Update to Go 1.11.1
Browse files Browse the repository at this point in the history
- fix gofmt errors
- fix goimports errors
- remove test due to
golang/go#22736

FABC-740 #done

Change-Id: Ie59c50c28424be52df5490743ab7afcf255ea4c3
Signed-off-by: Gari Singh <[email protected]>
  • Loading branch information
mastersingh24 committed Oct 16, 2018
1 parent cb7353f commit 15209a3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ci.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GO_VER=1.10.4
GO_VER=1.11.1
6 changes: 3 additions & 3 deletions lib/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ func (c *Client) newIdemixEnrollmentResponse(identity *Identity, result *common.
ou, _ := result.Attrs["OU"].(string)
enrollmentID, _ := result.Attrs["EnrollmentID"].(string)
signerConfig := &idemixcred.SignerConfig{
Cred: credBytes,
Sk: idemix.BigToBytes(sk),
Role: role,
Cred: credBytes,
Sk: idemix.BigToBytes(sk),
Role: role,
OrganizationalUnitIdentifier: ou,
EnrollmentID: enrollmentID,
CredentialRevocationInformation: criBytes,
Expand Down
1 change: 0 additions & 1 deletion lib/client_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ func testInvalidAuthEnrollment(t *testing.T) {
enrollAndCheck(t, c, body, "Basic dXNlcjpwYXNz") // Invalid user
enrollAndCheck(t, c, body, "Bearer YWRtaW46YWRtaW5wdw==") // Invalid auth header
// Invalid auth header, it has to be Basic <base64 encoded user:pass>
enrollAndCheck(t, c, body, "basic YWRtaW46YWRtaW5wdw==")
enrollAndCheck(t, c, body, "Basic YWRtaW46YWRtaW5wdw==")
enrollAndCheck(t, c, body, "garbage") // Invalid auth header
enrollAndCheck(t, c, body, "") // No auth header
Expand Down
2 changes: 1 addition & 1 deletion lib/test-util.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func CopyFile(src, dst string) error {
// GenerateECDSATestCert generates EC based certificate for testing purposes
func GenerateECDSATestCert() error {
template := &x509.Certificate{
IsCA: true,
IsCA: true,
BasicConstraintsValid: true,
SubjectKeyId: []byte{1, 2, 3},
SerialNumber: big.NewInt(1234),
Expand Down
2 changes: 1 addition & 1 deletion lib/tls/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func TestCheckCertDates(t *testing.T) {
func createTestCertificate() error {
// Dynamically create a certificate with future valid date for testing purposes
certTemplate := &x509.Certificate{
IsCA: true,
IsCA: true,
BasicConstraintsValid: true,
SubjectKeyId: []byte{1, 2, 3},
SerialNumber: big.NewInt(1234),
Expand Down

0 comments on commit 15209a3

Please sign in to comment.