Use stable/train for trovestack pip constraints

- Use stable/train branch for python-troveclient
- Fix the log publish related test cases

Change-Id: I4c08fe8b90e4b2879eb937aebc9d53789698f58d
This commit is contained in:
Lingxian Kong 2019-12-19 13:24:32 +13:00
parent 09e3a53737
commit 38b6f5ef70
3 changed files with 6 additions and 10 deletions

View File

@ -1 +1 @@
git+https://opendev.org/openstack/python-troveclient#egg=python-troveclient
git+https://opendev.org/openstack/python-troveclient@stable/train#egg=python-troveclient

View File

@ -122,11 +122,7 @@ deps =
[testenv:trovestack]
basepython = python3
skip_install = True
changedir = {toxinidir}/integration/scripts
passenv = *
commands =
pip install --no-binary :all: {toxinidir} \
-c/opt/stack/trove/test-upper-constraints.txt \
-chttps://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
./trovestack {posargs}

View File

@ -727,9 +727,9 @@ class GuestLogRunner(TestRunner):
self.admin_client,
log_name,
expected_type=guest_log.LogType.SYS.name,
expected_status=guest_log.LogStatus.Partial.name,
expected_published=1, expected_pending=1,
is_admin=True)
expected_status=[guest_log.LogStatus.Published.name,
guest_log.LogStatus.Partial.name],
expected_published=1, is_admin=True)
def run_test_log_publish_again_sys(self):
log_name = self._get_unexposed_sys_log_name()
@ -737,9 +737,9 @@ class GuestLogRunner(TestRunner):
self.admin_client,
log_name,
expected_type=guest_log.LogType.SYS.name,
expected_status=guest_log.LogStatus.Partial.name,
expected_status=[guest_log.LogStatus.Published.name,
guest_log.LogStatus.Partial.name],
expected_published=self._get_last_log_published(log_name) + 1,
expected_pending=1,
is_admin=True)
def run_test_log_generator_sys(self):