-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Initial driver-kotlin-sync implementation #1090
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
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
70f7694
Initial driver-kotlin-sync implementation
rozza b5d6846
Code review updates
rozza 3c8bdbd
Added UnifiedCrudTest
rozza 5f1e693
Make syncadapter classes internal
rozza 47db59b
Update visibility modifiers for wrapped variables
rozza 7fdcfdf
Simplify ClientSession
rozza d5bb8b5
Remove all remaining @since annotations
rozza d3a8036
Update MongoChangeStreamCursor kdoc
rozza 6e02f84
Updated evergreen display name
rozza 5160319
CrudTest back
rozza 0e6bc56
PR updates - remove nullable & add toList
rozza 95a0fce
Removed deprecated MapReduce support
rozza f9acb10
Kotlin coding convention: Prefer properties for cheap, non throwing f…
rozza 0cda074
Sealed MongoCursor
rozza 0520fc6
Seal MongoChangeStreamCursor
rozza f513ae8
Test the Implementation as that hasw the declared functions
rozza 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -o xtrace # Write all commands first to stderr | ||
| set -o errexit # Exit the script with error if any of the commands fail | ||
|
|
||
|
|
||
| AUTH=${AUTH:-noauth} | ||
| SSL=${SSL:-nossl} | ||
| MONGODB_URI=${MONGODB_URI:-} | ||
| TOPOLOGY=${TOPOLOGY:-standalone} | ||
| SAFE_FOR_MULTI_MONGOS=${SAFE_FOR_MULTI_MONGOS:-} | ||
|
|
||
| ############################################ | ||
| # Main Program # | ||
| ############################################ | ||
| RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE:-$0}")" | ||
| . "${RELATIVE_DIR_PATH}/javaConfig.bash" | ||
|
|
||
|
|
||
| if [ "$SSL" != "nossl" ]; then | ||
| echo -e "\nSSL support not configured for Kotlin tests" | ||
| exit 1 | ||
| fi | ||
|
|
||
| if [ "$AUTH" != "noauth" ]; then | ||
| echo -e "\nAuth support not configured for Kotlin tests" | ||
| exit 1 | ||
| fi | ||
|
|
||
| if [ "$SAFE_FOR_MULTI_MONGOS" == "true" ]; then | ||
| export MULTI_MONGOS_URI_SYSTEM_PROPERTY="-Dorg.mongodb.test.multi.mongos.uri=${MONGODB_URI}" | ||
| fi | ||
|
|
||
| echo "Running Kotlin tests" | ||
|
|
||
| ./gradlew -version | ||
| ./gradlew :driver-kotlin-sync:kCheck -Dorg.mongodb.test.uri=${MONGODB_URI} ${MULTI_MONGOS_URI_SYSTEM_PROPERTY} |
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,15 @@ | ||
| <?xml version='1.0' encoding='UTF-8'?> | ||
rozza marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <SmellBaseline> | ||
| <ManuallySuppressedIssues/> | ||
| <CurrentIssues> | ||
| <ID>IteratorNotThrowingNoSuchElementException:MongoCursor.kt$MongoCursor<T : Any> : IteratorCloseable</ID> | ||
| <ID>LargeClass:MongoCollectionTest.kt$MongoCollectionTest</ID> | ||
| <ID>LongMethod:FindIterableTest.kt$FindIterableTest$@Suppress("DEPRECATION") @Test fun shouldCallTheUnderlyingMethods()</ID> | ||
| <ID>MaxLineLength:MapReduceIterable.kt$MapReduceIterable$*</ID> | ||
| <ID>SwallowedException:MockitoHelper.kt$MockitoHelper.DeepReflectionEqMatcher$e: Throwable</ID> | ||
| <ID>TooManyFunctions:ClientSession.kt$ClientSession : jClientSession</ID> | ||
| <ID>TooManyFunctions:FindIterable.kt$FindIterable<T : Any> : MongoIterable</ID> | ||
| <ID>TooManyFunctions:MongoCollection.kt$MongoCollection<T : Any></ID> | ||
| <ID>TooManyFunctions:MongoDatabase.kt$MongoDatabase</ID> | ||
| </CurrentIssues> | ||
| </SmellBaseline> | ||
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.
Uh oh!
There was an error while loading. Please reload this page.