garm/runner
Ionut Balutoiu 7b6c2e6106 Refactor code to allow more unit testing
In order to allow mocking for some of the `runner` functions, we created a
separate interface (called `PoolManagerController`) with `Create`, `Get`,
`Delete` operations for the `organization` / `repository` pool managers.

Furthermore, a new runner struct (`poolManagerCtrl`) implements this new
interface. The existing code is refactored to use the `poolManagerCtrl`
whenever the pool managers for `org` / `repo` are handled.

This allows more unit testing for the runner functions since `poolManagerCtrl`
field can be mocked now.

Besides this, there are some typos fixed as well.
2022-08-18 17:47:05 +03:00
..
common Fix instance JWT token expiration 2022-07-17 07:24:19 +00:00
pool Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00
providers Always lookup images in simplestreams 2022-07-16 13:47:17 +00:00
interfaces.go Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00
organizations.go Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00
organizations_test.go Add unit tests 2022-08-01 12:34:59 +03:00
pools.go Make runner-bootstrap-timeout optional 2022-07-06 17:37:18 +00:00
repositories.go Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00
runner.go Refactor code to allow more unit testing 2022-08-18 17:47:05 +03:00
types.go Add license headers 2022-05-05 13:25:50 +00:00