Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
dec56fb
Initial work on test suite for providers:
rtnpro Mar 29, 2016
dd8b006
Added functional tests for wordpress atomicapp on k8s.
rtnpro Mar 29, 2016
2adaa24
Added README for functional tests.
rtnpro Mar 29, 2016
96251ba
Added functional test suite for Docker provider.
rtnpro Apr 8, 2016
6d3b94b
Added setup code for openshift, kubernetes for functional tests.
rtnpro Aug 18, 2016
6f23e06
Updated base suite for functional test to setup providers
rtnpro Aug 18, 2016
172b8f9
Updated/added functional tests for kuberenetes/openshift.
rtnpro Aug 18, 2016
5857fad
Updated README for functional tests.
rtnpro Aug 18, 2016
4a6772c
Assert if wordpress pod goes till ContainerCreating for openshift tests.
rtnpro Aug 24, 2016
7b714b0
Fixed functional tests for openshift.
rtnpro Aug 29, 2016
61512c8
Singe functional test for entire app lifecycle on k8s.
rtnpro Aug 29, 2016
b8e26d2
Added default value for nulecule library path for functional tests.
rtnpro Aug 29, 2016
017ab62
Download kubectl binary if missing during functional tests.
rtnpro Aug 30, 2016
e412343
Fix SSL error when accessing openshift API during functional tests.
rtnpro Aug 30, 2016
2c9f418
Move functional tests to tests/functional dir.
rtnpro Aug 31, 2016
9a58a13
Allow running functional tests from make file.
rtnpro Aug 31, 2016
70f6117
Simplify k8s cleanup and wait calls for k8s functional tests.
rtnpro Sep 7, 2016
04137f6
Added helper scripts to setup env for running functional tests.
rtnpro Sep 7, 2016
9d9e8a6
Use atomic CLI for functional tests.
rtnpro Sep 22, 2016
5974a24
Build atomic app base and app image to run functional tests on.
rtnpro Sep 27, 2016
71ef41e
Separate fetching answers data from openshift and creating project
rtnpro Sep 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ test:
pip install -qr test-requirements.txt
$(PYTHON) -m pytest tests/units/ -vv --cov atomicapp

.PHONY: functional-test
functional-test:
pip install -qr requirements.txt
pip install -qr test-requirements.txt
./tests/functional/scripts/atomic.sh install
./tests/functional/scripts/prepare.sh install
$(DOCKER) build -t atomicapp:build .
$(PYTHON) -m pytest tests/functional/ -vv --cov atomicapp

.PHONY: image
image:
$(DOCKER) build -t $(tag) .
Expand Down
2 changes: 2 additions & 0 deletions atomicapp/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
NAMESPACE_SEPARATOR = ":"
REQUIREMENTS_KEY = "requirements"

K8S_VERSION = '1.3.5'

# Nulecule spec terminology vs the function within /providers
REQUIREMENT_FUNCTIONS = {
"persistentVolume": "persistent_storage"
Expand Down
14 changes: 14 additions & 0 deletions tests/functional/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## System tests for atomicapp

### Usage
From root directory of ``atomicapp`` repo, do:

```
sudo NULECULE_LIB=<path to nulecule-library> py.test tests/system
```

To test individual provider, you can do the following:

```
sudo NULECULE_LIB=<path to nulecule-library> py.test tests/system/test_<provider name>_provider.py
```
Empty file added tests/functional/__init__.py
Empty file.
Loading