-
Notifications
You must be signed in to change notification settings - Fork 23
chore: adds DataSystem and FDv2 contract test service functionality #341
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
5 commits
Select commit
Hold shift + click to select a range
cf3cba4
chore: adds DataSystem and FDv2 contract test service functionality
tanderson-ld 52122e8
Merge branch 'main' into ta/SDK-1823/fdv2-contract-tests
tanderson-ld bd911c0
removing more fdv2 suppressions
tanderson-ld 7b4efaf
Merge branch 'main' into ta/SDK-1823/fdv2-contract-tests
tanderson-ld d954bbf
addressing review comments
tanderson-ld 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| TEST_HARNESS_PARAMS= -skip "events/disabling" -status-timeout 60 | ||
| # can add temporary test skips etc. here | ||
| # Currently we are skipping the "events/disabling" tests because the Android SDK has no way to | ||
| # disable events. That wasn't an issue earlier because the "events/disabling" tests were getting | ||
| # automatically skipped by sdk-test-harness for a different reason: they rely on the | ||
| # ServiceEndpoints API, which the Android SDK didn't previously support. | ||
| SUPPRESSION_FILE=testharness-suppressions.txt | ||
| SUPPRESSION_FILE_FDV2=testharness-suppressions-fdv2.txt | ||
|
|
||
| TEST_HARNESS_PARAMS_V2= -status-timeout 60 | ||
| TEST_HARNESS_PARAMS_V3= -status-timeout 60 | ||
|
|
||
| build-contract-tests: | ||
| @cd contract-tests && ../gradlew --no-daemon -s assembleDebug -PdisablePreDex | ||
|
|
@@ -14,10 +13,24 @@ start-emulator: | |
| start-contract-test-service: | ||
| @scripts/start-test-service.sh | ||
|
|
||
| # Note that only the last version of the tests have the stop-service-at-end flag set, so the contract test service will be stopped after the tests are run. | ||
| run-contract-tests: | ||
| @echo "Running SDK contract test v2..." | ||
| @curl $${GITHUB_TOKEN:+ -H "Authorization: Token $${GITHUB_TOKEN}"} \ | ||
| -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/main/downloader/run.sh \ | ||
| | VERSION=v2 PARAMS="-url http://localhost:8001 -host 10.0.2.2 -skip-from testharness-suppressions.txt -debug $(TEST_HARNESS_PARAMS)" sh | ||
| -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/v2/downloader/run.sh \ | ||
| | VERSION=v2 PARAMS="-url http://localhost:8001 -host 10.0.2.2 -debug -stop-service-at-end -skip-from $(SUPPRESSION_FILE) $(TEST_HARNESS_PARAMS_V2)" sh | ||
|
Contributor
Author
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. For reviewers: The above block will be deleted and replaced with the below block after the below block is uncommented in a future PR. |
||
|
|
||
| # Uncomment this, update v3 version, and replace existing run-contract-tests once sdk-test-harness releases a version that includes FDv2 client contract tests. | ||
| # | ||
| # run-contract-tests: | ||
| # @echo "Running SDK contract test v2..." | ||
| # @curl $${GITHUB_TOKEN:+ -H "Authorization: Token $${GITHUB_TOKEN}"} \ | ||
| # -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/v2/downloader/run.sh \ | ||
| # | VERSION=v2 PARAMS="-url http://localhost:8001 -host 10.0.2.2 -debug -skip-from $(SUPPRESSION_FILE) $(TEST_HARNESS_PARAMS_V2)" sh | ||
| # @echo "Running SDK contract test v3..." | ||
| # @curl $${GITHUB_TOKEN:+ -H "Authorization: Token $${GITHUB_TOKEN}"} \ | ||
| # -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/v3.0.0-alpha.4/downloader/run.sh \ | ||
| # | VERSION=v3.0.0-alpha.4 PARAMS="-url http://localhost:8001 -host 10.0.2.2 -debug -stop-service-at-end -skip-from $(SUPPRESSION_FILE_FDV2) $(TEST_HARNESS_PARAMS_V3)" sh | ||
|
|
||
| contract-tests: build-contract-tests start-emulator start-contract-test-service run-contract-tests | ||
|
|
||
|
|
||
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| streaming/fdv2/fallback to FDv1 handling |
Oops, something went wrong.
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.
"events/disabling" was skipped, but it is supported and has been for some time. I have updated it to not skip this.