Commit Graph

14 Commits

Author SHA1 Message Date
Brian Cunnie
7a7b8464e2 RSpec check-dns_spec.rb has replaced check-dns.rb 2016-09-10 17:13:30 -07:00
Brian Cunnie
daf5c91ee0 RSpec is invoked with correct path to spec/
fixes:
```
No examples found.
```
2016-09-05 05:46:46 -07:00
Brian Cunnie
8bcce4784b hash-bang has one option, concatenated
Works fine on macOS; blows up on Linux.

fixes:
```
/bin/bash: - : invalid option
Usage:	/bin/bash [GNU long option] [option] ...
	/bin/bash [GNU long option] [option] script-file ...
```
2016-09-05 05:27:08 -07:00
Brian Cunnie
5c5d7ae5ec use RSpec, not a custom bash script
Admittedly it's overkill to use RSpec to run a set of assertions against
a DNS server -- a simple shell script would have been shorter and more
understandable. We are using RSpec merely to practice using RSpec.

Also, RSpec is not quite appropriate because we're not testing a Ruby
class. In fact, we're not test Ruby code at all. So we should not be
using RSpec. Just sayin'.
2016-09-05 05:16:51 -07:00
Brian Cunnie
ae765ae476 fix trailing '.' whois <-> dig dichotomy
- whois records don't have trailing '.'; NS records do. Add trailing '.'
2016-09-04 06:25:45 -07:00
Brian Cunnie
819c2604dc Query proper NS; Exit Code == # failures 2016-09-03 05:57:14 -07:00
Brian Cunnie
45d0e58679 Don't blindly succeed even when you fail
- must use a non-zero exit code to signify failure to Concourse
2016-09-02 13:07:42 -07:00
Brian Cunnie
6cb6eaa17f Check that whois matches dig 2016-09-02 08:03:44 -07:00
Brian Cunnie
0794d967d6 DNS checks are run in Fedora container with ruby
- includes bind-utils (dig, nslookup, whois)
2016-09-01 12:39:30 -07:00
Brian Cunnie
50ade4d699 Docker image Ruby -> Fedora/Ruby 2016-08-31 20:43:33 -07:00
Brian Cunnie
5cd74fe56e check-dns.rb has 2 checks, better than none. 2016-08-31 20:39:54 -07:00
Brian Cunnie
e212d71056 Farewell, Fedora, and HELLO RUBY
Use ruby image to run check-dns script
2016-08-29 13:21:45 -07:00
Brian Cunnie
ba4d87c8d4 check-dns will be a ruby script...
...and it will be perfect in every way. --Immortan Joe
2016-08-29 13:08:11 -07:00
Brian Cunnie
05dac6df49 sslip.io has Concourse's Continuous Integration
- CI-related files are under `ci/`
2016-08-24 20:43:10 -07:00