Commits
- Commit:
f4705a64149eb5336dd9f69e1a32ebf7d886a132
- From:
- Oliver Lowe <o@olowe.co>
- Date:
icinga_test: Don't assign group for random hosts
We can test hostgroup assignment in other tests if desired.
- Commit:
62bf235cf08fdde3e89d389bdc78b8602069b28c
- From:
- Oliver Lowe <o@olowe.co>
- Date:
icinga_test: Inline permissions response
No need for a file on disk; it's only referenced once.
- Commit:
b717ce9bd51371aefd55ccd6ddf623f83aed8e29
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Test against a fake in-processs icinga server
A lot of the testing doesn't really flex what a real icinga2 server
does. We can implement a simple fake server with about 250 lines of
Go, then we get all the benefits of really quick feedback and no
dependency on an icinga2 server (which isn't super easy to set up) for
most tests. More complicated tests are still performed against a real
server listening on loopback (if available).
- Commit:
d762d1d1aeb9ddb5a796ccfe1fefa3edea7e242f
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Correctly return ErrNoMatch when rescheduling a check
For some reason the API returns an internal server error status rather
than a Not Found status (as in other methods in the API). We can catch
the condition when results are empty and return ErrNoMatch.
- Commit:
9ffce56b80990611dbb20ba6c4af4df4f9846140
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Properly encode spaces in filter expressions
This is a bit tricky. url.QueryEscape() encodes spaces in queries as
"+", but Icinga2 wants them as "%20".
A test case is included because this was kinda tricky to debug.
- Commit:
64e18a8d1ef9f178f91aed840a371f3785c4d188
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Correctly return ErrNoMatch
The check was incorrect before. The HTTP status on responses is still
200 OK, but with empty results if there are no matches to the filter.
- Commit:
7cb145ba970416743d12a36bb0a4df59264203da
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Implement checker interface for HostGroup
This also adds a test for checking all hosts in a HostGroup.
- Commit:
02a1a10065dd3be4f89f30756adc670b1a8ab468
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Support cascading delete of objects
- Commit:
191337d0c3d59aa9a990eb5192664d5c5079f187
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Add checking of services and hosts
And also add a icinga_test package that does the black-box tests
i.e. tests which speak to a real icinga server.