All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.debezium.testing.testcontainers.MongoDbDeployment Maven / Gradle / Ivy

The newest version!
/*
 * Copyright Debezium Authors.
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.debezium.testing.testcontainers;

import org.testcontainers.lifecycle.Startable;

/**
 *  A MongoDB deployment with arbitrary topology
 */
public interface MongoDbDeployment extends Startable {

    /**
     * @return the standard connection string
     * for this MongoDB deployment.
     */
    String getConnectionString();

    default String getAuthConnectionString(String username, String password, String authSource) {
        throw new UnsupportedOperationException("Authentication not supported for this deployment type");
    }

    default String getNoAuthConnectionString() {
        throw new UnsupportedOperationException("Authentication not supported for this deployment type");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy