Permalink
Browse files

Convert all tests from json to yaml (#196)

  • Loading branch information...
aelsabbahy committed Feb 19, 2017
1 parent e11d437 commit 5909a171818ccb4feb5756314b035c63c70e6e61
Showing with 1,465 additions and 2,069 deletions.
  1. +1 −1 .gitignore
  2. +0 −16 integration-tests/goss/alpine3/goss-aa-expected.json
  3. +9 −0 integration-tests/goss/alpine3/goss-aa-expected.yaml
  4. +0 −159 integration-tests/goss/alpine3/goss-expected-q.json
  5. +112 −0 integration-tests/goss/alpine3/goss-expected-q.yaml
  6. +0 −209 integration-tests/goss/alpine3/goss-expected.json
  7. +151 −0 integration-tests/goss/alpine3/goss-expected.yaml
  8. +0 −52 integration-tests/goss/alpine3/goss.json
  9. +36 −0 integration-tests/goss/alpine3/goss.yaml
  10. +0 −30 integration-tests/goss/arch/goss.json
  11. +20 −0 integration-tests/goss/arch/goss.yaml
  12. +0 −29 integration-tests/goss/centos7/goss-aa-expected.json
  13. +17 −0 integration-tests/goss/centos7/goss-aa-expected.yaml
  14. +0 −159 integration-tests/goss/centos7/goss-expected-q.json
  15. +112 −0 integration-tests/goss/centos7/goss-expected-q.yaml
  16. +0 −216 integration-tests/goss/centos7/goss-expected.json
  17. +157 −0 integration-tests/goss/centos7/goss-expected.yaml
  18. +0 −52 integration-tests/goss/centos7/goss.json
  19. +36 −0 integration-tests/goss/centos7/goss.yaml
  20. +9 −9 integration-tests/goss/generate_goss.sh
  21. +0 −8 integration-tests/goss/goss-service.json
  22. +5 −0 integration-tests/goss/goss-service.yaml
  23. +0 −200 integration-tests/goss/goss-shared.json
  24. +142 −0 integration-tests/goss/goss-shared.yaml
  25. +0 −8 integration-tests/goss/goss-wait.json
  26. +5 −0 integration-tests/goss/goss-wait.yaml
  27. +0 −29 integration-tests/goss/precise/goss-aa-expected.json
  28. +17 −0 integration-tests/goss/precise/goss-aa-expected.yaml
  29. +0 −159 integration-tests/goss/precise/goss-expected-q.json
  30. +112 −0 integration-tests/goss/precise/goss-expected-q.yaml
  31. +0 −216 integration-tests/goss/precise/goss-expected.json
  32. +157 −0 integration-tests/goss/precise/goss-expected.yaml
  33. +0 −52 integration-tests/goss/precise/goss.json
  34. +36 −0 integration-tests/goss/precise/goss.yaml
  35. +0 −29 integration-tests/goss/wheezy/goss-aa-expected.json
  36. +17 −0 integration-tests/goss/wheezy/goss-aa-expected.yaml
  37. +0 −159 integration-tests/goss/wheezy/goss-expected-q.json
  38. +112 −0 integration-tests/goss/wheezy/goss-expected-q.yaml
  39. +0 −216 integration-tests/goss/wheezy/goss-expected.json
  40. +157 −0 integration-tests/goss/wheezy/goss-expected.yaml
  41. +0 −52 integration-tests/goss/wheezy/goss.json
  42. +36 −0 integration-tests/goss/wheezy/goss.yaml
  43. +9 −9 integration-tests/test.sh
View
@@ -4,7 +4,7 @@
/goss
/release
/integration-tests/goss/goss
-/integration-tests/**/*-generated*.json
+/integration-tests/**/*-generated*
/vendor/
/integration-tests/**/goss-linux-386
/integration-tests/**/goss-linux-amd64
@@ -1,16 +0,0 @@
-{
- "package": {
- "apache2": {
- "installed": true,
- "versions": [
- "2.4.23-r1"
- ]
- }
- },
- "service": {
- "apache2": {
- "enabled": true,
- "running": true
- }
- }
-}
@@ -0,0 +1,9 @@
+package:
+ apache2:
+ installed: true
+ versions:
+ - 2.4.23-r1
+service:
+ apache2:
+ enabled: true
+ running: true
@@ -1,159 +0,0 @@
-{
- "file": {
- "/etc/passwd": {
- "exists": true,
- "contains": []
- },
- "/tmp/goss/foobar": {
- "exists": false,
- "contains": []
- }
- },
- "package": {
- "apache2": {
- "installed": true
- },
- "foobar": {
- "installed": false
- },
- "vim-tiny": {
- "installed": false
- }
- },
- "addr": {
- "tcp://google.com:22": {
- "reachable": false,
- "timeout": 1000
- },
- "tcp://google.com:443": {
- "reachable": true,
- "timeout": 1000
- }
- },
- "port": {
- "tcp6:80": {
- "listening": true
- },
- "tcp:80": {
- "listening": false
- },
- "tcp:9999": {
- "listening": false
- }
- },
- "service": {
- "apache2": {
- "enabled": true,
- "running": true
- },
- "foobar": {
- "enabled": false,
- "running": false
- }
- },
- "user": {
- "foobar": {
- "exists": false
- },
- "www-data": {
- "exists": false
- }
- },
- "group": {
- "foobar": {
- "exists": false
- },
- "www-data": {
- "exists": true
- }
- },
- "command": {
- "echo 'hi'": {
- "exit-status": 0,
- "stdout": [],
- "stderr": [],
- "timeout": 10000
- },
- "foobar": {
- "exit-status": 127,
- "stdout": [],
- "stderr": [],
- "timeout": 10000
- }
- },
- "dns": {
- "CNAME:c.dnstest.io": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "MX:dnstest.io": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "NS:dnstest.io": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "PTR:8.8.8.8": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "SRV:_https._tcp.dnstest.io": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "TXT:txt._test.dnstest.io": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "ip6.dnstest.io": {
- "resolveable": true,
- "timeout": 1000,
- "server": "8.8.8.8"
- },
- "localhost": {
- "resolveable": true,
- "timeout": 1000
- }
- },
- "process": {
- "apache2": {
- "running": false
- },
- "foobar": {
- "running": false
- }
- },
- "kernel-param": {
- "kernel.ostype": {
- "value": "Linux"
- }
- },
- "mount": {
- "/dev": {
- "exists": true
- }
- },
- "http": {
- "http://google.com": {
- "status": 301,
- "allow-insecure": false,
- "no-follow-redirects": true,
- "timeout": 5000,
- "body": []
- },
- "https://www.google.com": {
- "status": 200,
- "allow-insecure": false,
- "no-follow-redirects": false,
- "timeout": 5000,
- "body": []
- }
- }
-}
@@ -0,0 +1,112 @@
+file:
+ /etc/passwd:
+ exists: true
+ contains: []
+ /tmp/goss/foobar:
+ exists: false
+ contains: []
+package:
+ apache2:
+ installed: true
+ foobar:
+ installed: false
+ vim-tiny:
+ installed: false
+addr:
+ tcp://google.com:22:
+ reachable: false
+ timeout: 1000
+ tcp://google.com:443:
+ reachable: true
+ timeout: 1000
+port:
+ tcp:80:
+ listening: false
+ tcp:9999:
+ listening: false
+ tcp6:80:
+ listening: true
+service:
+ apache2:
+ enabled: true
+ running: true
+ foobar:
+ enabled: false
+ running: false
+user:
+ foobar:
+ exists: false
+ www-data:
+ exists: false
+group:
+ foobar:
+ exists: false
+ www-data:
+ exists: true
+command:
+ echo 'hi':
+ exit-status: 0
+ stdout: []
+ stderr: []
+ timeout: 10000
+ foobar:
+ exit-status: 127
+ stdout: []
+ stderr: []
+ timeout: 10000
+dns:
+ CNAME:c.dnstest.io:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ MX:dnstest.io:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ NS:dnstest.io:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ PTR:8.8.8.8:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ SRV:_https._tcp.dnstest.io:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ TXT:txt._test.dnstest.io:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ ip6.dnstest.io:
+ resolveable: true
+ timeout: 1000
+ server: 8.8.8.8
+ localhost:
+ resolveable: true
+ timeout: 1000
+process:
+ apache2:
+ running: false
+ foobar:
+ running: false
+kernel-param:
+ kernel.ostype:
+ value: Linux
+mount:
+ /dev:
+ exists: true
+http:
+ http://google.com:
+ status: 301
+ allow-insecure: false
+ no-follow-redirects: true
+ timeout: 5000
+ body: []
+ https://www.google.com:
+ status: 200
+ allow-insecure: false
+ no-follow-redirects: false
+ timeout: 5000
+ body: []
Oops, something went wrong.

0 comments on commit 5909a17

Please sign in to comment.