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

Added redirect_test.go #126

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Conversation

turetske
Copy link
Collaborator

This is response to the issue here - note that after discussion with Brian, we determined the last bullet point (Query the director for an object within the new origin's namespace. Ensure the response includes the newly registered origin) should be a separate issue and is not covered in this pull request.

  • Created redirect_test.go to test code in direct/redirect.go
  • Tests the director registration with both a valid and invalid token
  • Also added an interface called NameSpaceCache in order to mock the cache in tests in origina_api.go

* Created redirect_test.go to test code in direct/redirect.go
* Tests the director registration
* Also added an interface called NameSpaceCache in order to mock the cache in tests
@turetske turetske self-assigned this Sep 12, 2023
Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

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

LGTM. I like the way you set this up!

@jhiemstrawisc jhiemstrawisc merged commit b4d95d3 into main Sep 14, 2023
7 checks passed
@turetske turetske deleted the eturetskywisc/director-registration-test branch September 27, 2023 18:05
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.

2 participants