Skip to content

Conversation

lahirumaramba
Copy link
Member

@lahirumaramba lahirumaramba commented Dec 10, 2020

  • Add Remote Config Integration tests

Note: Added release:stage to trigger integration tests

Related to: #446

@lahirumaramba lahirumaramba added the release:stage Stage a release candidate label Dec 10, 2020
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

LGTM with some suggestions.

}

@Test
public void testListVersions() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest using the sync APIs here like the previous test case.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to use the sync api

}

@Test
public void testTemplateOperations() throws FirebaseRemoteConfigException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Some of these can be split into separate test case with a bit of effort and extra RPCs (I'll leave it to you to decide whether that's worth it)

  1. validate can be easily turned into a separate test case
  2. getAtVersion and rollback can also be made into separate test cases if we are willing to run a few extra get and publish operations.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point! As discussed offline let's address this in a future PR. Thanks!

@lahirumaramba lahirumaramba merged commit 03b9f3d into remote-config Dec 11, 2020
@lahirumaramba lahirumaramba deleted the lm-rc-integration branch December 11, 2020 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants