Skip to content

Some Minor Fixes to Integration Tests #47

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

Merged
merged 1 commit into from
Jul 10, 2017
Merged

Some Minor Fixes to Integration Tests #47

merged 1 commit into from
Jul 10, 2017

Conversation

hiranya911
Copy link
Contributor

  • Custom tokens minted by the auth modules are binary typed (i.e. str in Python 2.x and bytes in Python 3.x). Therefore in Python 3.x they need to be decoded before they can be put into a JSON structure. This was causing a test failure in Python 3.x (see Fix Integration Tests for Python 3.x #37). This patch fixes it.
  • The db integration test was only updating the security rules for a specific child node (_adminsdk). But as it turns out, in Firebase RTDB shallow rules take precedence. This means if there's already a shallow rule configured in the target database, the integration tests can fail (see Fix Rule Set Up in Integration Tests #45). This patch fixes it by overwriting the entire rules configuration in the test fixture.

@hiranya911 hiranya911 assigned hiranya911 and unassigned bjornick Jul 10, 2017
@hiranya911 hiranya911 merged commit 9f32b8a into master Jul 10, 2017
@hiranya911 hiranya911 deleted the hkj-fix-test branch July 10, 2017 18:43
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