Merge charm-rsyslog-forwarder-ha:test_updates into charm-rsyslog-forwarder-ha:master

Proposed by Xav Paice
Status: Merged
Approved by: James Troup
Approved revision: 2f3d1a3170c9a1dce352a671147e8ad9053d24f9
Merged at revision: 5814822dd40da6890425c40bf6d0964052825b26
Proposed branch: charm-rsyslog-forwarder-ha:test_updates
Merge into: charm-rsyslog-forwarder-ha:master
Diff against target: 78 lines (+17/-4)
5 files modified
Makefile (+2/-2)
tests/functional/requirements.txt (+1/-0)
tests/functional/tests/tests.yaml (+2/-1)
tests/unit/requirements.txt (+1/-0)
tox.ini (+11/-1)
Reviewer Review Type Date Requested Status
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
BootStack Reviewers Pending
BootStack Reviewers Pending
Review via email: mp+414778@code.launchpad.net

Commit message

Updates for functional and unit tests

To post a comment you must log in.
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 5814822dd40da6890425c40bf6d0964052825b26

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/Makefile b/Makefile
2index 7e1e684..f90149b 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -38,7 +38,7 @@ submodules-update:
6 @echo "Pulling latest updates for submodules"
7 @git submodule update --init --recursive --remote --merge
8
9-build:
10+build: submodules
11 @echo "Building charm to base directory ${CHARM_BUILD_DIR}/${CHARM_NAME}"
12 @-git rev-parse --abbrev-ref HEAD > ./repo-info
13 @-git describe --always > ./version
14@@ -60,7 +60,7 @@ proof:
15 @echo "Running charm proof"
16 @-charm proof
17
18-unittests:
19+unittests: submodules
20 @echo "Running unit tests"
21 @tox -e unit
22
23diff --git a/tests/functional/requirements.txt b/tests/functional/requirements.txt
24index dd46e3c..1c85ef1 100644
25--- a/tests/functional/requirements.txt
26+++ b/tests/functional/requirements.txt
27@@ -1,2 +1,3 @@
28 # Functional test requirements
29 git+https://github.com/openstack-charmers/zaza.git#egg=zaza
30+python-openstackclient
31diff --git a/tests/functional/tests/tests.yaml b/tests/functional/tests/tests.yaml
32index de5c1ff..3c16010 100644
33--- a/tests/functional/tests/tests.yaml
34+++ b/tests/functional/tests/tests.yaml
35@@ -13,4 +13,5 @@ target_deploy_status:
36 rsyslog-forwarder-ha:
37 workload-status: unknown
38 workload-status-message: ''
39-
40+ syslog-source:
41+ workload-status-message: ''
42diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt
43index ff80f62..f5436d2 100644
44--- a/tests/unit/requirements.txt
45+++ b/tests/unit/requirements.txt
46@@ -4,3 +4,4 @@ PyYAML==3.10
47 SQLAlchemy==0.9.4
48 mock==1.0.1
49 six
50+charmhelpers
51diff --git a/tox.ini b/tox.ini
52index 2a46e3c..7848956 100644
53--- a/tox.ini
54+++ b/tox.ini
55@@ -19,6 +19,16 @@ passenv =
56 HTTP_PROXY
57 HTTPS_PROXY
58 NO_PROXY
59+ OS_REGION_NAME
60+ OS_AUTH_VERSION
61+ OS_AUTH_URL
62+ OS_PROJECT_DOMAIN_NAME
63+ OS_USERNAME
64+ OS_PASSWORD
65+ OS_PROJECT_ID
66+ OS_USER_DOMAIN_NAME
67+ OS_PROJECT_NAME
68+ OS_IDENTITY_API_VERSION
69 SNAP_HTTP_PROXY
70 SNAP_HTTPS_PROXY
71
72@@ -64,5 +74,5 @@ deps = -r{toxinidir}/tests/unit/requirements.txt
73
74 [testenv:func]
75 changedir = {toxinidir}/tests/functional
76-commands = functest-run-suite {posargs}
77+commands = functest-run-suite --keep-faulty-model {posargs}
78 deps = -r{toxinidir}/tests/functional/requirements.txt

Subscribers

No one subscribed via source and target branches