Skip to content

Commit

Permalink
Fixed failing prometheus tests and linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
turetske committed Oct 6, 2023
1 parent 6a98012 commit 09b9a42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/origin_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ type (
}

ServerConfig struct {
TLSCertificate string
TLSKey string
TLSCertificate string
TLSKey string
TLSCACertificateDirectory string
TLSCACertificateFile string
}
Expand Down
5 changes: 3 additions & 2 deletions web_ui/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/pelicanplatform/pelican/config"
"github.com/pelicanplatform/pelican/param"
"github.com/prometheus/common/route"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -101,7 +102,7 @@ func TestPrometheusProtectionFederationURL(t *testing.T) {
}
jti := base64.RawURLEncoding.EncodeToString(jti_bytes)

originUrl := param.Origin_Url.GetString
originUrl := param.Origin_Url.GetString()
tok, err := jwt.NewBuilder().
Claim("scope", "prometheus.read").
Claim("wlcg.ver", "1.0").
Expand Down Expand Up @@ -193,7 +194,7 @@ func TestPrometheusProtectionOriginHeaderScope(t *testing.T) {
}
jti := base64.RawURLEncoding.EncodeToString(jti_bytes)

originUrl := param.Origin_Url.GetString
originUrl := param.Origin_Url.GetString()
tok, err := jwt.NewBuilder().
Claim("scope", "prometheus.read").
Claim("wlcg.ver", "1.0").
Expand Down

0 comments on commit 09b9a42

Please sign in to comment.