mirror of
https://github.com/rancher/os.git
synced 2025-09-17 15:40:47 +00:00
tests container to run in-VM
This commit is contained in:
1
tests/container/README.txt
Normal file
1
tests/container/README.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
RancherOS In-VM Integration Tests
|
6
tests/container/rancheros/invmtest/test_sample.py
Normal file
6
tests/container/rancheros/invmtest/test_sample.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
def func(x):
|
||||||
|
return x + 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_answer():
|
||||||
|
assert func(3) == 4
|
3
tests/container/requirements.txt
Normal file
3
tests/container/requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
flake8==2.4.0
|
||||||
|
pytest==2.7.0
|
||||||
|
tox==1.9.2
|
11
tests/container/setup.py
Normal file
11
tests/container/setup.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='RancherOSInVMTests',
|
||||||
|
version='0.1',
|
||||||
|
packages=[
|
||||||
|
'rancheros.invmtest'
|
||||||
|
],
|
||||||
|
license='ASL 2.0',
|
||||||
|
long_description=open('README.txt').read(),
|
||||||
|
)
|
12
tests/container/tox.ini
Normal file
12
tests/container/tox.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[tox]
|
||||||
|
envlist=flake8, py27
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps=-rrequirements.txt
|
||||||
|
changedir={toxinidir}
|
||||||
|
commands=py.test --durations=20 {posargs}
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
deps=-rrequirements.txt
|
||||||
|
changedir={toxinidir}
|
||||||
|
commands=flake8 rancheros
|
Reference in New Issue
Block a user