function verifyDBCreatedWithDesignDoc()

in tools/verifyDBMigration/index.js [51:68]


function verifyDBCreatedWithDesignDoc(containerName, letContainerCreateDB) {
    return destroyDBIfNeeded()
        .then(() => {
            if(!letContainerCreateDB) {
                console.log(`Creating DB`);
                return cloudant.db.create(db_name)
            } else {
                console.log(`Letting the container create the DB`);
            }
        })
        .then(() => {
            console.log(`Firing up the docker container`);
            return startDockerContainer(containerName)
        })
        .then(() => {
            return verifyView();
        });
}