Skip to content

Commit

Permalink
Fixed failing prometheus tests
Browse files Browse the repository at this point in the history
  • Loading branch information
turetske committed Oct 6, 2023
1 parent 6a98012 commit 011bb8c
Showing 1 changed file with 3 additions and 2 deletions.
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 011bb8c

Please sign in to comment.