Skip to content

Commit

Permalink
Fix case sensitivity in URLPath parameters for aggregated metric hist…
Browse files Browse the repository at this point in the history
…ories route
  • Loading branch information
bonzofenix committed Nov 28, 2024
1 parent 2e40292 commit 40028b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoscaler/routes/routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ var _ = Describe("Routes", func() {
Context("GetAggregatedMetricHistoriesRouteName", func() {
Context("when provide correct route variable", func() {
It("should return the correct path", func() {
path, err := router.Get(routes.GetAggregatedMetricHistoriesRouteName).URLPath("appId", testAppId, "metrictype", testMetricType)
path, err := router.Get(routes.GetAggregatedMetricHistoriesRouteName).URLPath("appid", testAppId, "metrictype", testMetricType)
Expect(err).NotTo(HaveOccurred())
Expect(path.Path).To(Equal("/v1/apps/" + testAppId + "/aggregated_metric_histories/" + testMetricType))
})
Expand Down

0 comments on commit 40028b5

Please sign in to comment.