Change in vdsm[master]: [wip] infra tests: added functional test for upgrading vdsm

2016-08-03 Thread automation
gerrit-hooks has posted comments on this change.

Change subject: [wip] infra tests: added functional test for upgrading vdsm
..


Patch Set 3:

* Update tracker: IGNORE, no Bug-Url found
* Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' 
and is a valid url.
* Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.6', 
'ovirt-4.0'])

-- 
To view, visit https://gerrit.ovirt.org/61186
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I589a73fa5285983f7d1adcdae49fc7bffb05bec4
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Irit Goihman 
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: gerrit-hooks 
Gerrit-HasComments: No
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/vdsm-patches@lists.fedorahosted.org


Change in vdsm[master]: [wip] infra tests: added functional test for upgrading vdsm

2016-07-21 Thread automation
gerrit-hooks has posted comments on this change.

Change subject: [wip] infra tests: added functional test for upgrading vdsm
..


Patch Set 2:

* Update tracker: IGNORE, no Bug-Url found
* Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' 
and is a valid url.
* Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.6', 
'ovirt-4.0'])

-- 
To view, visit https://gerrit.ovirt.org/61186
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I589a73fa5285983f7d1adcdae49fc7bffb05bec4
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Irit Goihman 
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: gerrit-hooks 
Gerrit-HasComments: No
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/vdsm-patches@lists.fedorahosted.org


Change in vdsm[master]: [wip] infra tests: added functional test for upgrading vdsm

2016-07-21 Thread automation
gerrit-hooks has posted comments on this change.

Change subject: [wip] infra tests: added functional test for upgrading vdsm
..


Patch Set 1:

* Update tracker: IGNORE, no Bug-Url found
* Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' 
and is a valid url.
* Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.6', 
'ovirt-4.0'])

-- 
To view, visit https://gerrit.ovirt.org/61186
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I589a73fa5285983f7d1adcdae49fc7bffb05bec4
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Irit Goihman 
Gerrit-Reviewer: gerrit-hooks 
Gerrit-HasComments: No
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/vdsm-patches@lists.fedorahosted.org


Change in vdsm[master]: [wip] infra tests: added functional test for upgrading vdsm

2016-07-21 Thread igoihman
Irit Goihman has uploaded a new change for review.

Change subject: [wip] infra tests: added functional test for upgrading vdsm
..

[wip] infra tests: added functional test for upgrading vdsm

Change-Id: I589a73fa5285983f7d1adcdae49fc7bffb05bec4
Signed-off-by: Irit Goihman 
---
M automation/check-merged.sh
A tests/functional/upgrade_vdsm_test.py
2 files changed, 52 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/86/61186/1

diff --git a/automation/check-merged.sh b/automation/check-merged.sh
index 6869d49..b39ec99 100755
--- a/automation/check-merged.sh
+++ b/automation/check-merged.sh
@@ -4,7 +4,8 @@
 EXPORTS="$PWD"/exported-artifacts
 TEST_PATH="functional"
 FUNCTIONAL_TESTS_LIST=" \
-$TEST_PATH/supervdsmFuncTests.py"
+$TEST_PATH/supervdsmFuncTests.py \
+$TEST_PATH/upgrade_vdsm_test.py"
 
 DISABLE_TESTS_LIST=" \
 $TEST_PATH/sosPluginTests.py \
diff --git a/tests/functional/upgrade_vdsm_test.py 
b/tests/functional/upgrade_vdsm_test.py
new file mode 100644
index 000..7da860a
--- /dev/null
+++ b/tests/functional/upgrade_vdsm_test.py
@@ -0,0 +1,50 @@
+import yum
+
+from vdsm.tool.service import service_start, service_status
+
+from testlib import VdsmTestCase
+from testValidation import ValidateRunningAsRoot
+
+_url = 'http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm'
+
+
+def _install(yb, package):
+yb.install(name=package)
+yb.processTransaction()
+
+
+def _remove(yb, package):
+yb.remove(name=package)
+yb.processTransaction()
+
+
+def _update(yb, package):
+yb.update(name=package)
+yb.processTransaction()
+
+
+def _installLocal(yb, pkg):
+yb.installLocal(pkg=pkg)
+yb.processTransaction()
+
+
+class UpgradeTest(VdsmTestCase):
+def __init__(self):
+self.yum_base = yum.YumBase()
+self.yum_base.setCacheDir()
+
+@ValidateRunningAsRoot
+def setUp(self):
+_remove(self.yum_base, 'vdsm')
+self.yum_base.repos.disableRepo('ovirt-snapshot')
+_installLocal(self.yum_base, _url)
+_install(self.yum_base, 'vdsm')
+service_start('vdsmd')
+
+def tearDown(self):
+service_start('vdsmd')
+
+def upgrade_test(self):
+self.yum_base.repos.enableRepo('ovirt-snapshot')
+_update(self.yum_base, 'vdsm')
+self.assertEqual(service_status('vdsmd'), 0)


-- 
To view, visit https://gerrit.ovirt.org/61186
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I589a73fa5285983f7d1adcdae49fc7bffb05bec4
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Irit Goihman 
___
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/vdsm-patches@lists.fedorahosted.org