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

GetVolumes api for a given tenant #207

Merged
merged 13 commits into from
Jan 27, 2023
Merged

GetVolumes api for a given tenant #207

merged 13 commits into from
Jan 27, 2023

Conversation

alikdell
Copy link
Collaborator

@alikdell alikdell commented Jan 24, 2023

Description

Add new APIs to get volumes from Authorization for a given tenant with valid token.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
#dell/csm#408

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Test A
    Manual testing and unit test are added for the functionality.

cmd/proxy-server/main.go Outdated Show resolved Hide resolved
cmd/proxy-server/main.go Outdated Show resolved Hide resolved
cmd/proxy-server/main.go Outdated Show resolved Hide resolved
cmd/proxy-server/main.go Outdated Show resolved Hide resolved
cmd/proxy-server/main_test.go Outdated Show resolved Hide resolved
switch scheme {
case "Bearer":
var claims token.Claims
//if token can is valid
Copy link
Collaborator

Choose a reason for hiding this comment

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

this comment seems unclear

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

}

log.Printf("volumeList %+v\n", volumeList)
//TODO: grpc call to storage service to get volume details
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this TODO be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nopes, it will get removed after integration

sharmilarama
sharmilarama previously approved these changes Jan 26, 2023
@dell dell deleted a comment from IsaiasA1 Jan 27, 2023
@alikdell
Copy link
Collaborator Author

run e2e test

@alikdell alikdell merged commit 9176bb1 into main Jan 27, 2023
@alikdell alikdell deleted the new-volume-api branch January 27, 2023 15:44
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.

5 participants