-
Notifications
You must be signed in to change notification settings - Fork 627
Parse NO_CHANGE fetch response for template version #4177
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
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d879dea
Parse and store fetch response for NO_CHANGE bug as well
qdpham13 bcc3fe3
Fix test
qdpham13 fe89cbd
Revert change
qdpham13 9993bfa
Format file
qdpham13 1a08ab5
Merge in Realtime rc master branch
qdpham13 9c64716
Format file
qdpham13 0af0de3
Merge branch 'realtime-rc-merge' into realtime-rc-forward-comp
qdpham13 6c2aaa4
Merge in master branch
qdpham13 7c58599
Add comments and update tests
qdpham13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,13 +161,15 @@ public void fetch_newValues_responseSet() throws Exception { | |
} | ||
|
||
@Test | ||
public void fetch_noChange_responseNotSet() throws Exception { | ||
public void fetch_noChange_responseOnlyContainsTemplateVersion() throws Exception { | ||
setServerResponseTo(noChangeResponseBody, SECOND_ETAG); | ||
|
||
FetchResponse response = fetch(SECOND_ETAG); | ||
|
||
assertThat(response.getLastFetchETag()).isNull(); | ||
assertThat(response.getFetchedConfigs()).isNull(); | ||
assertThat(response.getFetchedConfigs()).isNotNull(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe assert it only contains template version? |
||
assertThat(response.getFetchedConfigs().getTemplateVersionNumber()).isNotNull(); | ||
assertThat(response.getFetchedConfigs().getConfigs().length()).isEqualTo(0); | ||
} | ||
|
||
@Test | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I might add a comment that we're including the
fetchConfigs
because they include the template version (even though they don't include the config entries or metadata)