aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-09 00:05:44 -0700
committerelijah <elijah@riseup.net>2012-10-09 00:05:44 -0700
commit73b126976ad7843eb47a84944cf191bf05b14216 (patch)
tree918656f8d7c637e8c7a8f0c010eff55bfd98ae1b /test
parent578ac2f5dc7432317d7a022bed9d869ab89ee45c (diff)
downloadleap_cli-73b126976ad7843eb47a84944cf191bf05b14216.tar.gz
leap_cli-73b126976ad7843eb47a84944cf191bf05b14216.tar.bz2
fixed paths
Diffstat (limited to 'test')
-rw-r--r--test/default_test.rb14
-rw-r--r--test/provider/common.json11
-rw-r--r--test/provider/files/ca/ca.crt24
-rw-r--r--test/provider/files/ca/ca.key41
-rw-r--r--test/provider/files/public-definitions/provider.json.erb0
-rw-r--r--test/provider/files/vpn1/vpn1.rewire.co.crt26
-rw-r--r--test/provider/files/vpn1/vpn1.rewire.co.key41
-rw-r--r--test/provider/hiera/couch1.rewire.yaml8
-rw-r--r--test/provider/hiera/couch2.rewire.yaml8
-rw-r--r--test/provider/hiera/ns1.rewire.yaml25
-rw-r--r--test/provider/hiera/ns2.rewire.yaml25
-rw-r--r--test/provider/hiera/vpn1.rewire.yaml158
-rw-r--r--test/provider/hiera/web1.rewire.yaml16
-rw-r--r--test/provider/nodes/couch1.json4
-rw-r--r--test/provider/nodes/couch2.json4
-rw-r--r--test/provider/nodes/ns1.json8
-rw-r--r--test/provider/nodes/ns2.json8
-rw-r--r--test/provider/nodes/vpn1.json8
-rw-r--r--test/provider/nodes/web1.json4
-rw-r--r--test/provider/provider.json13
-rw-r--r--test/provider/services/couchdb.json3
-rw-r--r--test/provider/services/dns.json6
-rw-r--r--test/provider/services/openvpn.json11
-rw-r--r--test/provider/services/webapp.json7
-rw-r--r--test/provider/tags/production.json3
-rw-r--r--test/test_helper.rb9
26 files changed, 485 insertions, 0 deletions
diff --git a/test/default_test.rb b/test/default_test.rb
new file mode 100644
index 0000000..c363bbb
--- /dev/null
+++ b/test/default_test.rb
@@ -0,0 +1,14 @@
+require 'test_helper'
+
+class DefaultTest < Test::Unit::TestCase
+
+ def setup
+ end
+
+ def teardown
+ end
+
+ def test_the_truth
+ assert true
+ end
+end
diff --git a/test/provider/common.json b/test/provider/common.json
new file mode 100644
index 0000000..ead9d68
--- /dev/null
+++ b/test/provider/common.json
@@ -0,0 +1,11 @@
+#
+# Options put here are inherited by all nodes.
+#
+{
+ "domain": {
+ "public": "rewire.co",
+ "internal": "rewire"
+ },
+ "public_dns": true,
+ "fqdn": "= name + '.' + (public_dns ? domain_public : domain_internal)"
+}
diff --git a/test/provider/files/ca/ca.crt b/test/provider/files/ca/ca.crt
new file mode 100644
index 0000000..ed12e15
--- /dev/null
+++ b/test/provider/files/ca/ca.crt
@@ -0,0 +1,24 @@
+-----BEGIN CERTIFICATE-----
+MIIECzCCAl2gAwIBAgIEUFDp9TANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU
+RVNUMB4XDTEyMDkxMjIwMDA1M1oXDTEzMDkxMjIwMDA1M1owDzENMAsGA1UEAxME
+VEVTVDCCAbgwDQYJKoZIhvcNAQEBBQADggGlADCCAaACggGXANsoS1m9wj9iv+UV
+BXfeq14SR94gSot96eJu7PZVRrcGlGe/PRfbmfxF3j/gXM9B8sIkyM2L46OMtOKw
+1iOTKtYYdMhtnUSd3FRshWGtYeuy+OCe9umU0jfZDBZ2pXlUmSqCNqfD0OPkksYL
+GDjQUKjaEd1oURwpCG8uEU+3tjBNCMuEwhcMEoUYmI8t4vss2hdFb+LKefVMPTzz
+oiNM/o8Z/ANzWCC0qSW5FsB4wGhUS5HKLDOr4tACgdxaJSWtAqFFAnyMeG9g8aqe
+PTM+URlqVnzzGckrJwBbd4y0zEpv/R7SAiSAP725cnB1GKptwdrcNIIHnQjOdAOl
+uNg6JlRXrv6fV1gApka4INfJAf1yMf+fA0WdZ22UJQ9Up7tdzi8lL+3HsEpEx4Pz
+NyzuqzEw9LJ6SUmMcE/VP00t4RjTOVoncwcLjvURY8jt2DQ9E36JEPwUoyALq/De
+bGBjeK2KGzBZcOu1HZAwWLLWR2++WKuCEXbRbahwSIlbMfmAe8xGx4bbHol0D1A+
+wmu0uxjAze6FvUkCAwEAAaNDMEEwDwYDVR0TAQH/BAUwAwEB/zAPBgNVHQ8BAf8E
+BQMDBwQAMB0GA1UdDgQWBBT/PX8XZ0Y2jDkppz6PHs23IgzQEDANBgkqhkiG9w0B
+AQsFAAOCAZcAMfi+HLbcFaB0/Mv8/GkIdjpThUBVEeFrIiDy9GmGWUDOXgP1Skld
+5H4eY5inE5lFfB69yacHIGS4OiZIBuBKfKNl5d6XO+ztJEJpG3yrbF4MtGV/aHEp
+OlbJCncnk3fspBk6tFGrv4Inak4gza6SQPfBEZj29ciwfwrqrtuWZ7km+og0Clcd
+pIB0g+DK0K//NtaDZDK0havQw2AFJKyXlNfI8XZ2jsNmQYR1wtiMci+UfGQr7bjn
+Kw9yyVCf0ohXvnSK4ortz/bDQbcMWkK0m/VCCEK8PSldk+XFzPWFWn5ndKCczcvd
+1BQc392n12ZstEuzm6+d9A0D3kCxralJUXUC+4kThq4Rtjey/gBjyZQnZ+5tIxMF
+5ZFAStEglNxqm6HB17q7owJqTvIg9Cf9GATsvoFFQDJrBXewRX7cWVeSr0zNSQB4
+ydIlSUOkyE3AyfLN+lx8NVS/I7gp4fWDuHrh27NKKDtMxalxPL5pTGO7l4uTybLY
+4aVzQYGvzA5HVS++VAtcTQ6TP9p4HURL2cllEU9u9A==
+-----END CERTIFICATE-----
diff --git a/test/provider/files/ca/ca.key b/test/provider/files/ca/ca.key
new file mode 100644
index 0000000..9721c35
--- /dev/null
+++ b/test/provider/files/ca/ca.key
@@ -0,0 +1,41 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIHRwIBAAKCAZcA2yhLWb3CP2K/5RUFd96rXhJH3iBKi33p4m7s9lVGtwaUZ789
+F9uZ/EXeP+Bcz0HywiTIzYvjo4y04rDWI5Mq1hh0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CI09pu5wcu1Y4JAqxTtmIv8NMWCSKjZQKBzACtm7UzsHrKC3REfb5YM4oS
+zI5SRWCj+umQrAX5XCjc7O4J0MECSW9pda3x+nei1Ay9EOpdBz+pggJ+ipDVa4qf
+qfZ/NiAknBiB+4UiSNnUcWtK792AbAfD2if98e40rU5zlbkUxnphytyDwueqcKPY
+HGoBRSng3IZyIZR/VCzOwWCpUyLw492D3cVZe1AgeRNhcATiHgIGMUT2zc21Jmh2
+XJn5wohQvUzvnpyll5xlZf6c2EtqMJ9kEwV1Xbwu16aXpXf11Y9iY38EXA==
+-----END RSA PRIVATE KEY-----
diff --git a/test/provider/files/public-definitions/provider.json.erb b/test/provider/files/public-definitions/provider.json.erb
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/provider/files/public-definitions/provider.json.erb
diff --git a/test/provider/files/vpn1/vpn1.rewire.co.crt b/test/provider/files/vpn1/vpn1.rewire.co.crt
new file mode 100644
index 0000000..d2c9734
--- /dev/null
+++ b/test/provider/files/vpn1/vpn1.rewire.co.crt
@@ -0,0 +1,26 @@
+-----BEGIN CERTIFICATE-----
+MIIEWjCCAqygAwIBAgIEUFDqXzANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU
+RVNUMB4XDTEyMDkxMjIwMDIzOVoXDTEzMDkxMjIwMDIzOVowKzEPMA0GA1UEChMG
+eHgub3JnMRgwFgYDVQQDEw9ob3N0bmFtZS54eC5vcmcwggG4MA0GCSqGSIb3DQEB
+AQUAA4IBpQAwggGgAoIBlwCvGqkXry509EWGAqbFUB5nqvsvA3kSIh0prgzaPYCg
+MMst58ZB89eTgiuM+U3jSF7LZr+CuE1DAb4m2U2f8D8IfViwK1yCa5AohG+LCmwe
+4w4bgXtxwEBDac4u23JZ4AKE/EcKMeBbXe2d3o1S3P3XdN1ZVP0DVw04+H8cdh+0
+ggvhAA+9W/NvAQCAffL8sospj9nbl2OhRnrlFAzMWECyEyySPK5TEchU0hnFBRys
+DuYso5klLC6QXf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IFICATE-----
diff --git a/test/provider/files/vpn1/vpn1.rewire.co.key b/test/provider/files/vpn1/vpn1.rewire.co.key
new file mode 100644
index 0000000..3fdf38a
--- /dev/null
+++ b/test/provider/files/vpn1/vpn1.rewire.co.key
@@ -0,0 +1,41 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIHRwIBAAKCAZcArxqpF68udPRFhgKmxVAeZ6r7LwN5EiIdKa4M2j2AoDDLLefG
+QfPXk4IrjPlN40hey2a/grhNQwG+JtlNn/A/CH1YsCtcgmuQKIRviwpsHuMOG4F7
+ccBAQ2nOLttyWeAChPxHCjHgW13tnd6NUtz913TdWVT9A1cNOPh/HHYftIIL4QAP
+vVvzbwEAgH3y/LKLKY/Z25djoUZ65RQMzFhAshMskjyuUxHIVNIZxQUcrA7mLKOZ
+JSwukF30jpAkgjoPVkII6MmAZ3U2MUtxsAZ8MjPuVeEzbXXPj+L5JI/mQQ/UfaDK
+WplLrkUL5Of4SWu4vAGgcu2ZjjvULS9/OujjWunC1Df0HwVJIDOYkuqELV/6isWR
+RWGT2VBgSamr7k/p+BQfF5SMHJ6rpyu6yw/TmcLpmLmZRw7XQLIEPRXds9Onu7A6
+dvI3K5OoJqTmqS6jT7Tx1ThjQOpgmc2uC6JwzDkkCk32+mRF7cvmvH9ooMxK4R75
+sgr0RMrQ3PaSH9my/ks+FC06uthgyn9WN7UYtrhxY4Si0wIDAQABAoIBlgvJw7Bw
+frQo7bVD4G5QInvgKuDTXwc1fLkdmofmtA4UutjwTYyLGew4Sy5GalPuv1L6K9Jl
+De6A44hCANPPnK65oYraoHO3QhE4OTonDXhW2NBJO0JBKxJewR6ub1hVmFXTlgS9
+rtj3zdNe9Cyr6/rhRzWIXzAmYCGBuSz1VtUUHDCdjHG3CwBiFOKRmBYi/vNhV81M
+t8xXrlZVrzbiihhy6gE+TI4TGGV9b3awDWoX5q8CpIC4JLpbWOdwFMUfm4C3GVpy
+lk5gubE/wnXiQyzqEzyHzC3OrNyh/JTbz2XBi+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iQHrhPsUEhki
+60s76/PWF85yieiV1wKBzACauN5UarFGb2r79bezF22QtN3P/8rqgbUGS5OY3Uxc
+M9Jh3SKfzzLCZylHkLpGgHHTEbPUdjsYdBO/JgUOXGVDqmWWG3S6Y7Az7YaFV71f
+djjO9RLiALUDgaZopfrxEqc44MfGLyVqv+ISi3Om5tQXphDcdpuGMTBXT9N0zEah
+TK4XxfRc+5Gkry0nvGrwDEJeOiFrloUzwmzndF9jbJqcvynaNgcCw5VKICsWIbrD
+T8mnWiIJHJF+wv51fa3tEXd/TQrU9w+jYo/ioQKBzACluagmFiDwMcJFowdUYyya
+WJtxEQHej5PfyHRijBZ/qzhvPxyF2Ae2D5L9RS+uHsJA0ZVJDQgzkvrSZ8IcS/Q4
+q+zX3/AzgDL6IQGQIsETaAmFCco4RMLFaDMyDx/OJR29df+ibqYvfSoUkcmK8OyF
+PWS0AobzJnqIaDpRCCvD/sL9PCkrUm33HoDBfxuvEsqZypNVmq+/3myWc9gIMOmZ
+fpWS+744tFnNO9RdmZ8OZel4+iv8CGZvQxk14S+lpaSCpX+Zmfyy5PfPRg==
+-----END RSA PRIVATE KEY-----
diff --git a/test/provider/hiera/couch1.rewire.yaml b/test/provider/hiera/couch1.rewire.yaml
new file mode 100644
index 0000000..2c731ce
--- /dev/null
+++ b/test/provider/hiera/couch1.rewire.yaml
@@ -0,0 +1,8 @@
+---
+domain_internal: rewire
+domain_public: rewire.co
+fqdn: couch1.rewire
+ip_address: 245.2.45.42
+name: couch1
+public_dns: false
+services: couchdb
diff --git a/test/provider/hiera/couch2.rewire.yaml b/test/provider/hiera/couch2.rewire.yaml
new file mode 100644
index 0000000..a835c79
--- /dev/null
+++ b/test/provider/hiera/couch2.rewire.yaml
@@ -0,0 +1,8 @@
+---
+domain_internal: rewire
+domain_public: rewire.co
+fqdn: couch2.rewire
+ip_address: 73.45.87.11
+name: couch2
+public_dns: false
+services: couchdb
diff --git a/test/provider/hiera/ns1.rewire.yaml b/test/provider/hiera/ns1.rewire.yaml
new file mode 100644
index 0000000..264dd52
--- /dev/null
+++ b/test/provider/hiera/ns1.rewire.yaml
@@ -0,0 +1,25 @@
+---
+domain_internal: rewire
+domain_public: rewire.co
+fqdn: ns1.rewire.co
+hosts_private:
+- ip_address: 245.2.45.42
+ fqdn: couch1.rewire
+- ip_address: 73.45.87.11
+ fqdn: couch2.rewire
+hosts_public:
+- ip_address: 1.1.1.1
+ fqdn: ns1.rewire.co
+- ip_address: 1.1.1.2
+ fqdn: ns2.rewire.co
+- ip_address: 2.2.2.2
+ fqdn: vpn1.rewire.co
+- ip_address: 6.6.7.7
+ fqdn: web1.rewire.co
+ dns_alias: user.rewire.co
+ip_address: 1.1.1.1
+name: ns1
+production: true
+public_dns: true
+services: dns
+tags: production
diff --git a/test/provider/hiera/ns2.rewire.yaml b/test/provider/hiera/ns2.rewire.yaml
new file mode 100644
index 0000000..2885424
--- /dev/null
+++ b/test/provider/hiera/ns2.rewire.yaml
@@ -0,0 +1,25 @@
+---
+domain_internal: rewire
+domain_public: rewire.co
+fqdn: ns2.rewire.co
+hosts_private:
+- ip_address: 245.2.45.42
+ fqdn: couch1.rewire
+- ip_address: 73.45.87.11
+ fqdn: couch2.rewire
+hosts_public:
+- ip_address: 1.1.1.1
+ fqdn: ns1.rewire.co
+- ip_address: 1.1.1.2
+ fqdn: ns2.rewire.co
+- ip_address: 2.2.2.2
+ fqdn: vpn1.rewire.co
+- ip_address: 6.6.7.7
+ fqdn: web1.rewire.co
+ dns_alias: user.rewire.co
+ip_address: 1.1.1.2
+name: ns2
+production: true
+public_dns: true
+services: dns
+tags: production
diff --git a/test/provider/hiera/vpn1.rewire.yaml b/test/provider/hiera/vpn1.rewire.yaml
new file mode 100644
index 0000000..158bb1b
--- /dev/null
+++ b/test/provider/hiera/vpn1.rewire.yaml
@@ -0,0 +1,158 @@
+---
+domain_internal: rewire
+domain_public: rewire.co
+fqdn: vpn1.rewire.co
+ip_address: 2.2.2.2
+name: vpn1
+openvpn_ca_crt: |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
+ EOhLjU3kqqUbDOfoSs9UHOFRaW78lBscYU+z3FcR7yvSn1AIpYxbNhA3jCDrkI8C
+ gcseYElSL6mmonw4YnkNA7J8T3cSQ638r8J3DFkFr8JnEDDIQAImeJ+rD8VENq72
+ vhzIAAGIcYjbiFFeIHBD5PRWenBtvjcM3rFJIRvfiKaMyVK4VKoX8ZdVRhT5yBZu
+ 961wxwMHU+P+8jbcVJsEgkFdN0scR7CgNZnDlL7WcSLVhVzXbxpWW2+XzlTMpXyq
+ q/JeFUcYwv5Q4tmepycA9BZC/8w9DUpf92iexXtDdwrBTQRLJpYC6sVUebFDALMG
+ tu1tLl7MZMkw0nsOLQKBzADgsOGBja+KGrV1lEaJi8BrQWe5VhYLnqR8ZFrDjpqo
+ /H4Aq5pPd/SnG6izyMnpTTYVoKYBBe8VkDse+NKYlYKuSocuXUD9XHd1xKTzAQbV
+ 8rqLtsszFZJ4rcA8ZzoHodPuqfqZBVYAuCTVtFiVViDhufN7GckSkf0GiXB+HHDM
+ 9lAlWm1Mg+mcpdOCAvWjyON6V16/6lurZDr3e1mWzDL2lmoh8hRs2AmDClUMmzha
+ /Mc+o5CI09pu5wcu1Y4JAqxTtmIv8NMWCSKjZQKBzACtm7UzsHrKC3REfb5YM4oS
+ zI5SRWCj+umQrAX5XCjc7O4J0MECSW9pda3x+nei1Ay9EOpdBz+pggJ+ipDVa4qf
+ qfZ/NiAknBiB+4UiSNnUcWtK792AbAfD2if98e40rU5zlbkUxnphytyDwueqcKPY
+ HGoBRSng3IZyIZR/VCzOwWCpUyLw492D3cVZe1AgeRNhcATiHgIGMUT2zc21Jmh2
+ XJn5wohQvUzvnpyll5xlZf6c2EtqMJ9kEwV1Xbwu16aXpXf11Y9iY38EXA==
+ -----END RSA PRIVATE KEY-----
+
+openvpn_filter_dns: false
+openvpn_gateway_address: 3.3.3.3
+openvpn_nat: true
+openvpn_ports:
+- "80"
+- "443"
+- "53"
+- "1194"
+openvpn_server_crt: |
+ -----BEGIN CERTIFIC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: production
diff --git a/test/provider/hiera/web1.rewire.yaml b/test/provider/hiera/web1.rewire.yaml
new file mode 100644
index 0000000..6fc76d9
--- /dev/null
+++ b/test/provider/hiera/web1.rewire.yaml
@@ -0,0 +1,16 @@
+---
+dns_alias: user.rewire.co
+domain_internal: rewire
+domain_public: rewire.co
+fqdn: web1.rewire.co
+ip_address: 6.6.7.7
+name: web1
+public_dns: true
+services: webapp
+webapp_couchdb_hosts:
+- couch1.rewire
+- couch2.rewire
+webapp_modules:
+- user
+- billing
+- help
diff --git a/test/provider/nodes/couch1.json b/test/provider/nodes/couch1.json
new file mode 100644
index 0000000..fe5d7e5
--- /dev/null
+++ b/test/provider/nodes/couch1.json
@@ -0,0 +1,4 @@
+{
+ "services": "couchdb",
+ "ip_address": "245.2.45.42"
+} \ No newline at end of file
diff --git a/test/provider/nodes/couch2.json b/test/provider/nodes/couch2.json
new file mode 100644
index 0000000..1fe2977
--- /dev/null
+++ b/test/provider/nodes/couch2.json
@@ -0,0 +1,4 @@
+{
+ "services": "couchdb",
+ "ip_address": "73.45.87.11"
+} \ No newline at end of file
diff --git a/test/provider/nodes/ns1.json b/test/provider/nodes/ns1.json
new file mode 100644
index 0000000..6323d10
--- /dev/null
+++ b/test/provider/nodes/ns1.json
@@ -0,0 +1,8 @@
+#
+# this is a comment
+#
+{
+ "services": "dns",
+ "tags": "production",
+ "ip_address": "1.1.1.1"
+} \ No newline at end of file
diff --git a/test/provider/nodes/ns2.json b/test/provider/nodes/ns2.json
new file mode 100644
index 0000000..eeba9df
--- /dev/null
+++ b/test/provider/nodes/ns2.json
@@ -0,0 +1,8 @@
+#
+# A nameserver
+#
+{
+ "services": "dns",
+ "tags": "production",
+ "ip_address": "1.1.1.2"
+} \ No newline at end of file
diff --git a/test/provider/nodes/vpn1.json b/test/provider/nodes/vpn1.json
new file mode 100644
index 0000000..10859ac
--- /dev/null
+++ b/test/provider/nodes/vpn1.json
@@ -0,0 +1,8 @@
+{
+ "services": "openvpn",
+ "ip_address": "2.2.2.2",
+ "tags": "production",
+ "openvpn": {
+ "gateway_address": "3.3.3.3"
+ }
+} \ No newline at end of file
diff --git a/test/provider/nodes/web1.json b/test/provider/nodes/web1.json
new file mode 100644
index 0000000..894fb6e
--- /dev/null
+++ b/test/provider/nodes/web1.json
@@ -0,0 +1,4 @@
+{
+ "services": "webapp",
+ "ip_address": "6.6.7.7"
+} \ No newline at end of file
diff --git a/test/provider/provider.json b/test/provider/provider.json
new file mode 100644
index 0000000..58b6728
--- /dev/null
+++ b/test/provider/provider.json
@@ -0,0 +1,13 @@
+#
+# General service provider configuration.
+#
+{
+ "name": "The Rewire Company",
+ "description": "A demonstration service provider using the LEAP platform",
+ "languages": ["en"],
+ "ca": {
+ "name": "Rewire Root CA",
+ "organization": "#{name}",
+ "bit_size": 4096
+ }
+} \ No newline at end of file
diff --git a/test/provider/services/couchdb.json b/test/provider/services/couchdb.json
new file mode 100644
index 0000000..7c13c8d
--- /dev/null
+++ b/test/provider/services/couchdb.json
@@ -0,0 +1,3 @@
+{
+ "public_dns": false
+} \ No newline at end of file
diff --git a/test/provider/services/dns.json b/test/provider/services/dns.json
new file mode 100644
index 0000000..3fea381
--- /dev/null
+++ b/test/provider/services/dns.json
@@ -0,0 +1,6 @@
+{
+ "hosts": {
+ "public": "= nodes[:public_dns => true].fields(:fqdn, :dns_alias, :ip_address)",
+ "private": "= nodes[:public_dns => false].fields(:fqdn, :dns_alias, :ip_address)"
+ }
+} \ No newline at end of file
diff --git a/test/provider/services/openvpn.json b/test/provider/services/openvpn.json
new file mode 100644
index 0000000..ffaa313
--- /dev/null
+++ b/test/provider/services/openvpn.json
@@ -0,0 +1,11 @@
+{
+ "openvpn": {
+ "ports": ["80", "443", "53", "1194"],
+ "filter_dns": false,
+ "nat": true,
+ "ca_crt": "= file 'ca/ca.crt'",
+ "ca_key": "= file 'ca/ca.key'",
+ "server_crt": "= file fqdn + '.crt'",
+ "server_key": "= file fqdn + '.key'"
+ }
+}
diff --git a/test/provider/services/webapp.json b/test/provider/services/webapp.json
new file mode 100644
index 0000000..1513d6f
--- /dev/null
+++ b/test/provider/services/webapp.json
@@ -0,0 +1,7 @@
+{
+ "dns_alias": "= 'user.' + domain_public",
+ "webapp": {
+ "modules": ["user", "billing", "help"],
+ "couchdb_hosts": "= nodes[:services => :couchdb].field(:fqdn)"
+ }
+} \ No newline at end of file
diff --git a/test/provider/tags/production.json b/test/provider/tags/production.json
new file mode 100644
index 0000000..b35c065
--- /dev/null
+++ b/test/provider/tags/production.json
@@ -0,0 +1,3 @@
+{
+ "production": true
+} \ No newline at end of file
diff --git a/test/test_helper.rb b/test/test_helper.rb
new file mode 100644
index 0000000..2e33705
--- /dev/null
+++ b/test/test_helper.rb
@@ -0,0 +1,9 @@
+require 'test/unit'
+
+# Add test libraries you want to use here, e.g. mocha
+
+class Test::Unit::TestCase
+
+ # Add global extensions to the test case class here
+
+end