message: enabled tests now that a server bug has been fixed
diff: @@ -1007,7 +1007,6 @@ TEST_CASE("app: remote mongo client", "[sync][app]") {
  CHECK(!error);
  });
  -
  dog_collection.delete_many(dog_document2, [&](uint64_t, Optional<app::AppError> error) {
  CHECK(!error);
  });
  @@ -1025,18 +1024,15 @@ TEST_CASE("app: remote mongo client", "[sync][app]") {
  });
  SECTION("insert") {
  -
  bool processed = false;
  ObjectId dog_object_id;
  ObjectId dog2_object_id;
  -// the test is correct, but uncovers a bug upstream so is disabled until we
  -// can run against a patched stitch image: https://jira.mongodb.org/browse/REALMC-5901
  -// dog_collection.insert_one(bad_document,
  -// [&](Optional<ObjectId> object_id, Optional<app::AppError> error) {
  -// CHECK(error);
  -// CHECK(!object_id);
  -// });
  + dog_collection.insert_one(bad_document,
  + [&](Optional<ObjectId> object_id, Optional<app::AppError> error) {
  + CHECK(error);
  + CHECK(!object_id);
  + });
  dog_collection.insert_one(dog_document,
  [&](Optional<ObjectId> object_id, Optional<app::AppError> error) {
  @@ -1307,15 +1303,15 @@ TEST_CASE("app: remote mongo client", "[sync][app]") {
  CHECK(!document);
  processed = true;
  });
  + CHECK(processed);
  + processed = false;
  - // FIXME: Enable once server bug is fixed
  -// dog_collection.find_one_and_update({{"name", "invalid name"}}, {{}}, find_and_modify_options, [&](Optional<bson::BsonDocument> document, Optional<app::AppError> error) {
  -// REQUIRE(error);
  -// CHECK(error->message == "insert not permitted");
  -// CHECK(!document);
  -// processed = true;
  -// });
  -
  + dog_collection.find_one_and_update({{"name", "invalid name"}}, {{}}, find_and_modify_options, [&](Optional<bson::BsonDocument> document, Optional<app::AppError> error) {
  + REQUIRE(error);
  + CHECK(error->message == "insert not permitted");
  + CHECK(!document);
  + processed = true;
  + });
  CHECK(processed);
  }
  