summaryrefslogtreecommitdiff
path: root/spec/unit/module_tool/applications/upgrader_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2014-07-22Merge remote-tracking branch 'upstream/stable'Josh Partlow1-0/+11
* upstream/stable: (maint) Confine enc_provides_node_when_store_configs_enabled to debian (PUP-2943) Update acceptance tests (PUP-2943) Clean ignore-changes uninstall logic (PUP-2943) Uninstall/upgrade ignore changes spec (PUP-2943) Add PMT --ignore-changes
2014-07-22(PUP-2943) Uninstall/upgrade ignore changes specBrandon High1-0/+11
Adding more spec tests for the --ignore-changes flag on uninstall/upgrade
2014-07-17(PUP-2882) Fix single available upgradeBrandon High1-0/+11
Prior to this commit `puppet module upgrade` would fail with an error message about not being able to satisfy the upgrade when there is only one published release of the module. This commit changes the error message to say that there is no version to upgrade to. This should reduce some user confusion.
2014-04-17(PUP-2093) Improve documentation and test names.Pieter van de Bruggen1-18/+27
Prior to this commit, there were a number of places where documentation was missing and test names were insufficiently descriptive. This commit adds additional clarity around those places, and makes a couple of code clarity changes as well.
2014-04-04(PUP-2093) Migrate PMT to /v3 API.Pieter van de Bruggen1-18/+277
Prior to this commit, the PMT managed all communication with the Forge via the (now legacy) /v1 API. That API has been deprecated (primarily due to scalability concerns), which is less of an issue since it was never officially a public API. This commit migrates all communication to the Forge to the new /v3 API, which is expected to be launched as our official public API "soon". This commit also integrates a standalone dependency resolver, as the /v3 API contains no implicit dependency resolution (as the /v1 API did); consequently, large portions of the PMT code have been changed, and others have become unreachable. This commit also changes the default host that the PMT communicates with, from https://forge.puppetlabs.com to https://forgeapi.puppetlabs.com (the natural URL for the Forge API service). Since the tool now expects to communicate with a completely different service, it will be unable to communicate with services that do not implement the same /v3 API.
2012-05-11(#14387) Puppet's Module face should send a User-AgentAndrew Parker1-3/+0
The User-Agent will provide the server with some information about the version of the module tool, the version of puppet, and the version of ruby that is being used. This commit also ensures that Puppet::Forge does not depend on the Puppet::Face code. In order to achieve that the module face now is responsible for creating the correct Puppet::Forge object and handing that to the various components of the face for execution. The Puppet::Face now provides an interface for interacting with the repository in ways that various users were doing by asking for the repository directly.
2012-04-24Merge 2.7.x into master.Daniel Pittman1-1/+1
This manually fixes up a pile of Puppet Module Tool conflicts by hand, related to overlapping changes with nothing but textual translation. The rest of the merge was smooth and simple. Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
2012-04-23(#13682) Rename Puppet::Module::Tool to Puppet::ModuleToolJeff McCune1-1/+1
Without this patch, Puppet will monkey patch the existing implementation of the puppet-module Gem if it is used. This is bad because the two implementations are all jumbled up inside of one another and behavior may become unpredictable. Warnings are also displayed directly to the end user in the form of redefined constants. This patch fixes the problem by renaming Puppet::Module::Tool inside of Puppet to Puppet::ModuleTool This fixes the problem because Puppet will no longer monkey-patch the Puppet::Module::Tool module inside of the puppet-module Gem. This patch also has the added benefit of making the Module's name match up with the CamelCase filepath (puppet/module_tool/ => Puppet::ModuleTool) As a result, no file moves are necessary.
2012-04-18Use conditional pending to block out "fails_on_windows" tests.Daniel Pittman1-1/+1
A whole bunch of tests scattered through the system fail on Windows, around features that are not supported on that platform. (They are things that only the master does, which an agent-only platform doesn't need to support.) These were tagged `fails_on_windows` to allow filtering them from rspec runs, which is great, but doesn't actually communicate nearly as much useful information as it would if we used the "conditionally pending" facilities that rspec has supported since 2.3. That gives us two key things: one, it works automatically based on our knowledge of the platform, which means you can't forget to turn off failing tests. Two, it means that if the test starts unexpectedly passing we also get a failure, since we should respond to "works when it shouldn't" as seriously as "fails when it shouldn't". Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
2012-03-30Add Module ToolMatt Robinson1-0/+37
This rather large commit includes all the work needed to get the `puppet module` face in Puppet with all it's actions. I tried to break this up into smaller commits, but it was difficult to do so and keep the individual commits in a state that had passing specs since many changes in shared module_tool code affected multiple actions. This code was developed in an integration branch over a few montsh and is now being merged back into Puppet core in the same state that shipped with Puppet Enterprise 2.5. The work here was done by Pieter van de Bruggen <pieter@puppetlabs.com>, Kelsey Hightower <kelsey@puppetlabs.com> and myself.