Skip to content

Commit

Permalink
CLOUDP-274340: Move to Auth version API
Browse files Browse the repository at this point in the history
  • Loading branch information
husniMDB committed Sep 19, 2024
1 parent c93a707 commit b9cd5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opsmngr/service_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/http"
)

const versionPath = "api/private/unauth/version"
const versionPath = "api/public/v1.0/software/version"

// ServiceVersionService is an interface for the version private endpoint of the MongoDB Ops Manager API.
//
Expand Down
2 changes: 1 addition & 1 deletion opsmngr/service_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestServiceVersionService_Get(t *testing.T) {
client, mux, teardown := setup()
defer teardown()

mux.HandleFunc("/api/private/unauth/version", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/api/public/v1.0/software/version", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, http.MethodGet)
fmt.Fprint(w, "someGitHash")
})
Expand Down

0 comments on commit b9cd5d8

Please sign in to comment.