summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Stankevich <sergey.stankevich@gmail.com>2012-09-09 18:36:30 -0400
committerSergey Stankevich <sergey.stankevich@gmail.com>2012-09-09 18:36:30 -0400
commited137893babebabdfdb5adf44d1a52272093ce8b (patch)
treef611108dc849fe8f4372aac981d7e242d59b957b /tests
Initial import
Diffstat (limited to 'tests')
-rw-r--r--tests/gunicorn.pp14
-rw-r--r--tests/init.pp5
-rw-r--r--tests/pip.pp10
-rw-r--r--tests/requirements.pp10
-rw-r--r--tests/virtualenv.pp12
5 files changed, 51 insertions, 0 deletions
diff --git a/tests/gunicorn.pp b/tests/gunicorn.pp
new file mode 100644
index 0000000..c081fd6
--- /dev/null
+++ b/tests/gunicorn.pp
@@ -0,0 +1,14 @@
+class { 'python':
+ version => 'system',
+ dev => true,
+ virtualenv => true,
+}
+
+python::gunicorn { 'vhost':
+ ensure => present,
+ virtualenv => '/var/www/project1',
+ mode => 'wsgi',
+ dir => '/var/www/project1/current',
+ bind => 'unix:/tmp/gunicorn.socket',
+ environment => 'prod',
+}
diff --git a/tests/init.pp b/tests/init.pp
new file mode 100644
index 0000000..4c51cc8
--- /dev/null
+++ b/tests/init.pp
@@ -0,0 +1,5 @@
+class { 'python':
+ version => 'system',
+ dev => true,
+ virtualenv => true,
+}
diff --git a/tests/pip.pp b/tests/pip.pp
new file mode 100644
index 0000000..f0db172
--- /dev/null
+++ b/tests/pip.pp
@@ -0,0 +1,10 @@
+class { 'python':
+ version => 'system',
+ dev => true,
+ virtualenv => true,
+}
+
+python::pip { 'flask':
+ virtualenv => '/var/www/project1',
+ proxy => 'http://proxy.domain.com:3128',
+}
diff --git a/tests/requirements.pp b/tests/requirements.pp
new file mode 100644
index 0000000..a57093f
--- /dev/null
+++ b/tests/requirements.pp
@@ -0,0 +1,10 @@
+class { 'python':
+ version => 'system',
+ dev => true,
+ virtualenv => true,
+}
+
+python::requirements { '/var/www/project1/requirements.txt':
+ virtualenv => '/var/www/project1',
+ proxy => 'http://proxy.domain.com:3128',
+}
diff --git a/tests/virtualenv.pp b/tests/virtualenv.pp
new file mode 100644
index 0000000..190492c
--- /dev/null
+++ b/tests/virtualenv.pp
@@ -0,0 +1,12 @@
+class { 'python':
+ version => 'system',
+ dev => true,
+ virtualenv => true,
+}
+
+python::virtualenv { '/var/www/project1':
+ ensure => present,
+ version => 'system',
+ requirements => '/var/www/project1/requirements.txt',
+ proxy => 'http://proxy.domain.com:3128',
+}