Commit Graph

54 Commits

Author SHA1 Message Date
Michael Bridgen a5f891c919 Watch gitrepositories and imagepolicies
An ImageUpdateAutomation refers to a git repository and may refer to
an image policy. Watch both of these kinds, and react to either
changing by queueing any automations that refer to them.
2020-08-02 21:27:09 +01:00
Michael Bridgen 7c6e87d06a Test the result of the automated commit
This factors out the function that checks directories for equivalence,
and uses it to check that the upstream repo has the expected update
when the controller has pushed its commit.
2020-07-23 18:20:35 +01:00
Michael Bridgen 97393366da Test controller to the point of committing changes
This adds a test for the controller, checking that it will commit and
push a change, with the given commit message. I think checking it made
the right change will need a bit of rejigging tests elsewhere, so I
can compare directory contents (as with pkg/update tests).
2020-07-23 18:20:35 +01:00
Michael Bridgen c7d5511f1e Start test scaffolding
- start a test git server (thanks Stefan and Hidde!)
 - initialise it from a fixture (directory with repo contents)

This is the basics to build on.
2020-07-23 18:20:35 +01:00