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] cache checks for string 'uuid' not org's uuid #123

Merged
merged 1 commit into from Jul 3, 2020

Conversation

atb00ker
Copy link
Member

@atb00ker atb00ker commented Jul 2, 2020

No description provided.

@atb00ker atb00ker changed the title [fix] cache checks for string 'uuid' not org's uuid [WIP][fix] cache checks for string 'uuid' not org's uuid Jul 2, 2020
@coveralls
Copy link

coveralls commented Jul 2, 2020

Pull Request Test Coverage Report for Build 353

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 99.183%

Totals Coverage Status
Change from base Build 348: 0.05%
Covered Lines: 1942
Relevant Lines: 1958

💛 - Coveralls

Comment on lines +1446 to +1451
with self.subTest('Force changed corrupt cache returns 403'):
cache.set(rad.organization.pk, 'wrong-value')
response = self.client.post(
post_url, {'username': 'tester', 'password': 'tester'}
)
self.assertEqual(response.status_code, 403)
Copy link
Member Author

Choose a reason for hiding this comment

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

Added a new testcase to make testing of the cache more robust.
If the value of cache is not as expected (here forcefullly changed), then it returns 403; this test would have reported the problem solved in this issue.

@atb00ker atb00ker changed the title [WIP][fix] cache checks for string 'uuid' not org's uuid [fix] cache checks for string 'uuid' not org's uuid Jul 2, 2020
@atb00ker atb00ker added this to In progress in [GSoC20] Merge modules via automation Jul 2, 2020
@atb00ker atb00ker added the bug Something isn't working label Jul 2, 2020
@atb00ker atb00ker self-assigned this Jul 2, 2020
@atb00ker atb00ker moved this from In progress to Open Pull-Requests in [GSoC20] Merge modules Jul 2, 2020
@atb00ker atb00ker moved this from Open Pull-Requests to Ready for review in [GSoC20] Merge modules Jul 2, 2020
@nemesifier nemesifier merged commit 6a24d30 into openwisp:master Jul 3, 2020
[GSoC20] Merge modules automation moved this from Ready for review to Done Jul 3, 2020
@atb00ker atb00ker deleted the cache-typo-fix branch July 3, 2020 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants