Restore embedded MongoDb tests
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import org.bson.Document;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.test.StepVerifier;
|
||||
@@ -43,8 +42,8 @@ import static org.awaitility.Awaitility.await;
|
||||
*/
|
||||
@SpringBootTest(properties = {
|
||||
"spring.data.mongodb.port=0",
|
||||
"mongodb.consumer.collection=testing" })
|
||||
@Disabled
|
||||
"mongodb.consumer.collection=testing",
|
||||
"spring.mongodb.embedded.version=latest" })
|
||||
class MongoDbConsumerApplicationTests {
|
||||
|
||||
@Autowired
|
||||
@@ -57,7 +56,6 @@ class MongoDbConsumerApplicationTests {
|
||||
private ReactiveMongoTemplate mongoTemplate;
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
void testMongodbConsumer() {
|
||||
Map<String, String> data1 = new HashMap<>();
|
||||
data1.put("foo", "bar");
|
||||
|
||||
@@ -19,7 +19,6 @@ package org.springframework.cloud.fn.aggregator;
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.test.StepVerifier;
|
||||
@@ -41,9 +40,9 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
"aggregator.release=!messages.?[payload == 'bar'].empty",
|
||||
"aggregator.aggregation=#this.?[payload == 'foo'].![payload]",
|
||||
"aggregator.messageStoreType=mongodb",
|
||||
"aggregator.message-store-entity=aggregatorTest" })
|
||||
"aggregator.message-store-entity=aggregatorTest",
|
||||
"spring.mongodb.embedded.version=latest" })
|
||||
@AutoConfigureDataMongo
|
||||
@Disabled
|
||||
public class CustomPropsAndMongoMessageStoreAggregatorTests extends AbstractAggregatorFunctionTests {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -43,9 +43,9 @@ import static org.assertj.core.api.Assertions.entry;
|
||||
"spring.data.mongodb.port=0",
|
||||
"mongodb.supplier.collection=testing",
|
||||
"mongodb.supplier.query={ name: { $exists: true }}",
|
||||
"mongodb.supplier.update-expression='{ $unset: { name: 0 } }'"
|
||||
"mongodb.supplier.update-expression='{ $unset: { name: 0 } }'",
|
||||
"spring.mongodb.embedded.version=latest"
|
||||
})
|
||||
@Disabled
|
||||
class MongodbSupplierApplicationTests {
|
||||
|
||||
private ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
Reference in New Issue
Block a user