summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/puppet/provider/.platform-test.conf21
-rw-r--r--tests/puppet/provider/files/nodes/single/single.crt34
-rw-r--r--tests/puppet/provider/files/nodes/single/single.key51
-rw-r--r--tests/puppet/provider/files/ssh/authorized_keys2
-rw-r--r--tests/puppet/provider/nodes/single.json11
-rw-r--r--tests/puppet/provider/secrets.json20
-rw-r--r--tests/puppet/provider/tags/single.json4
-rw-r--r--tests/puppet/provider/users/catalog_testuser/catalog_testuser_ssh.pub1
-rw-r--r--tests/puppet/provider/users/gitlab-runner/gitlab-runner_ssh.pub1
9 files changed, 26 insertions, 119 deletions
diff --git a/tests/puppet/provider/.platform-test.conf b/tests/puppet/provider/.platform-test.conf
new file mode 100644
index 00000000..a40b6b32
--- /dev/null
+++ b/tests/puppet/provider/.platform-test.conf
@@ -0,0 +1,21 @@
+export ROOTDIR=$(pwd)
+
+export PROVIDERDIR="${ROOTDIR}/tests/puppet/provider"
+export PLATFORMDIR="$ROOTDIR"
+export LOGDIR="$ROOTDIR/builds/log"
+
+export CONTACTS="sysdev@leap.se"
+export MAIL_TO=$CONTACTS
+
+export OPTS='--yes'
+
+export FILTER_COMMON=""
+
+export LEAP_CMD="leap"
+
+# Nodes to bootstrap
+# NODES='rewdevcouch1:couchdb,soledad rewdevmx1:mx rewdevvpn1:openvpn,tor rewdevweb1:webapp,monitor rewdevplain1: rewdevstatic1:static'
+
+# tag/environment to deploy to
+export TAG='local'
+
diff --git a/tests/puppet/provider/files/nodes/single/single.crt b/tests/puppet/provider/files/nodes/single/single.crt
deleted file mode 100644
index d51bbcc2..00000000
--- a/tests/puppet/provider/files/nodes/single/single.crt
+++ /dev/null
@@ -1,34 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIF1zCCA7+gAwIBAgIRAOa9uhf564pgUrrohRezgqswDQYJKoZIhvcNAQELBQAw
-SjEQMA4GA1UECgwHRXhhbXBsZTEcMBoGA1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c2luZ2xlLmV4
-YW1wbGUub3JnhwQBAQEBMAsGA1UdDwQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcD
-AQYIKwYBBQUHAwIwCQYDVR0TBAIwADAfBgNVHSMEGDAWgBSWELbB+tUXMau27NwD
-SaQ77Kf1uDANBgkqhkiG9w0BAQsFAAOCAgEAOpy7sY9hKuHmvzyRSLdYipQiAI9a
-I/jpBQQ6/lILOQVdhxKp9fnoTHowub6DRLJx3xFp3PywCXanTucPUylhKHi7w3Us
-df0A8riUR7haXVJrHL2mCLlb4CyqdMyJ7eWRIv8DaUhdgPdX1d2LqDYWmbeDQeiV
-HJJ89dFGXmiaH/9TZgPx8hOnZuF2dTy+eoVDYw2McCYJw5xIHzFlhK74jbjM1oQJ
-xKItzb28/xOre4hsgi5S2hwIwXUfXkkbwI/KZaE9pC7DXa4KSmmZ48W5hJZS3pIU
-A7sTvkGB3xidsQGKn4+q33GvexWZ7YeXMmdeaz3uWgDyBgTKTI0dZb9VrmkjwtZ+
-AxgBCm+vYG+XZ30vKDPYfgadhE4z9CA3RL9Sd2SYVEy1jhZ0TE3V+xT9pPvaKraz
-l8fFZ7DvBvufbGjZFRgES56G6qgGs/CwdOkjfvpF9J/WsCTMceACyLKl9GfOZQHF
-2TBbJAv9WGJsTFdPY4Qq1tq2LosyPWKEj4+v3lxkdgkDN3QvivTme4gm2Ps0EkjG
-6u+0PtkFVHZ47Lz8mNx0Lmj6N6Rai6btTOSXm2rJlVDdRqih59oWuPJruqoU9S/z
-Rul0Er74Sbf3iiEsmFlQpm6RqxcGwjhE6iv1pPa3ksFWz/sUQ50iW1jXaA+N4DC0
-TCnSHgbeJfatvMA=
------END CERTIFICATE-----
diff --git a/tests/puppet/provider/files/nodes/single/single.key b/tests/puppet/provider/files/nodes/single/single.key
deleted file mode 100644
index c248e4cd..00000000
--- a/tests/puppet/provider/files/nodes/single/single.key
+++ /dev/null
@@ -1,51 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIIJ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IVATE KEY-----
diff --git a/tests/puppet/provider/files/ssh/authorized_keys b/tests/puppet/provider/files/ssh/authorized_keys
deleted file mode 100644
index 534789db..00000000
--- a/tests/puppet/provider/files/ssh/authorized_keys
+++ /dev/null
@@ -1,2 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDEbZADylg5xTxWIF+DlAVNLuNugSvsb1QWlSKwfIbJjmsln/03ThQrsZG0JhL5F3/2epaahXhK11Uf2tcUsfE+9UffP+McYOKvZ9GmTLBpYZUyJT8XRBK/rthuig050xpNpxqlYTCbCM7QCkOseWp0FnAZv+CHXBbuVSkGDMc35nM1TxmVWHuJxiCq/XXg0CN/MD5UY7BWkJbWrelHxzTyVImB+cxRnaASaMk+LMLplrVG8jGTMSRFWea2U3iLrYnppLAsowNeXJ+NqKUXN9lo92OUDmKMy8Zlej/NRYJpAlLyTVzS+SPVqsYdnQn+3myj3SrJwP2PlDyzycxhnmttzULu4+zHbLCoJXB3RK3VJNw2rh0VNkRzl51ooUY2MLR/OndkbMi8TIB0kyKZcVwLXQk/5MGCitCY2sfuIY1+yuvxvQ/rlev0/eyikQ5KSew42hUGIf/0ygN3QK5Vj0DRmaYTEHyp/a5z2WXb9Itx1faOif2ZfnMEjYQ1wad7MeAa/iOnc8poGiSY5o6tBY0PvT9uBeigOZNTv47rdJ6Y+gmF3BIKIjhBTZWLloQQ7P3rqr6GLbFNd33ob3+qg6N2UEFlOHBKwXoUMZ0aN1R76qR8ZBtrJtYddt0clqYBaeoC1/AcNtKRKErB8kr4Gq6SQcah76XTNet9Q/4NnmtzGw== files/ssh/monitor_ssh.pub
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDew0EcUpfLjAAZbg6tkl5yRK/wya3TZugS0fbtC0ksG+A114XHJvSZH24nDAUFvV13SoGs5HunvXwnbt2S45Di8GPQXos8tLFP+Eh4ypnQJJaunYidEuYK2CG38zOGakX1y/ppKMrGAO6GiUi9ebR5DcJrXupyJBUsmKNsiV1sfekUvcFGBT5otZJwgNriIa3FjEDso6e5is7SfaBHTKAAXYKdnV1J89Y8lwuElrdBaW3N5q/IrNVt0d3LwOKCgupMz+pRGNAeOAXkAMwXjrr3RIqrnKpxAb32CFBh5MmSDMWxU3UInH+iyMUklMrJfUWfvEUF87dkJi6wWcck/VyB users/catalog_testuser/catalog_testuser_ssh.pub
diff --git a/tests/puppet/provider/nodes/single.json b/tests/puppet/provider/nodes/single.json
index fd9e4065..ca358cc5 100644
--- a/tests/puppet/provider/nodes/single.json
+++ b/tests/puppet/provider/nodes/single.json
@@ -1,12 +1,9 @@
{
- "ip_address": "1.1.1.1",
+ "ip_address": "10.5.5.101",
"services": [
"couchdb",
- "soledad",
- "webapp",
"mx",
- //"static"
- "monitor"
- ],
- "tags": ["single"]
+ "soledad",
+ "webapp"
+ ]
}
diff --git a/tests/puppet/provider/secrets.json b/tests/puppet/provider/secrets.json
deleted file mode 100644
index b5ac725d..00000000
--- a/tests/puppet/provider/secrets.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "single": {
- "api_monitor_auth_token": "FUwtxrjhnpr2VDrCbdnbHguBAyPgrAt2",
- "couch_admin_password": "cAUss5uM2nhnNsJPtn9rIEpv3BZBSNJd",
- "couch_admin_password_salt": "7331473921a67d7cd2c9f66991672c5c",
- "couch_leap_mx_password": "hBg7mw4sbZYWWyWwvzv37whcFeQBmVTK",
- "couch_leap_mx_password_salt": "f9da31c9d4877adc426a1a8333ea6709",
- "couch_nickserver_password": "e5VbYLky3NuccxTugAKSBmPCWgeetfne",
- "couch_nickserver_password_salt": "fe9b943d7a70db61663f7549a06b209c",
- "couch_replication_password": "nQWJtPJr8fZfcwMScdtxVALZPqEgfu8Y",
- "couch_replication_password_salt": "7b6e739cfdf8dff346ad4ef1d15d00f0",
- "couch_soledad_password": "UZDxFE2PMBqSVT3UkjwcDnbRLRBNYUq3",
- "couch_soledad_password_salt": "a2a3b37661a1bd54198d3f8418010719",
- "couch_webapp_password": "FKAgaDnmC8usduJcTMs79HdLsPnhkJL5",
- "couch_webapp_password_salt": "e8a8e58d42aec9cc04e943e1e972cccf",
- "nagios_admin_password": "dDrLfp2FqFE2Y9fz7PMdveAUHwf3DLuC",
- "nagios_test_password": "574EHS3bTWF5p7WnKJSZf78ZUEuU37E3",
- "webapp_secret_token": "tKHqE8FwL3XRTYE34bY5yQYaJXN3pTnq"
- }
-}
diff --git a/tests/puppet/provider/tags/single.json b/tests/puppet/provider/tags/single.json
deleted file mode 100644
index d856c6ee..00000000
--- a/tests/puppet/provider/tags/single.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "environment": "single"
-
-}
diff --git a/tests/puppet/provider/users/catalog_testuser/catalog_testuser_ssh.pub b/tests/puppet/provider/users/catalog_testuser/catalog_testuser_ssh.pub
deleted file mode 100644
index e6b43568..00000000
--- a/tests/puppet/provider/users/catalog_testuser/catalog_testuser_ssh.pub
+++ /dev/null
@@ -1 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDew0EcUpfLjAAZbg6tkl5yRK/wya3TZugS0fbtC0ksG+A114XHJvSZH24nDAUFvV13SoGs5HunvXwnbt2S45Di8GPQXos8tLFP+Eh4ypnQJJaunYidEuYK2CG38zOGakX1y/ppKMrGAO6GiUi9ebR5DcJrXupyJBUsmKNsiV1sfekUvcFGBT5otZJwgNriIa3FjEDso6e5is7SfaBHTKAAXYKdnV1J89Y8lwuElrdBaW3N5q/IrNVt0d3LwOKCgupMz+pRGNAeOAXkAMwXjrr3RIqrnKpxAb32CFBh5MmSDMWxU3UInH+iyMUklMrJfUWfvEUF87dkJi6wWcck/VyB varac@rocinante
diff --git a/tests/puppet/provider/users/gitlab-runner/gitlab-runner_ssh.pub b/tests/puppet/provider/users/gitlab-runner/gitlab-runner_ssh.pub
new file mode 100644
index 00000000..1a3c370d
--- /dev/null
+++ b/tests/puppet/provider/users/gitlab-runner/gitlab-runner_ssh.pub
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkRxRRgaSmpzm1tOJMmvOrge/V7fQ9O0q/A+Ez0OlC0LC25ar0gPtm2aKjk3sIThA/C4jA9pGKn4Bi2TEh70NEUoTsrpRfFa8t3VRi3AdvMQ1gHdz53rZ+ZEk92Jf9DyP7pvJa0rKAL02bMAIugDqXXIW4KfrBZYZ30xCUywgl/0pqaQKidi2sFiFMeC36mW/YiomgXq6zmdZAI7h3/Vn4QWFVl/JJr+5MSVfYdG8wWgdnddAUC6gvsYsFP48e+gBeK0ueqHVMrEj2MB7WQ9h9zqPwzdcB6LcdbMgiFxxgpSdyy1DP4AW6PYkTOHPo4GjdU8/THXB9Ad/kr8vk7fOf gitlab-runner@greyhound