Add test for installing OpenCAS from RPM package#391
Add test for installing OpenCAS from RPM package#391Ostrokrzew wants to merge 8 commits intoOpen-CAS:masterfrom
Conversation
|
Hello @Ostrokrzew! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-14 13:52:24 UTC |
547e1a2 to
61f062b
Compare
db16c41 to
2c94637
Compare
|
retest this please |
b1d5521 to
cb7b117
Compare
4440dd5 to
4d6e523
Compare
|
retest this please |
c6b3086 to
3b7448a
Compare
8ed9d93 to
c984623
Compare
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Remove unused imports from `installer` module. Create class from `installer` with static methods. Wrap `_rsync_opencas`. Add timeout to `_rsync_opencas`. Extract checking if `casadm` works. Remove checking if CAS is installed from `uninstall_opencas` method. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
`RpmInstaller` overwrites few methods to handle RPM functionality. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Add parsing new CLI flag `--rpm-install` to inform framework that user want to install OpenCAS not from sources (default), but from RPM packages. Additionaly user can pass in config file own path to ready-to-install RPM packages. Extend `Opencas` class with field `rpm_dir`. Use new pytest mark in prepare stage. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
010de0b to
728316e
Compare
| TestRun.LOGGER.info("Check if 'casadm' is properly installed.") | ||
| output = TestRun.executor.run("casadm -V") | ||
| if output.exit_code != 0: | ||
| return False | ||
| else: | ||
| TestRun.LOGGER.info(output.stdout) | ||
| return True |
There was a problem hiding this comment.
'which casadm' does the job, and we don't need output from casadm here
| installer.reinstall_opencas() | ||
| elif not installer.check_if_installed(): | ||
| installer.rsync_opencas_sources() | ||
| elif not opencas_installed and not uninstall_cas: |
There was a problem hiding this comment.
uninstall_cas is always False here
| if opencas_installed: | ||
| RpmInstaller.uninstall_opencas() | ||
| elif get_force_param(item) and not TestRun.usr.already_updated: | ||
| installer.reinstall_opencas() |
There was a problem hiding this comment.
If RPM is installed and we want to reinstall from sources then installer.reinstall_opencas() will try to remove only source-based installation (and fail), and then will try to install from sources although RPM would still be installed.
|
Can one of the admins verify this patch? |
|
Remove kedr test and update test for rpm installer |
Needs https://github.com/Open-CAS/test-framework/pull/166