-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add tests of support types of partition values #3671
Conversation
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 have a request that we be able to change the local port that is forwarded til Docker. Since we're changing test.sh
et. al. anyway. LMK if it's out of scope.
docker run $DOCKER_VOLUMES -p 9090:9090 -it "docker.pkg.github.com/realm/ci/mongodb-realm-test-server:${MDBREALM_TEST_SERVER_TAG}" | ||
else | ||
STITCH_DOCKER_ID=$(docker run -d $BACKGROUND_FLAG -v "${SRCROOT}/tests/mongodb:/apps/os-integration-tests" -p 9090:9090 -it "docker.pkg.github.com/realm/ci/mongodb-realm-test-server:${MDBREALM_TEST_SERVER_TAG}") | ||
STITCH_DOCKER_ID=$(docker run -d $BACKGROUND_FLAG $DOCKER_VOLUMES -p 9090:9090 -it "docker.pkg.github.com/realm/ci/mongodb-realm-test-server:${MDBREALM_TEST_SERVER_TAG}") |
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.
[Suggestion] I'd actually really like it if we can introduce an env variable that changes the local port we forward to the Docker image (e.g., MONGODB_REALM_PORT=9091).
makeAppConfig()
seems to support this already using process.env.MONGODB_REALM_PORT
.
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 support the suggestion, but for testing on iOS/Android the task becomes less trivial, as the port would have to be passed to the test-app & Android need to have the port reversed. So I think out of scope, just now.
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.
There's other places in the script files that we provide a default if the environment variable isn't set, though.
@@ -0,0 +1,14 @@ | |||
{ | |||
"app_id": "pv-int-tests-lmuyx", |
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.
[Question] Is it safe to hard-code App IDs? Aren't they randomly generated when Docker starts the image?
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.
These ids are overridden on each run (I think we're awaiting an update, where this won't happen).
I think we should see this solution as temporary.
@@ -0,0 +1,14 @@ | |||
{ | |||
"app_id": "pv-objectid-tests-zedts", |
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.
[Question] Same as for gcm/config.json
@@ -0,0 +1,14 @@ | |||
{ | |||
"app_id": "pv-string-tests-bfnat", |
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.
[Question} Flagging app_id
, just in case.
@@ -0,0 +1,14 @@ | |||
{ | |||
"app_id": "pv-uuid-tests-axhms", |
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.
[Question] app_id
Moved to #3677 |
Adding MongoDB Realm apps for each support type of partition value.
The tests should be refactored to avoid code duplication.