puppet_vcsrepo.git
6 years agoMerge pull request #145 from hunner/fix_beaker_tests
John Duarte [Thu, 22 May 2014 01:17:31 +0000 (18:17 -0700)]
Merge pull request #145 from hunner/fix_beaker_tests

Update specs and fix FM-1361

6 years agoUpdate specs and fix FM-1361
Hunter Haugen [Wed, 21 May 2014 01:15:03 +0000 (18:15 -0700)]
Update specs and fix FM-1361

- Add install.rb for pre-suite
- Add catches for failures/changes to manifest application
- Correct root ssh key copying
- Add sleeps for killing processes releasing ports
- Fix FM-1361

6 years agoMerge pull request #146 from daenney/mv-optional-commands
Hunter Haugen [Wed, 21 May 2014 23:03:01 +0000 (16:03 -0700)]
Merge pull request #146 from daenney/mv-optional-commands

Un-optional the non-optional commands.

6 years agoUn-optional the non-optional commands.
Daniele Sluijters [Wed, 21 May 2014 22:16:10 +0000 (00:16 +0200)]
Un-optional the non-optional commands.

6 years agoMerge pull request #144 from johnduarte/move_protocol_tests_to_beaker
Morgan Haskel [Mon, 19 May 2014 19:07:46 +0000 (15:07 -0400)]
Merge pull request #144 from johnduarte/move_protocol_tests_to_beaker

Move protocol tests to beaker suite

6 years agoMove protocol tests to beaker suite
John Duarte [Mon, 19 May 2014 18:53:54 +0000 (11:53 -0700)]
Move protocol tests to beaker suite

The protocol tests are more closely aligned with the rest of the beaker test
suite. The beaker tests have received more vetting, so the setup and teardown
process should be less prone to failure on repeated execution.

6 years agoMerge pull request #135 from johnduarte/add_protocol_acceptance_tests
Ashley Penney [Mon, 19 May 2014 15:09:59 +0000 (08:09 -0700)]
Merge pull request #135 from johnduarte/add_protocol_acceptance_tests

Add acceptance tests for git protocols using clone

6 years agoMerge pull request #137 from johnduarte/git_ensure_latest
Ashley Penney [Mon, 19 May 2014 15:09:43 +0000 (08:09 -0700)]
Merge pull request #137 from johnduarte/git_ensure_latest

Add test for ensure latest with branch specified

6 years agoMerge pull request #141 from johnduarte/beaker_tests
Ashley Penney [Mon, 19 May 2014 15:09:32 +0000 (08:09 -0700)]
Merge pull request #141 from johnduarte/beaker_tests

Add beaker tests to complete test plan

6 years agoMerge pull request #142 from johnduarte/add_vagrant_user
Ashley Penney [Mon, 19 May 2014 15:09:23 +0000 (08:09 -0700)]
Merge pull request #142 from johnduarte/add_vagrant_user

Ensure vagrant user/group for non-vagrant testing

6 years agoMerge pull request #139 from cyberious/FM-1284
Ashley Penney [Mon, 19 May 2014 15:09:13 +0000 (08:09 -0700)]
Merge pull request #139 from cyberious/FM-1284

Fix detached head state

6 years agoEnsure vagrant user/group for non-vagrant testing
John Duarte [Mon, 5 May 2014 20:49:51 +0000 (13:49 -0700)]
Ensure vagrant user/group for non-vagrant testing

These tests assert the vagrant user and group. When testing on non-vagrant systems these tests
will fail. Ensure that the user/group are present in order to allow the tests to pass on
other systems.

6 years agoSkip exec excludes until expectations are defined
John Duarte [Mon, 19 May 2014 00:31:34 +0000 (17:31 -0700)]
Skip exec excludes until expectations are defined

6 years agoSkip HTTP basic auth (see FM-1331)
John Duarte [Mon, 19 May 2014 00:30:33 +0000 (17:30 -0700)]
Skip HTTP basic auth (see FM-1331)

6 years agoFix git daemon call
John Duarte [Mon, 19 May 2014 00:26:20 +0000 (17:26 -0700)]
Fix git daemon call

6 years agoFix exec for clone with excludes test
John Duarte [Fri, 16 May 2014 22:00:18 +0000 (15:00 -0700)]
Fix exec for clone with excludes test

6 years agoSkip tests for unsupported features
John Duarte [Fri, 16 May 2014 21:59:19 +0000 (14:59 -0700)]
Skip tests for unsupported features

6 years agoFix calls to ruby
John Duarte [Fri, 16 May 2014 21:58:17 +0000 (14:58 -0700)]
Fix calls to ruby

6 years agoUse sinatra to set up basic auth HTTP server
John Duarte [Thu, 15 May 2014 20:21:13 +0000 (13:21 -0700)]
Use sinatra to set up basic auth HTTP server

6 years agoAdd conditional ruby path based on pe
John Duarte [Thu, 15 May 2014 18:43:29 +0000 (11:43 -0700)]
Add conditional ruby path based on pe

6 years agoAdd beaker tests for git basic auth
John Duarte [Mon, 12 May 2014 21:42:56 +0000 (14:42 -0700)]
Add beaker tests for git basic auth

6 years agoFix exec test for clone
John Duarte [Mon, 12 May 2014 18:27:37 +0000 (11:27 -0700)]
Fix exec test for clone

6 years agoFix exec test for compression
John Duarte [Mon, 12 May 2014 18:24:45 +0000 (11:24 -0700)]
Fix exec test for compression

6 years agoFix exec test for shallow clone
John Duarte [Mon, 12 May 2014 18:24:16 +0000 (11:24 -0700)]
Fix exec test for shallow clone

6 years agoFix root path depth for negative shallow tests
John Duarte [Mon, 12 May 2014 18:02:15 +0000 (11:02 -0700)]
Fix root path depth for negative shallow tests

6 years agoAdd tests git using ssh scp syntax
John Duarte [Mon, 12 May 2014 17:39:37 +0000 (10:39 -0700)]
Add tests git using ssh scp syntax

6 years agoUpdate expectations for shallow clone
John Duarte [Sun, 11 May 2014 19:00:21 +0000 (12:00 -0700)]
Update expectations for shallow clone

6 years agoSet neg bare test to expect bare repo
John Duarte [Sun, 11 May 2014 15:07:10 +0000 (08:07 -0700)]
Set neg bare test to expect bare repo

6 years agoFix typos in verify steps for revision tests
John Duarte [Sun, 11 May 2014 04:40:19 +0000 (21:40 -0700)]
Fix typos in verify steps for revision tests

6 years agoMove git tests into sub-directory
John Duarte [Sun, 11 May 2014 04:13:03 +0000 (21:13 -0700)]
Move git tests into sub-directory

6 years agoAdd beaker tests for git checkout for user
John Duarte [Sun, 11 May 2014 00:48:54 +0000 (17:48 -0700)]
Add beaker tests for git checkout for user

6 years agoAdd beaker tests for git checkout for specified tag
John Duarte [Sun, 11 May 2014 00:32:57 +0000 (17:32 -0700)]
Add beaker tests for git checkout for specified tag

6 years agoAdd beaker tests for git shallow clone
John Duarte [Sun, 11 May 2014 00:19:58 +0000 (17:19 -0700)]
Add beaker tests for git shallow clone

6 years agoAdd beaker tests for git checkout for specified revision
John Duarte [Sat, 10 May 2014 23:55:09 +0000 (16:55 -0700)]
Add beaker tests for git checkout for specified revision

6 years agoAdd beaker tests for git checkout for group
John Duarte [Sat, 10 May 2014 17:24:00 +0000 (10:24 -0700)]
Add beaker tests for git checkout for group

6 years agoAdd beaker tests for git compression checkouts
John Duarte [Sat, 10 May 2014 17:12:55 +0000 (10:12 -0700)]
Add beaker tests for git compression checkouts

6 years agoAdd beaker test for git branch checkout
John Duarte [Sat, 10 May 2014 17:00:28 +0000 (10:00 -0700)]
Add beaker test for git branch checkout

6 years agoAdd beaker tests for git create
John Duarte [Sat, 10 May 2014 16:36:26 +0000 (09:36 -0700)]
Add beaker tests for git create

6 years agoAdd beaker tests for git clone
John Duarte [Fri, 9 May 2014 18:13:40 +0000 (11:13 -0700)]
Add beaker tests for git clone

6 years agoUse on(host, '') rather than host.execute('') syntax
John Duarte [Thu, 8 May 2014 20:40:44 +0000 (13:40 -0700)]
Use on(host, '') rather than host.execute('') syntax

6 years agoChange apply syntax to apply_manifest_on
John Duarte [Thu, 8 May 2014 18:55:58 +0000 (11:55 -0700)]
Change apply syntax to apply_manifest_on

6 years agoAdd test for git clone using ssh
John Duarte [Wed, 7 May 2014 00:50:06 +0000 (17:50 -0700)]
Add test for git clone using ssh

6 years agoAdd test for git clone using https
John Duarte [Tue, 6 May 2014 18:11:25 +0000 (11:11 -0700)]
Add test for git clone using https

6 years agoAdd test for git clone using http
John Duarte [Tue, 6 May 2014 15:55:51 +0000 (08:55 -0700)]
Add test for git clone using http

6 years agoAdd managehome to testuser
John Duarte [Tue, 6 May 2014 15:54:48 +0000 (08:54 -0700)]
Add managehome to testuser

In order to make sure that the home directory for the test user is
created and destroyed, add managehome to the setup and teardown
manifests for the testuser.

6 years agoMove git daemon setup/teardown into context block
John Duarte [Tue, 6 May 2014 15:52:20 +0000 (08:52 -0700)]
Move git daemon setup/teardown into context block

In order to ensure that the git daemon is running for the proper test, the setup
and teardown calls for git daemon hav been moved into the context block for
testing the git protocol.

6 years agoAdd test for git clone using file path
John Duarte [Tue, 6 May 2014 04:04:24 +0000 (21:04 -0700)]
Add test for git clone using file path

6 years agoAdd test for clone using git protocol
John Duarte [Tue, 6 May 2014 00:54:22 +0000 (17:54 -0700)]
Add test for clone using git protocol

6 years agoAdd spec for clone protocols skeleton
John Duarte [Mon, 5 May 2014 21:02:51 +0000 (14:02 -0700)]
Add spec for clone protocols skeleton

The git_clone_protocols_spec.rb will be used to enumerate over the
available protocols for git to use to clone to disk. The initial
skeleton includes the 'file://' protocol test as well as support
key files to be used later.

6 years agoAdded multiline parsing tests for branch -a
Travis Fields [Fri, 16 May 2014 23:30:58 +0000 (16:30 -0700)]
Added multiline parsing tests for branch -a

6 years agoMerge pull request #140 from cyberious/RakeTask
Morgan Haskel [Fri, 16 May 2014 22:23:33 +0000 (18:23 -0400)]
Merge pull request #140 from cyberious/RakeTask

Add rake tasks to test both beaker and beaker-rspec in one go

6 years agoAdd rake tasks to test both beaker and beaker-rspec in one go
Travis Fields [Fri, 16 May 2014 19:37:39 +0000 (12:37 -0700)]
Add rake tasks to test both beaker and beaker-rspec in one go

6 years agoFix spec tests
Travis Fields [Fri, 16 May 2014 05:32:47 +0000 (22:32 -0700)]
Fix spec tests

6 years agoupdate to use -a and desired for hard reset
Travis Fields [Fri, 16 May 2014 05:00:14 +0000 (22:00 -0700)]
update to use -a and desired for hard reset

6 years agoFix detached head state
Travis Fields [Thu, 15 May 2014 23:47:24 +0000 (16:47 -0700)]
Fix detached head state

6 years agoMerge pull request #138 from cyberious/FM-1284
Ashley Penney [Tue, 13 May 2014 21:29:28 +0000 (17:29 -0400)]
Merge pull request #138 from cyberious/FM-1284

Fix issue where force=>true was not destroying repository then recreatin...

6 years agoFix issue where force=>true was not destroying repository then recreating
Travis Fields [Tue, 13 May 2014 18:27:02 +0000 (11:27 -0700)]
Fix issue where force=>true was not destroying repository then recreating

6 years agoAdd test for ensure latest with branch specified
John Duarte [Mon, 12 May 2014 21:58:35 +0000 (14:58 -0700)]
Add test for ensure latest with branch specified

6 years agoUse on(host, '') rather than host.execute('') syntax
John Duarte [Thu, 8 May 2014 20:40:44 +0000 (13:40 -0700)]
Use on(host, '') rather than host.execute('') syntax

6 years agoChange apply syntax to apply_manifest_on
John Duarte [Thu, 8 May 2014 18:55:58 +0000 (11:55 -0700)]
Change apply syntax to apply_manifest_on

6 years agoAdd acceptance tests for git protocols using clone
John Duarte [Mon, 5 May 2014 21:02:51 +0000 (14:02 -0700)]
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.

7 years agoMerge pull request #120 from huandu/master
Ashley Penney [Thu, 3 Apr 2014 17:58:21 +0000 (13:58 -0400)]
Merge pull request #120 from huandu/master

Use `git rev-parse` to get tag canonical revision

7 years agoMerge pull request #121 from fkrull/master
Ashley Penney [Thu, 3 Apr 2014 17:57:48 +0000 (13:57 -0400)]
Merge pull request #121 from fkrull/master

Only add ssh options to commands that actually talk to the network.

7 years agoMerge pull request #131 from igalic/fix-tabbing
Ashley Penney [Thu, 3 Apr 2014 16:17:41 +0000 (12:17 -0400)]
Merge pull request #131 from igalic/fix-tabbing

fix tabbing in vcsrepo test

7 years agofix tabbing in vcsrepo test
Igor Galić [Thu, 3 Apr 2014 12:28:33 +0000 (14:28 +0200)]
fix tabbing in vcsrepo test

7 years agoMerge pull request #130 from Phil0xF7/add_beaker-rspec_tests
Hunter Haugen [Wed, 2 Apr 2014 22:52:51 +0000 (15:52 -0700)]
Merge pull request #130 from Phil0xF7/add_beaker-rspec_tests

add beaker-rspec support

7 years agoadd beaker-rspec support
Phil Pham [Fri, 14 Feb 2014 19:16:15 +0000 (11:16 -0800)]
add beaker-rspec support

This adds support for beaker-rspec as well as basic test coverage for git

7 years agoMerge pull request #108 from sodabrew/bzr_set_ownership
Aaron Stone [Mon, 31 Mar 2014 18:10:43 +0000 (11:10 -0700)]
Merge pull request #108 from sodabrew/bzr_set_ownership

Call set_ownership from the bzr provider

7 years agoCall set_ownership from the bzr provider
Aaron Stone [Tue, 3 Dec 2013 07:30:51 +0000 (01:30 -0600)]
Call set_ownership from the bzr provider

7 years agoOnly add ssh options to commands that actually talk to the network.
Felix Krull [Fri, 14 Feb 2014 21:12:42 +0000 (22:12 +0100)]
Only add ssh options to commands that actually talk to the network.

At least in Mercurial 2.8.2, --ssh seems to be a command-specific parameter in
contrast to a global one. As a result, local commands error when seeing a --ssh
parameter. This change passes --ssh only for commands that actually talk to the
network ('incoming', 'pull' and 'clone' here).

7 years agouse `git rev-parse` to get tag canonical revision.
Huan Du [Wed, 12 Feb 2014 14:40:56 +0000 (22:40 +0800)]
use `git rev-parse` to get tag canonical revision.

7 years agoMerge pull request #105 from mcanevet/no_su
Ashley Penney [Fri, 24 Jan 2014 13:52:13 +0000 (05:52 -0800)]
Merge pull request #105 from mcanevet/no_su

Don't 'su' if passed user is current user

7 years agoMerge pull request #117 from jonoterc/fix_svnlook
Aaron Stone [Tue, 14 Jan 2014 19:03:45 +0000 (11:03 -0800)]
Merge pull request #117 from jonoterc/fix_svnlook

fix svnlook behavior with plain directories

7 years agofix svnlook behavior with plain directories
jonoterc [Tue, 14 Jan 2014 17:31:26 +0000 (12:31 -0500)]
fix svnlook behavior with plain directories

svnlook expects a sub-directory within a repository called "format"; when using svnlook
within a non-repository directory this causes it to throw an error.  Adding a test for
that directory before executing svnlook.

7 years agoMerge pull request #115 from instruct-br/use_remote_name_when_cloning_a_repo
Ashley Penney [Sat, 11 Jan 2014 18:12:50 +0000 (10:12 -0800)]
Merge pull request #115 from instruct-br/use_remote_name_when_cloning_a_repo

git: actually use the remote parameter

7 years agogit: actually use the remote parameter
Miguel Di Ciurcio Filho [Sat, 11 Jan 2014 17:25:28 +0000 (15:25 -0200)]
git: actually use the remote parameter

When using the following sample, the provider does not use the value of remote
when cloning a repository:

vcsrepo {'/path/to/repo':
   ensure => 'present',
   provider => 'git',
   remote => 'test',
   source => 'git@somerepo:repo.git',
}

$ git remote
origin

This commit makes sure that the new repository has a remote with the
supplied value.

Closes #MODULES-430

7 years agoMerge pull request #114 from freyes/add-git-shallow-clone
Aaron Stone [Tue, 7 Jan 2014 19:17:49 +0000 (11:17 -0800)]
Merge pull request #114 from freyes/add-git-shallow-clone

Add the option to shallow clones with git

7 years agoAdd the option to shallow clones with git
Felipe Reyes [Thu, 2 Jan 2014 21:13:40 +0000 (18:13 -0300)]
Add the option to shallow clones with git

The new parameter used to indicate that you want a shallow clone is `:depth`

7 years agoTemporary workaround for broken Rubygems on Travis
Aaron Stone [Tue, 7 Jan 2014 18:35:17 +0000 (10:35 -0800)]
Temporary workaround for broken Rubygems on Travis

7 years agoMerge pull request #109 from mikegerwitz/master
Aaron Stone [Thu, 5 Dec 2013 05:05:03 +0000 (21:05 -0800)]
Merge pull request #109 from mikegerwitz/master

Bug fix: Git provider on_branch? retains trailing newline

7 years agoStripping git on_branch? return value; contains trailing newline
Mike Gerwitz [Tue, 3 Dec 2013 14:54:21 +0000 (09:54 -0500)]
Stripping git on_branch? return value; contains trailing newline

This commit also contains git provider `latest' method formatting changes;
squashed by request.

7 years agoMerge pull request #106 from mikegerwitz/master
Ashley Penney [Mon, 2 Dec 2013 17:30:42 +0000 (09:30 -0800)]
Merge pull request #106 from mikegerwitz/master

Correctly handle detached head for 'latest' on latest Git versions

7 years agoUsing rev-parse to determine branch name of HEAD for on_branch? method
Mike Gerwitz [Mon, 2 Dec 2013 16:38:56 +0000 (11:38 -0500)]
Using rev-parse to determine branch name of HEAD for on_branch? method

7 years agoorigin/HEAD is not valid; use origin/master for latest when branch == 'master'
Mike Gerwitz [Mon, 2 Dec 2013 16:24:15 +0000 (11:24 -0500)]
origin/HEAD is not valid; use origin/master for latest when branch == 'master'

7 years agoDon't 'su' if passed user is current user
Mickaẽl Canévet [Sun, 24 Nov 2013 09:44:37 +0000 (10:44 +0100)]
Don't 'su' if passed user is current user

7 years agoMerge pull request #102 from apenney/020-release
Ashley Penney [Wed, 13 Nov 2013 17:58:06 +0000 (09:58 -0800)]
Merge pull request #102 from apenney/020-release

Prepare 0.2.0 release.

7 years agoPrepare 0.2.0 release.
Ashley Penney [Wed, 13 Nov 2013 17:44:24 +0000 (12:44 -0500)]
Prepare 0.2.0 release.

7 years agoMerge pull request #98 from reidmv/autorequire_git
Ashley Penney [Fri, 8 Nov 2013 17:55:58 +0000 (09:55 -0800)]
Merge pull request #98 from reidmv/autorequire_git

Add autorequire for Package['git']

7 years agoAdd autorequire for Package['git']
Reid Vandewiele [Mon, 21 Oct 2013 05:19:34 +0000 (22:19 -0700)]
Add autorequire for Package['git']

If the git package is being managed, it stands to reason that the git
package should be installed before trying to potentially manage git
repositories using vcsrepo resources.

This commit adds an autorequire to the vcsrepo type that reflects the
above premise.

7 years agoMerge pull request #96 from apenney/metadata
Aaron Stone [Tue, 8 Oct 2013 22:38:28 +0000 (15:38 -0700)]
Merge pull request #96 from apenney/metadata

Add a blank dependencies section and stringify versions.

7 years agoAdd a blank dependencies section and stringify versions.
Ashley Penney [Tue, 8 Oct 2013 22:21:14 +0000 (15:21 -0700)]
Add a blank dependencies section and stringify versions.

7 years agoFM-103: Add metadata.json to all modules.
Ashley Penney [Mon, 7 Oct 2013 20:20:47 +0000 (13:20 -0700)]
FM-103: Add metadata.json to all modules.

7 years agoMerge pull request #95 from apenney/metadata
Ashley Penney [Mon, 7 Oct 2013 20:18:57 +0000 (13:18 -0700)]
Merge pull request #95 from apenney/metadata

FM-103: Add metadata.json to all modules.

7 years agoMerge pull request #93 from apenney/coverage
Aaron Stone [Tue, 1 Oct 2013 18:37:13 +0000 (11:37 -0700)]
Merge pull request #93 from apenney/coverage

Move from rspec1 to rspec2

7 years agoModifications to .travis.yml to test appropriately.
Ashley Penney [Tue, 1 Oct 2013 16:51:13 +0000 (12:51 -0400)]
Modifications to .travis.yml to test appropriately.

7 years agoAdd convert_working_copy_to_bear and convert_bare_to_working_copy tests.
Ashley Penney [Wed, 18 Sep 2013 22:48:47 +0000 (18:48 -0400)]
Add convert_working_copy_to_bear and convert_bare_to_working_copy tests.

7 years agoAdd tests for convert_working_copy_to_bare and
Ashley Penney [Wed, 18 Sep 2013 22:20:29 +0000 (18:20 -0400)]
Add tests for convert_working_copy_to_bare and
convert_bare_to_working_copy

7 years agoAdd latest tests.
Ashley Penney [Wed, 18 Sep 2013 22:16:39 +0000 (18:16 -0400)]
Add latest tests.

7 years agoAdd test for latest?
Ashley Penney [Wed, 18 Sep 2013 22:01:13 +0000 (18:01 -0400)]
Add test for latest?

Also add some fixtures for previous tests.

7 years agoOverhaul the spec tests to work in rspec2.
Ashley Penney [Wed, 18 Sep 2013 19:59:44 +0000 (15:59 -0400)]
Overhaul the spec tests to work in rspec2.

This work gets rid of the provider_example_group and reworks everything
to work properly against rspec2.  I don't know if I'd consider the style
"better" but it works.