-
Notifications
You must be signed in to change notification settings - Fork 786
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
Zoo: Change island to use credentials #1452
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1452 +/- ##
========================================
Coverage 40.36% 40.36%
========================================
Files 465 465
Lines 13908 13908
========================================
Hits 5614 5614
Misses 8294 8294 Continue to review full report at Codecov.
|
LOGGER = logging.getLogger(__name__) | ||
|
||
|
||
class AuthenticationFailedError(Exception): | ||
pass | ||
|
||
|
||
class InvalidRegistrationCredentialsError(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would simply InvalidCredentialsError
make more sense?
def try_set_island_to_no_password(self): | ||
requests.patch( # noqa: DUO123 | ||
self.addr + "api/environment", json={"server_config": "standard"}, verify=False | ||
def try_set_island_to_credentials(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function name doesn't make a lot of sense. How about try_log_in_to_island()
or try_island_login()
?
@@ -117,6 +125,5 @@ def delete(self, url): | |||
self.addr + url, headers=self.get_jwt_header(), verify=False | |||
) | |||
|
|||
@_Decorators.refresh_jwt_token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing this?
What does this PR do?
Fixes part of #1418 .
Add any further explanations here.
PR Checklist
Testing Checklist
Explain Changes
Are the commit messages enough? If not, elaborate.