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

Zoo: Change island to use credentials #1452

Merged
merged 1 commit into from
Sep 6, 2021
Merged

Conversation

ilija-lazoroski
Copy link
Contributor

What does this PR do?

Fixes part of #1418 .

Add any further explanations here.

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?

Testing Checklist

  • Added relevant unit tests?
  • Have you successfully tested your changes locally? Elaborate:

    Tested by {Running the Monkey locally with relevant config/running Island/...}

  • If applicable, add screenshots or log transcripts of the feature working

Explain Changes

Are the commit messages enough? If not, elaborate.

@codecov
Copy link

codecov bot commented Sep 6, 2021

Codecov Report

Merging #1452 (1e5d490) into develop (473fe36) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 473fe36...1e5d490. Read the comment docs.

@VakarisZ VakarisZ merged commit 57908b9 into develop Sep 6, 2021
@VakarisZ VakarisZ deleted the 1418/bb-to-use-credentials branch September 6, 2021 07:28
LOGGER = logging.getLogger(__name__)


class AuthenticationFailedError(Exception):
pass


class InvalidRegistrationCredentialsError(Exception):
Copy link
Contributor

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):
Copy link
Contributor

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
Copy link
Contributor

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?

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.

3 participants