Commits
- Commit:
c26e0f9dab045063f9fb15a64233322532b18dcb
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Use default MarshalJSON method
There's no point doing so much manual work and testing just to keep
fields under a "attrs" key when marshalling to JSON. When creating the
object we can just:
1. Marshal the object to JSON
2. Put it all under a "attrs" key.
Now it's easier to imagine the mapping of the structs to JSON, since
they follow the same rules as everything else in Go.
- Commit:
717a9e7823638c994c6620883fcee2ef98da294b
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Keep test data in version control
While here also don't log messages in testing unless there's an error.
- Commit:
e35b73d5e39c5601f8db91e5dc8fc38642d1dea4
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Only log on test error
No news is good news!
- Commit:
0324b0fdd256bf328e1eab17200b23aa803d0bd5
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Just panic on unlikely user test error
We're just testing, so we don't need super robust error handling code.
And if any of those conditions aren't met then we have serious
problems anyway.
- 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.
- Commit:
5105405ecc4e2ca95d7a7bab841b3de1520fc852
- From:
- Oliver Lowe <o@olowe.co>
- Date:
deduplicate new test client code
This adds a newTestClient option so that we aren't constantly creating
new http transports clients and all that
- Commit:
e0c24850440b8bcaa5bf6a49c0dd493fb30e94fb
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Support Icinga2 hostgroups
Tests of hostgroup operations are done in TestFilter
- Commit:
ae81184d0c6aa8be7d10adac10e675d9096a3a3b
- From:
- Oliver Lowe <o@olowe.co>
- Date:
Add tests for user management