Skip to content
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

Closed

Conversation

kneth
Copy link
Contributor

@kneth kneth commented Mar 31, 2021

Adding MongoDB Realm apps for each support type of partition value.

The tests should be refactored to avoid code duplication.

@kneth kneth requested review from fronck and steffenagger March 31, 2021 11:28
@kneth kneth self-assigned this Mar 31, 2021
Copy link

@fronck fronck left a 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.

Comment on lines +76 to +78
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}")
Copy link

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.

Copy link
Contributor

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.

Copy link

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",
Copy link

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?

Copy link
Contributor

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",
Copy link

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",
Copy link

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",
Copy link

Choose a reason for hiding this comment

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

[Question] app_id

@kneth
Copy link
Contributor Author

kneth commented Apr 9, 2021

Moved to #3677

@kneth kneth closed this Apr 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants