Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gvicentin committed Aug 26, 2024
1 parent 7e61633 commit 2944c5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tsuru/client/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ func (c *CertificateList) Run(context *cmd.Context) error {
continue
}
tbl.AddRow(tablecli.Row{
router,
formatCName(cname, cnameCert.Issuer),
formatPublicKeyInfo(*cert),
router,
formatCName(cname, cnameCert.Issuer),
formatPublicKeyInfo(*cert),
formatCertificateValidity(*cert),
})
}
Expand Down
10 changes: 5 additions & 5 deletions tsuru/client/certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (s *S) TestCertificateListRunSuccessfully(c *check.C) {
CNameCertificates: map[string]cnameCertificate{
"myapp.io": {
Certificate: certData,
Issuer: "lets-encrypt",
Issuer: "lets-encrypt",
},
"myapp.other.io": {
Certificate: "",
Expand All @@ -148,8 +148,8 @@ func (s *S) TestCertificateListRunSuccessfully(c *check.C) {
}
data, err := json.Marshal(appCert)
c.Assert(err, check.IsNil)
expectedNotBefore, err := time.Parse("2006-01-02 15:04:05", "2017-01-12 20:33:11")
expectedNotAfter, err := time.Parse("2006-01-02 15:04:05", "2027-01-10 20:33:11")
expectedNotBefore, _ := time.Parse("2006-01-02 15:04:05", "2017-01-12 20:33:11")
expectedNotAfter, _ := time.Parse("2006-01-02 15:04:05", "2027-01-10 20:33:11")
c.Assert(err, check.IsNil)
notBeforeStr := expectedNotBefore.UTC().Format(time.RFC3339)
notAfterStr := expectedNotAfter.UTC().Format(time.RFC3339)
Expand All @@ -166,7 +166,7 @@ func (s *S) TestCertificateListRunSuccessfully(c *check.C) {
| | managed by: cert-manager | RSA | ` + notBeforeStr + ` |
| | issuer: lets-encrypt | | |
| | | Key size (in bits) | Not after |
| | | 2048 | ` + notAfterStr +` |
| | | 2048 | ` + notAfterStr + ` |
+----------------+----------------------------+-----------------------+----------------------+
| ingress-router | myapp.other.io | failed to decode data | - |
+----------------+----------------------------+-----------------------+----------------------+
Expand Down Expand Up @@ -206,7 +206,7 @@ func (s *S) TestCertificateListRawRunSuccessfully(c *check.C) {
CNameCertificates: map[string]cnameCertificate{
"myapp.io": {
Certificate: certData,
Issuer: "lets-encrypt",
Issuer: "lets-encrypt",
},
"myapp.other.io": {
Certificate: "",
Expand Down

0 comments on commit 2944c5a

Please sign in to comment.