Rename option.

This commit is contained in:
Mariano Cano 2020-10-19 18:44:27 -07:00
parent 2ec0c24e98
commit 9f21813dd6
2 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@ type Options struct {
// CertificateAuthority reference. In CloudCAS the format is
// `projects/*/locations/*/certificateAuthorities/*`.
Certificateauthority string `json:"certificateAuthority"`
CertificateAuthority string `json:"certificateAuthority"`
// Issuer and signer are the issuer certificate and signer used in SoftCAS.
// They are configured in ca.json crt and key properties.

View file

@ -42,7 +42,7 @@ func TestOptions_Validate(t *testing.T) {
type fields struct {
Type string
CredentialsFile string
Certificateauthority string
CertificateAuthority string
Issuer *x509.Certificate
Signer crypto.Signer
}
@ -69,7 +69,7 @@ func TestOptions_Validate(t *testing.T) {
o := &Options{
Type: tt.fields.Type,
CredentialsFile: tt.fields.CredentialsFile,
Certificateauthority: tt.fields.Certificateauthority,
CertificateAuthority: tt.fields.CertificateAuthority,
Issuer: tt.fields.Issuer,
Signer: tt.fields.Signer,
}
@ -86,7 +86,7 @@ func TestOptions_Is(t *testing.T) {
type fields struct {
Type string
CredentialsFile string
Certificateauthority string
CertificateAuthority string
Issuer *x509.Certificate
Signer crypto.Signer
}
@ -119,7 +119,7 @@ func TestOptions_Is(t *testing.T) {
o := &Options{
Type: tt.fields.Type,
CredentialsFile: tt.fields.CredentialsFile,
Certificateauthority: tt.fields.Certificateauthority,
CertificateAuthority: tt.fields.CertificateAuthority,
Issuer: tt.fields.Issuer,
Signer: tt.fields.Signer,
}