Skip to content

Instantly share code, notes, and snippets.

vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7f7a1d49e410>, <nose.plugins.logcapture.LogCapture object at 0x7f7a1d49e450>, <nose.plugins.deprecated.Deprecated object at 0x7f7a1d49e850>, <nose.plugins.skip.Skip object at 0
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported --stop
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported --stop
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported', '--stop']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7f7e90525c50>, <nose.plugins.logcapture.LogCapture object at 0x7f7e90525c90>, <nose.plugins.deprecated.Deprecated object at 0x7f7e904c00d0>, <nose.plugin
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7f63be67a3d0>, <nose.plugins.logcapture.LogCapture object at 0x7f63be67a410>, <nose.plugins.deprecated.Deprecated object at 0x7f63be67a810>, <nose.plugins.skip.Skip object at 0x
diff --git a/trove/tests/scenario/helpers/couchdb_helper.py b/trove/tests/scenario/helpers/couchdb_helper.py
index 503bd16..ceaa8b4 100644
--- a/trove/tests/scenario/helpers/couchdb_helper.py
+++ b/trove/tests/scenario/helpers/couchdb_helper.py
@@ -28,7 +28,13 @@ class CouchdbHelper(TestHelper):
self.database = 'foodb'
def create_client(self, host, *args, **kwargs):
- url = 'http://' + host + ':5984/'
+ username = kwargs.get("username")
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7ff74c5ef3d0>, <nose.plugins.logcapture.LogCapture object at 0x7ff74c5ef410>, <nose.plugins.deprecated.Deprecated object at 0x7ff74c5ef810>, <nose.plugins.skip.Skip object at 0x
DatabaseActionsGroup
Create an instance with initial databases. OK 13.60
Create databases on an existing instance. OK 0.70
List the created databases. FAIL
Ensure creating a database with blank specification fails. OK 0.12
Ensure creating a database with blank name fails. OK 0.16
Ensure creating an existing database fails. OK 0.11
Delete the created databases. OK 2.69
Delete non-existing databases. OK 0.80
Ensure creating a system database fails. FAIL
from trove.tests.scenario.helpers.test_helper import TestHelper
class CouchdbHelper(TestHelper):
def __init__(self, expected_override_name):
super(CouchdbHelper, self).__init__(expected_override_name)
def get_helper_credentials(self):
return {'name': 'lite', 'password': 'litepass', 'database': 'firstdb'}
@cp16net
cp16net / Vagrantfile
Created February 2, 2016 22:36
Vagrant file to create MariaDB 10.1 install of 2 instances.
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :machine
end
@cp16net
cp16net / VagrantFile
Created December 29, 2015 07:49
Test VagrantFile for KVM with nested enabled
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
config.vm.define :devstack do |machine|
aioeventlet==0.4
amqp==1.4.6
anyjson==0.3.3
Babel==2.0
beautifulsoup4==4.4.0
cachetools==1.1.0
cliff==1.14.0
cmd2==0.6.8
colorama==0.3.3
contextlib2==0.4.0