If you already depend on the git plugin, you could consider using TestGtiRepo from the git plugin tests as somewhat of a convenience class for a git repository. If you already depend on the git client plugin, you could consider using CliGitCommand as a convenience method to perform calls to command line git.
On Thu, Apr 25, 2019 at 7:14 PM Joseph P <[email protected]> wrote: > We have some integrations tests for Vault, I would imagine it could be > very similar to a git docker container. > > > https://github.com/jenkinsci/configuration-as-code-plugin/tree/master/plugin/src/test/java/io/jenkins/plugins/casc/vault > > On Friday, April 26, 2019 at 1:06:03 AM UTC+2, Ullrich Hafner wrote: >> >> I’m currently trying to write some integration tests with Jenkins test >> harness (i.e. JenkinsRule) that were previously part of ATH. For some of >> the ATH concepts I did not yet find a counterpart in our integration tests. >> >> Is someone already writing integration tests that use agents that are >> provided by a docker container and has an example to share? >> >> Since my plugins interact with Git I want to create a Git Repository in >> the test setup with fake data. Do we have a kind of API to fill a Git >> repository (like GitRepo in ATH)? >> >> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/8dcc3860-231b-4367-8a3f-46c475f7cbaa%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/8dcc3860-231b-4367-8a3f-46c475f7cbaa%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Thanks! Mark Waite -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtE0WtOVw5B%3Do%3D6se7FR-C7%3DBkmY1gVVyiGhq9ZwHThKXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
