Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tino097/vagrant-ckan-package-installer
:sos: CKAN installer and Selenium tests
https://github.com/tino097/vagrant-ckan-package-installer
ckan ckan-packaging selenium vagrant
Last synced: 28 days ago
JSON representation
:sos: CKAN installer and Selenium tests
- Host: GitHub
- URL: https://github.com/tino097/vagrant-ckan-package-installer
- Owner: tino097
- Created: 2018-05-02T17:06:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T18:52:40.000Z (about 3 years ago)
- Last Synced: 2024-10-13T20:42:13.656Z (2 months ago)
- Topics: ckan, ckan-packaging, selenium, vagrant
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vagrant CKAN package installer
This project should speed up testing of the CKAN packages built with
[ckan-packaging](https://github.com/ckan/ckan-packaging).My idea is to create multi-machine Vagrantfile to set up required enviroments:
* Ubuntu 12.04 (Trusty)
* Ubuntu 14.04 (Precise)
* Ubuntu 16.04 (Xenial)and pass CKAN package version as parameter and later to be installed by executing
the provsioning shell script. In future could be used Ansible.
This script should set up CKAN as described in [docs](http://docs.ckan.org/en/latest/maintaining/installing/install-from-package.html)## Usage
When starting the vagrant box, we should provide CKAN version e.g 2.7 as argument and define which box to be started
```bash
$ ver='2.7' vagrant up trusty-ckan
```>NOTE: Use `vagrant destroy` before installing new package on same environment
***# Selenium Tests
As part of the CKAN package installer, selenium tests are added. These tests should
check if the package is sucessfully installed and perform basic tesing of the CKAN instance.To be able to start tests first create virtual environment with
```
$ virtualenv default
```
Install `selenium`:
```
(default)$ pip install selenium
```Download webdirver, for this project im using [Chrome](https://sites.google.com/a/chromium.org/chromedriver/downloads) webdriver
After downloading unzip it to:
```
(default)$ unzip chromedriver_linux64.zip
```
Move the webdriver to `/usr/local/bin`Tests should be started by navigating to `selenium-ckan-testing` folder and install `pytests`
```
(default)$ pip install pytest
(default)$ pytest ckan
```To be continued ...