diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2019-06-12 20:35:29 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2019-08-25 23:11:54 +1200 |
commit | dfa5ce93d5f7caa49950d4565bab12fe2dc56ffb (patch) | |
tree | 43cab6ca3da72c55d4d1975c7d46d95b4432a106 /integration/tests | |
parent | c247e4842eb424214da55ca751535d107d87ceab (diff) | |
download | trove-dfa5ce93d5f7caa49950d4565bab12fe2dc56ffb.tar.gz |
Improve devmode=flase when building the image
During debugging, the following changes are also included:
- Support to specify an image ID to run the integration test.
- Fix the reboot function bug.
- Remove the unsuccessful restart test.
How to run integration test with dev_mode=false:
ADMIN_PASSWORD=password \
SERVICE_PASSWORD=password \
DEV_MODE=false \
/opt/stack/trove/integration/scripts/trovestack gate-tests mysql mysql
Change-Id: I31d4ee579a554f4c98f9facb9fd4b7779665a3dd
Diffstat (limited to 'integration/tests')
-rw-r--r-- | integration/tests/integration/int_tests.py | 1 | ||||
-rw-r--r-- | integration/tests/integration/tests/api/instances_quotas.py | 47 |
2 files changed, 0 insertions, 48 deletions
diff --git a/integration/tests/integration/int_tests.py b/integration/tests/integration/int_tests.py index de5417ef..d988b723 100644 --- a/integration/tests/integration/int_tests.py +++ b/integration/tests/integration/int_tests.py @@ -125,7 +125,6 @@ def import_tests(): if not ADD_DOMAINS: from tests.api import delete_all from tests.api import instances_pagination - from tests.api import instances_quotas from tests.api import instances_states from tests.dns import dns from tests import initialize diff --git a/integration/tests/integration/tests/api/instances_quotas.py b/integration/tests/integration/tests/api/instances_quotas.py deleted file mode 100644 index 3a1c2de6..00000000 --- a/integration/tests/integration/tests/api/instances_quotas.py +++ /dev/null @@ -1,47 +0,0 @@ -from proboscis import before_class -from proboscis import test -from proboscis.asserts import assert_raises - -from troveclient.compat import exceptions -from trove.tests.config import CONFIG -from trove.tests.util import create_client - - -@test(groups=['dbaas.api.instances.quotas']) -class InstanceQuotas(object): - - created_instances = [] - - @before_class - def setup(self): - self.client = create_client(is_admin=False) - - @test - def test_too_many_instances(self): - self.created_instances = [] - if 'trove_max_instances_per_user' in CONFIG.values: - too_many = CONFIG.values['trove_max_instances_per_user'] - already_there = len(self.client.instances.list()) - flavor = 1 - for i in range(too_many - already_there): - response = self.client.instances.create('too_many_%d' % i, - flavor, - {'size': 1}) - self.created_instances.append(response) - # This one better fail, because we just reached our quota. - assert_raises(exceptions.OverLimit, - self.client.instances.create, - "too_many", flavor, - {'size': 1}) - - @test(runs_after=[test_too_many_instances]) - def delete_excessive_entries(self): - # Delete all the instances called too_many*. - for id in self.created_instances: - while True: - try: - self.client.instances.delete(id) - except exceptions.UnprocessableEntity: - continue - except exceptions.NotFound: - break |