puppet_vcsrepo.git
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 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

7 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...

7 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

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.

7 years agoMerge pull request #91 from jiacona/master
Aaron Stone [Wed, 4 Sep 2013 18:15:02 +0000 (11:15 -0700)]
Merge pull request #91 from jiacona/master

update git provider to handle checking out into an existing (empty) dir

7 years agoMerge pull request #92 from markleightonfisher/dev-README.CVS.markdown
Aaron Stone [Wed, 4 Sep 2013 18:14:06 +0000 (11:14 -0700)]
Merge pull request #92 from markleightonfisher/dev-README.CVS.markdown

Documented the "module" attribute.

7 years agoDocumented the "module" attribute.
Mark Leighton Fisher [Wed, 4 Sep 2013 14:24:38 +0000 (10:24 -0400)]
Documented the "module" attribute.

7 years agochange path_empty? to not do full directory listing
John Iacona [Wed, 28 Aug 2013 20:34:57 +0000 (16:34 -0400)]
change path_empty? to not do full directory listing

7 years agoupdate git provider to handle checking out into an existing (empty) dir
John Iacona [Wed, 28 Aug 2013 18:32:05 +0000 (14:32 -0400)]
update git provider to handle checking out into an existing (empty) dir

7 years agoMerge pull request #89 from razorsedge/svn_revision
Aaron Stone [Tue, 13 Aug 2013 05:15:23 +0000 (22:15 -0700)]
Merge pull request #89 from razorsedge/svn_revision

SVN provider should check for '^Revision:' and not '^Last Changed Rev:'

7 years agoAnd fix the rspec test to pass.
Michael Arnold [Mon, 12 Aug 2013 22:34:06 +0000 (15:34 -0700)]
And fix the rspec test to pass.

7 years agoFix svn provider to look for '^Revision:'.
Michael Arnold [Mon, 12 Aug 2013 21:53:27 +0000 (14:53 -0700)]
Fix svn provider to look for '^Revision:'.

SVN provider should check for '^Revision:' and not '^Last Changed
Rev:'.  Addresses GitHub Issue #43.

7 years agoMerge pull request #84 from sodabrew/issue_12034_svnswitch
Hunter Haugen [Tue, 30 Jul 2013 16:51:37 +0000 (09:51 -0700)]
Merge pull request #84 from sodabrew/issue_12034_svnswitch

added support for changing upstream repo url - rebase of #74

7 years agoHandle revision update without source switch.
Aaron Stone [Thu, 25 Jul 2013 16:24:51 +0000 (09:24 -0700)]
Handle revision update  without source switch.

7 years agoUpdate specs for svn switch
Aaron Stone [Thu, 25 Jul 2013 04:55:04 +0000 (21:55 -0700)]
Update specs for svn switch

7 years agoadded support for changing upstream repo url
Matthew Slowe [Tue, 2 Jul 2013 14:59:12 +0000 (15:59 +0100)]
added support for changing upstream repo url

added checks that the URL of the WC matches the URL from the manifest

changed from using "update" to "switch"

7 years agoMerge pull request #85 from sodabrew/travis_puppet_version
Aaron Stone [Thu, 25 Jul 2013 20:49:27 +0000 (13:49 -0700)]
Merge pull request #85 from sodabrew/travis_puppet_version

Try to get Travis to respect the three different puppet versions

7 years agoTravis should run three Puppet versions in a matrix with three Ruby versions, but...
Aaron Stone [Thu, 25 Jul 2013 16:30:06 +0000 (09:30 -0700)]
Travis should run three Puppet versions in a matrix with three Ruby versions, but limit Puppet 2.6.x to Ruby 1.8.7.

7 years agoMerge pull request #86 from sodabrew/puppet_util_withenv
Aaron Stone [Thu, 25 Jul 2013 19:57:21 +0000 (12:57 -0700)]
Merge pull request #86 from sodabrew/puppet_util_withenv

Correct use of withenv

7 years agoThe location of Puppet::Util[::Execution].withenv changed from Puppet 2.x to 3.x
Aaron Stone [Thu, 25 Jul 2013 19:09:51 +0000 (12:09 -0700)]
The location of Puppet::Util[::Execution].withenv changed from Puppet 2.x to 3.x

7 years agoStyle adjustment
Aaron Stone [Fri, 19 Jul 2013 18:52:12 +0000 (11:52 -0700)]
Style adjustment

7 years agoMerge pull request #83 from sodabrew/issue_8331_svnlook
Aaron Stone [Fri, 19 Jul 2013 19:50:48 +0000 (12:50 -0700)]
Merge pull request #83 from sodabrew/issue_8331_svnlook

Add support for master svn repositories

7 years agoStyle and comments
Aaron Stone [Fri, 19 Jul 2013 19:35:23 +0000 (12:35 -0700)]
Style and comments

7 years agoAdd support for master svn repositories
5Ub-Z3r0 [Wed, 10 Oct 2012 14:38:03 +0000 (17:38 +0300)]
Add support for master svn repositories

Pull request related to issue #8331.
I have added support into the exists? method (actually working_copy_exists?) for checking if the path is a master repository, using svnlook. It should be ok in most cases, since svnlook comes with svnadmin in nearly every distribution.

7 years agoWhitespace
Aaron Stone [Fri, 19 Jul 2013 18:28:24 +0000 (11:28 -0700)]
Whitespace

7 years agoWhitespace
Aaron Stone [Fri, 19 Jul 2013 18:15:37 +0000 (11:15 -0700)]
Whitespace

7 years agoMerge pull request #82 from webfactory/issue-10791
Aaron Stone [Fri, 19 Jul 2013 18:10:29 +0000 (11:10 -0700)]
Merge pull request #82 from webfactory/issue-10791

Allow for setting the CVS_RSH environment variable

7 years agoAllow for setting the CVS_RSH environment variable
Matthias Pigulla [Sat, 12 Nov 2011 16:53:26 +0000 (17:53 +0100)]
Allow for setting the CVS_RSH environment variable

7 years agoMerge pull request #81 from sepulworld/svn-configurtation-parameter
Aaron Stone [Thu, 18 Jul 2013 04:26:50 +0000 (21:26 -0700)]
Merge pull request #81 from sepulworld/svn-configurtation-parameter

Adding svn configuration parameter, and docs

7 years agoAdding svn configuration parameter, and docs
zane [Thu, 18 Jul 2013 03:32:26 +0000 (20:32 -0700)]
Adding svn configuration parameter, and docs

7 years agoUse git checkout --force instead of short -f everywhere
Aaron Stone [Wed, 17 Jul 2013 21:33:36 +0000 (14:33 -0700)]
Use git checkout --force instead of short -f everywhere