Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make resource manager take server prefix into consideration #2631

Merged
merged 2 commits into from
Jun 2, 2023

Conversation

mathnogueira
Copy link
Member

This PR makes the resource manager take the server path prefix into consideration when building the routes. Related to one problem related in #2565

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@schoren
Copy link
Collaborator

schoren commented Jun 1, 2023

@mathnogueira can you add some kind of test for for this? I wouldn't like to have a regression on this

@@ -63,3 +70,19 @@ func getTests(t *testing.T, endpoint string) []openapi.Test {

return tests
}

func getDatastores(t *testing.T, endpoint string) resourcemanager.ResourceList[datastoreresource.DataStore] {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used the datastores API to check if the resource manager is considering the path prefix

@mathnogueira mathnogueira merged commit f20a920 into main Jun 2, 2023
@mathnogueira mathnogueira deleted the fix/resource-manager-server-prefix branch June 2, 2023 20:26
schoren pushed a commit that referenced this pull request Jun 5, 2023
* fix: make resource manager take server prefix in consideration

* check if datastore endpoint (managed resource) consider path prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants