Add acceptance tests for git protocols using clone
authorJohn Duarte <john.duarte@puppetlabs.com>
Mon, 5 May 2014 21:02:51 +0000 (14:02 -0700)
committerJohn Duarte <john.duarte@puppetlabs.com>
Thu, 8 May 2014 03:11:46 +0000 (20:11 -0700)
commit2a57379e669a6920766548927b08e9ef4ede521e
treed4361ef63c8e0328053ff4e56f9951c80ae0d061
parent46588aa62d444c5f0a538cccec357a80cd191b93
Add acceptance tests for git protocols using clone

The git_clone_protocols_spec.rb will be used to enumerate over the
available protocols for git to use to clone to disk. Support
key files are also included for https/ssl use.

Protocols tested

    * file protocol (raw filepath)
    * file protocol (file://)
    * git protocol (git://)
    * http protocol (http://)
    * https protocol (https://)
    * ssh protocol (ssh://user@host)

TODO: Currently, the ssl cert is not added to the CA on the host.
This causes the git clone to fail because the cert is not trusted
and the client does not proceed with a non-trusted ssl connection.
spec/acceptance/files/create_git_repo.sh
spec/acceptance/files/server.crt [new file with mode: 0644]
spec/acceptance/files/server.key [new file with mode: 0644]
spec/acceptance/git_clone_protocols_spec.rb [new file with mode: 0644]