crowbar-client 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +7 -0
- data/lib/crowbar/client/app.rb +3 -0
- data/lib/crowbar/client/app/entry.rb +4 -0
- data/lib/crowbar/client/app/upgrade.rb +280 -0
- data/lib/crowbar/client/command.rb +3 -0
- data/lib/crowbar/client/command/upgrade.rb +50 -0
- data/lib/crowbar/client/command/upgrade/backup.rb +45 -0
- data/lib/crowbar/client/command/upgrade/crowbar.rb +45 -0
- data/lib/crowbar/client/command/upgrade/node.rb +45 -0
- data/lib/crowbar/client/command/upgrade/prechecks.rb +61 -0
- data/lib/crowbar/client/command/upgrade/prepare.rb +45 -0
- data/lib/crowbar/client/command/upgrade/repocheck.rb +61 -0
- data/lib/crowbar/client/command/upgrade/services.rb +45 -0
- data/lib/crowbar/client/command/upgrade/status.rb +61 -0
- data/lib/crowbar/client/config.rb +2 -4
- data/lib/crowbar/client/request.rb +3 -0
- data/lib/crowbar/client/request/upgrade.rb +50 -0
- data/lib/crowbar/client/request/upgrade/backup.rb +83 -0
- data/lib/crowbar/client/request/upgrade/crowbar.rb +63 -0
- data/lib/crowbar/client/request/upgrade/node.rb +75 -0
- data/lib/crowbar/client/request/upgrade/prechecks.rb +63 -0
- data/lib/crowbar/client/request/upgrade/prepare.rb +63 -0
- data/lib/crowbar/client/request/upgrade/repocheck.rb +72 -0
- data/lib/crowbar/client/request/upgrade/services.rb +63 -0
- data/lib/crowbar/client/request/upgrade/status.rb +62 -0
- data/lib/crowbar/client/version.rb +2 -2
- data/spec/crowbar/client/command/upgrade/backup_spec.rb +34 -0
- data/spec/crowbar/client/command/upgrade/crowbar_spec.rb +31 -0
- data/spec/crowbar/client/command/upgrade/node_spec.rb +32 -0
- data/spec/crowbar/client/command/upgrade/prechecks_spec.rb +31 -0
- data/spec/crowbar/client/command/upgrade/prepare_spec.rb +31 -0
- data/spec/crowbar/client/command/upgrade/repocheck_spec.rb +34 -0
- data/spec/crowbar/client/command/upgrade/services_spec.rb +31 -0
- data/spec/crowbar/client/command/upgrade/status_spec.rb +31 -0
- data/spec/crowbar/client/request/backup/create_spec.rb +4 -0
- data/spec/crowbar/client/request/backup/delete_spec.rb +4 -0
- data/spec/crowbar/client/request/backup/download_spec.rb +4 -0
- data/spec/crowbar/client/request/backup/list_spec.rb +4 -0
- data/spec/crowbar/client/request/backup/restore_spec.rb +4 -0
- data/spec/crowbar/client/request/backup/upload_spec.rb +4 -0
- data/spec/crowbar/client/request/{party_spec.rb → rest_spec.rb} +3 -3
- data/spec/crowbar/client/request/upgrade/backup_spec.rb +53 -0
- data/spec/crowbar/client/request/upgrade/crowbar_spec.rb +53 -0
- data/spec/crowbar/client/request/upgrade/node_spec.rb +55 -0
- data/spec/crowbar/client/request/upgrade/prechecks_spec.rb +53 -0
- data/spec/crowbar/client/request/upgrade/prepare_spec.rb +53 -0
- data/spec/crowbar/client/request/upgrade/repocheck_spec.rb +56 -0
- data/spec/crowbar/client/request/upgrade/services_spec.rb +53 -0
- data/spec/crowbar/client/request/upgrade/status_spec.rb +53 -0
- metadata +55 -4
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Crowbar" do
         | 
| 21 | 
            +
              it_behaves_like "a request class", true do
         | 
| 22 | 
            +
                subject do
         | 
| 23 | 
            +
                  ::Crowbar::Client::Request::Upgrade::Crowbar.new(
         | 
| 24 | 
            +
                    attrs
         | 
| 25 | 
            +
                  )
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                let!(:attrs) do
         | 
| 29 | 
            +
                  {
         | 
| 30 | 
            +
                  }
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                let!(:params) do
         | 
| 34 | 
            +
                  {
         | 
| 35 | 
            +
                  }
         | 
| 36 | 
            +
                end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                let!(:method) do
         | 
| 39 | 
            +
                  :post
         | 
| 40 | 
            +
                end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                let!(:url) do
         | 
| 43 | 
            +
                  "api/crowbar/upgrade"
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                let!(:headers) do
         | 
| 47 | 
            +
                  {
         | 
| 48 | 
            +
                    "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 49 | 
            +
                    "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 50 | 
            +
                  }
         | 
| 51 | 
            +
                end
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
            end
         | 
| @@ -0,0 +1,55 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Node" do
         | 
| 21 | 
            +
              it_behaves_like "a request class", true do
         | 
| 22 | 
            +
                subject do
         | 
| 23 | 
            +
                  ::Crowbar::Client::Request::Upgrade::Node.new(
         | 
| 24 | 
            +
                    attrs
         | 
| 25 | 
            +
                  )
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                let!(:attrs) do
         | 
| 29 | 
            +
                  {
         | 
| 30 | 
            +
                    node: 1
         | 
| 31 | 
            +
                  }
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                let!(:params) do
         | 
| 35 | 
            +
                  {
         | 
| 36 | 
            +
                    node: 1
         | 
| 37 | 
            +
                  }
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                let!(:method) do
         | 
| 41 | 
            +
                  :post
         | 
| 42 | 
            +
                end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                let!(:url) do
         | 
| 45 | 
            +
                  "api/nodes/1/upgrade"
         | 
| 46 | 
            +
                end
         | 
| 47 | 
            +
             | 
| 48 | 
            +
                let!(:headers) do
         | 
| 49 | 
            +
                  {
         | 
| 50 | 
            +
                    "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 51 | 
            +
                    "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 52 | 
            +
                  }
         | 
| 53 | 
            +
                end
         | 
| 54 | 
            +
              end
         | 
| 55 | 
            +
            end
         | 
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Prechecks" do
         | 
| 21 | 
            +
              it_behaves_like "a request class", true do
         | 
| 22 | 
            +
                subject do
         | 
| 23 | 
            +
                  ::Crowbar::Client::Request::Upgrade::Prechecks.new(
         | 
| 24 | 
            +
                    attrs
         | 
| 25 | 
            +
                  )
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                let!(:attrs) do
         | 
| 29 | 
            +
                  {
         | 
| 30 | 
            +
                  }
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                let!(:params) do
         | 
| 34 | 
            +
                  {
         | 
| 35 | 
            +
                  }
         | 
| 36 | 
            +
                end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                let!(:method) do
         | 
| 39 | 
            +
                  :get
         | 
| 40 | 
            +
                end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                let!(:url) do
         | 
| 43 | 
            +
                  "api/upgrade/prechecks"
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                let!(:headers) do
         | 
| 47 | 
            +
                  {
         | 
| 48 | 
            +
                    "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 49 | 
            +
                    "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 50 | 
            +
                  }
         | 
| 51 | 
            +
                end
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
            end
         | 
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Prepare" do
         | 
| 21 | 
            +
              it_behaves_like "a request class", true do
         | 
| 22 | 
            +
                subject do
         | 
| 23 | 
            +
                  ::Crowbar::Client::Request::Upgrade::Prepare.new(
         | 
| 24 | 
            +
                    attrs
         | 
| 25 | 
            +
                  )
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                let!(:attrs) do
         | 
| 29 | 
            +
                  {
         | 
| 30 | 
            +
                  }
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                let!(:params) do
         | 
| 34 | 
            +
                  {
         | 
| 35 | 
            +
                  }
         | 
| 36 | 
            +
                end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                let!(:method) do
         | 
| 39 | 
            +
                  :post
         | 
| 40 | 
            +
                end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                let!(:url) do
         | 
| 43 | 
            +
                  "api/upgrade/prepare"
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                let!(:headers) do
         | 
| 47 | 
            +
                  {
         | 
| 48 | 
            +
                    "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 49 | 
            +
                    "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 50 | 
            +
                  }
         | 
| 51 | 
            +
                end
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
            end
         | 
| @@ -0,0 +1,56 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Repocheck" do
         | 
| 21 | 
            +
              [["clusters", "ha"], ["storages", "storage"]].each do |addon|
         | 
| 22 | 
            +
                it_behaves_like "a request class", true do
         | 
| 23 | 
            +
                  subject do
         | 
| 24 | 
            +
                    ::Crowbar::Client::Request::Upgrade::Repocheck.new(
         | 
| 25 | 
            +
                      attrs
         | 
| 26 | 
            +
                    )
         | 
| 27 | 
            +
                  end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                  let!(:attrs) do
         | 
| 30 | 
            +
                    {
         | 
| 31 | 
            +
                      addon: addon.last
         | 
| 32 | 
            +
                    }
         | 
| 33 | 
            +
                  end
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                  let!(:params) do
         | 
| 36 | 
            +
                    {
         | 
| 37 | 
            +
                    }
         | 
| 38 | 
            +
                  end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                  let!(:method) do
         | 
| 41 | 
            +
                    :get
         | 
| 42 | 
            +
                  end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                  let!(:url) do
         | 
| 45 | 
            +
                    "api/#{addon.first}/repocheck"
         | 
| 46 | 
            +
                  end
         | 
| 47 | 
            +
             | 
| 48 | 
            +
                  let!(:headers) do
         | 
| 49 | 
            +
                    {
         | 
| 50 | 
            +
                      "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 51 | 
            +
                      "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 52 | 
            +
                    }
         | 
| 53 | 
            +
                  end
         | 
| 54 | 
            +
                end
         | 
| 55 | 
            +
              end
         | 
| 56 | 
            +
            end
         | 
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Services" do
         | 
| 21 | 
            +
              it_behaves_like "a request class", true do
         | 
| 22 | 
            +
                subject do
         | 
| 23 | 
            +
                  ::Crowbar::Client::Request::Upgrade::Services.new(
         | 
| 24 | 
            +
                    attrs
         | 
| 25 | 
            +
                  )
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                let!(:attrs) do
         | 
| 29 | 
            +
                  {
         | 
| 30 | 
            +
                  }
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                let!(:params) do
         | 
| 34 | 
            +
                  {
         | 
| 35 | 
            +
                  }
         | 
| 36 | 
            +
                end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                let!(:method) do
         | 
| 39 | 
            +
                  :post
         | 
| 40 | 
            +
                end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                let!(:url) do
         | 
| 43 | 
            +
                  "api/upgrade/services"
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                let!(:headers) do
         | 
| 47 | 
            +
                  {
         | 
| 48 | 
            +
                    "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 49 | 
            +
                    "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 50 | 
            +
                  }
         | 
| 51 | 
            +
                end
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
            end
         | 
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
             | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # Copyright 2016, SUSE Linux GmbH
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
            #
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            require_relative "../../../../spec_helper"
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            describe "Crowbar::Client::Request::Upgrade::Status" do
         | 
| 21 | 
            +
              it_behaves_like "a request class", true do
         | 
| 22 | 
            +
                subject do
         | 
| 23 | 
            +
                  ::Crowbar::Client::Request::Upgrade::Status.new(
         | 
| 24 | 
            +
                    attrs
         | 
| 25 | 
            +
                  )
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                let!(:attrs) do
         | 
| 29 | 
            +
                  {
         | 
| 30 | 
            +
                  }
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                let!(:params) do
         | 
| 34 | 
            +
                  {
         | 
| 35 | 
            +
                  }
         | 
| 36 | 
            +
                end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                let!(:method) do
         | 
| 39 | 
            +
                  :get
         | 
| 40 | 
            +
                end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                let!(:url) do
         | 
| 43 | 
            +
                  "api/upgrade"
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                let!(:headers) do
         | 
| 47 | 
            +
                  {
         | 
| 48 | 
            +
                    "Content-Type" => "application/vnd.crowbar.v2.0+json",
         | 
| 49 | 
            +
                    "Accept" => "application/vnd.crowbar.v2.0+json"
         | 
| 50 | 
            +
                  }
         | 
| 51 | 
            +
                end
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: crowbar-client
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.0 | 
| 4 | 
            +
              version: 3.1.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Thomas Boerger
         | 
| @@ -10,7 +10,7 @@ authors: | |
| 10 10 | 
             
            autorequire: 
         | 
| 11 11 | 
             
            bindir: bin
         | 
| 12 12 | 
             
            cert_chain: []
         | 
| 13 | 
            -
            date: 2016-08- | 
| 13 | 
            +
            date: 2016-08-23 00:00:00.000000000 Z
         | 
| 14 14 | 
             
            dependencies:
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 16 16 | 
             
              name: bundler
         | 
| @@ -247,6 +247,7 @@ files: | |
| 247 247 | 
             
            - lib/crowbar/client/app/repository.rb
         | 
| 248 248 | 
             
            - lib/crowbar/client/app/role.rb
         | 
| 249 249 | 
             
            - lib/crowbar/client/app/server.rb
         | 
| 250 | 
            +
            - lib/crowbar/client/app/upgrade.rb
         | 
| 250 251 | 
             
            - lib/crowbar/client/app/virtual_ip.rb
         | 
| 251 252 | 
             
            - lib/crowbar/client/command.rb
         | 
| 252 253 | 
             
            - lib/crowbar/client/command/backup.rb
         | 
| @@ -311,6 +312,15 @@ files: | |
| 311 312 | 
             
            - lib/crowbar/client/command/server.rb
         | 
| 312 313 | 
             
            - lib/crowbar/client/command/server/api.rb
         | 
| 313 314 | 
             
            - lib/crowbar/client/command/server/check.rb
         | 
| 315 | 
            +
            - lib/crowbar/client/command/upgrade.rb
         | 
| 316 | 
            +
            - lib/crowbar/client/command/upgrade/backup.rb
         | 
| 317 | 
            +
            - lib/crowbar/client/command/upgrade/crowbar.rb
         | 
| 318 | 
            +
            - lib/crowbar/client/command/upgrade/node.rb
         | 
| 319 | 
            +
            - lib/crowbar/client/command/upgrade/prechecks.rb
         | 
| 320 | 
            +
            - lib/crowbar/client/command/upgrade/prepare.rb
         | 
| 321 | 
            +
            - lib/crowbar/client/command/upgrade/repocheck.rb
         | 
| 322 | 
            +
            - lib/crowbar/client/command/upgrade/services.rb
         | 
| 323 | 
            +
            - lib/crowbar/client/command/upgrade/status.rb
         | 
| 314 324 | 
             
            - lib/crowbar/client/command/virtual_ip.rb
         | 
| 315 325 | 
             
            - lib/crowbar/client/command/virtual_ip/allocate.rb
         | 
| 316 326 | 
             
            - lib/crowbar/client/command/virtual_ip/deallocate.rb
         | 
| @@ -395,6 +405,15 @@ files: | |
| 395 405 | 
             
            - lib/crowbar/client/request/server.rb
         | 
| 396 406 | 
             
            - lib/crowbar/client/request/server/api.rb
         | 
| 397 407 | 
             
            - lib/crowbar/client/request/server/check.rb
         | 
| 408 | 
            +
            - lib/crowbar/client/request/upgrade.rb
         | 
| 409 | 
            +
            - lib/crowbar/client/request/upgrade/backup.rb
         | 
| 410 | 
            +
            - lib/crowbar/client/request/upgrade/crowbar.rb
         | 
| 411 | 
            +
            - lib/crowbar/client/request/upgrade/node.rb
         | 
| 412 | 
            +
            - lib/crowbar/client/request/upgrade/prechecks.rb
         | 
| 413 | 
            +
            - lib/crowbar/client/request/upgrade/prepare.rb
         | 
| 414 | 
            +
            - lib/crowbar/client/request/upgrade/repocheck.rb
         | 
| 415 | 
            +
            - lib/crowbar/client/request/upgrade/services.rb
         | 
| 416 | 
            +
            - lib/crowbar/client/request/upgrade/status.rb
         | 
| 398 417 | 
             
            - lib/crowbar/client/request/virtual_ip.rb
         | 
| 399 418 | 
             
            - lib/crowbar/client/request/virtual_ip/allocate.rb
         | 
| 400 419 | 
             
            - lib/crowbar/client/request/virtual_ip/deallocate.rb
         | 
| @@ -454,6 +473,14 @@ files: | |
| 454 473 | 
             
            - spec/crowbar/client/command/role/show_spec.rb
         | 
| 455 474 | 
             
            - spec/crowbar/client/command/server/api_spec.rb
         | 
| 456 475 | 
             
            - spec/crowbar/client/command/server/check_spec.rb
         | 
| 476 | 
            +
            - spec/crowbar/client/command/upgrade/backup_spec.rb
         | 
| 477 | 
            +
            - spec/crowbar/client/command/upgrade/crowbar_spec.rb
         | 
| 478 | 
            +
            - spec/crowbar/client/command/upgrade/node_spec.rb
         | 
| 479 | 
            +
            - spec/crowbar/client/command/upgrade/prechecks_spec.rb
         | 
| 480 | 
            +
            - spec/crowbar/client/command/upgrade/prepare_spec.rb
         | 
| 481 | 
            +
            - spec/crowbar/client/command/upgrade/repocheck_spec.rb
         | 
| 482 | 
            +
            - spec/crowbar/client/command/upgrade/services_spec.rb
         | 
| 483 | 
            +
            - spec/crowbar/client/command/upgrade/status_spec.rb
         | 
| 457 484 | 
             
            - spec/crowbar/client/command/virtual_ip/allocate_spec.rb
         | 
| 458 485 | 
             
            - spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
         | 
| 459 486 | 
             
            - spec/crowbar/client/filter/array_spec.rb
         | 
| @@ -486,7 +513,6 @@ files: | |
| 486 513 | 
             
            - spec/crowbar/client/request/node/show_spec.rb
         | 
| 487 514 | 
             
            - spec/crowbar/client/request/node/status_spec.rb
         | 
| 488 515 | 
             
            - spec/crowbar/client/request/node/transition_spec.rb
         | 
| 489 | 
            -
            - spec/crowbar/client/request/party_spec.rb
         | 
| 490 516 | 
             
            - spec/crowbar/client/request/proposal/commit_spec.rb
         | 
| 491 517 | 
             
            - spec/crowbar/client/request/proposal/create_spec.rb
         | 
| 492 518 | 
             
            - spec/crowbar/client/request/proposal/delete_spec.rb
         | 
| @@ -501,10 +527,19 @@ files: | |
| 501 527 | 
             
            - spec/crowbar/client/request/repository/deactivate_all_spec.rb
         | 
| 502 528 | 
             
            - spec/crowbar/client/request/repository/deactivate_spec.rb
         | 
| 503 529 | 
             
            - spec/crowbar/client/request/repository/list_spec.rb
         | 
| 530 | 
            +
            - spec/crowbar/client/request/rest_spec.rb
         | 
| 504 531 | 
             
            - spec/crowbar/client/request/role/list_spec.rb
         | 
| 505 532 | 
             
            - spec/crowbar/client/request/role/show_spec.rb
         | 
| 506 533 | 
             
            - spec/crowbar/client/request/server/api_spec.rb
         | 
| 507 534 | 
             
            - spec/crowbar/client/request/server/check_spec.rb
         | 
| 535 | 
            +
            - spec/crowbar/client/request/upgrade/backup_spec.rb
         | 
| 536 | 
            +
            - spec/crowbar/client/request/upgrade/crowbar_spec.rb
         | 
| 537 | 
            +
            - spec/crowbar/client/request/upgrade/node_spec.rb
         | 
| 538 | 
            +
            - spec/crowbar/client/request/upgrade/prechecks_spec.rb
         | 
| 539 | 
            +
            - spec/crowbar/client/request/upgrade/prepare_spec.rb
         | 
| 540 | 
            +
            - spec/crowbar/client/request/upgrade/repocheck_spec.rb
         | 
| 541 | 
            +
            - spec/crowbar/client/request/upgrade/services_spec.rb
         | 
| 542 | 
            +
            - spec/crowbar/client/request/upgrade/status_spec.rb
         | 
| 508 543 | 
             
            - spec/crowbar/client/request/virtual_ip/allocate_spec.rb
         | 
| 509 544 | 
             
            - spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
         | 
| 510 545 | 
             
            - spec/crowbar/client/util/editor_spec.rb
         | 
| @@ -593,6 +628,14 @@ test_files: | |
| 593 628 | 
             
            - spec/crowbar/client/command/role/show_spec.rb
         | 
| 594 629 | 
             
            - spec/crowbar/client/command/server/api_spec.rb
         | 
| 595 630 | 
             
            - spec/crowbar/client/command/server/check_spec.rb
         | 
| 631 | 
            +
            - spec/crowbar/client/command/upgrade/backup_spec.rb
         | 
| 632 | 
            +
            - spec/crowbar/client/command/upgrade/crowbar_spec.rb
         | 
| 633 | 
            +
            - spec/crowbar/client/command/upgrade/node_spec.rb
         | 
| 634 | 
            +
            - spec/crowbar/client/command/upgrade/prechecks_spec.rb
         | 
| 635 | 
            +
            - spec/crowbar/client/command/upgrade/prepare_spec.rb
         | 
| 636 | 
            +
            - spec/crowbar/client/command/upgrade/repocheck_spec.rb
         | 
| 637 | 
            +
            - spec/crowbar/client/command/upgrade/services_spec.rb
         | 
| 638 | 
            +
            - spec/crowbar/client/command/upgrade/status_spec.rb
         | 
| 596 639 | 
             
            - spec/crowbar/client/command/virtual_ip/allocate_spec.rb
         | 
| 597 640 | 
             
            - spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
         | 
| 598 641 | 
             
            - spec/crowbar/client/filter/array_spec.rb
         | 
| @@ -625,7 +668,6 @@ test_files: | |
| 625 668 | 
             
            - spec/crowbar/client/request/node/show_spec.rb
         | 
| 626 669 | 
             
            - spec/crowbar/client/request/node/status_spec.rb
         | 
| 627 670 | 
             
            - spec/crowbar/client/request/node/transition_spec.rb
         | 
| 628 | 
            -
            - spec/crowbar/client/request/party_spec.rb
         | 
| 629 671 | 
             
            - spec/crowbar/client/request/proposal/commit_spec.rb
         | 
| 630 672 | 
             
            - spec/crowbar/client/request/proposal/create_spec.rb
         | 
| 631 673 | 
             
            - spec/crowbar/client/request/proposal/delete_spec.rb
         | 
| @@ -640,10 +682,19 @@ test_files: | |
| 640 682 | 
             
            - spec/crowbar/client/request/repository/deactivate_all_spec.rb
         | 
| 641 683 | 
             
            - spec/crowbar/client/request/repository/deactivate_spec.rb
         | 
| 642 684 | 
             
            - spec/crowbar/client/request/repository/list_spec.rb
         | 
| 685 | 
            +
            - spec/crowbar/client/request/rest_spec.rb
         | 
| 643 686 | 
             
            - spec/crowbar/client/request/role/list_spec.rb
         | 
| 644 687 | 
             
            - spec/crowbar/client/request/role/show_spec.rb
         | 
| 645 688 | 
             
            - spec/crowbar/client/request/server/api_spec.rb
         | 
| 646 689 | 
             
            - spec/crowbar/client/request/server/check_spec.rb
         | 
| 690 | 
            +
            - spec/crowbar/client/request/upgrade/backup_spec.rb
         | 
| 691 | 
            +
            - spec/crowbar/client/request/upgrade/crowbar_spec.rb
         | 
| 692 | 
            +
            - spec/crowbar/client/request/upgrade/node_spec.rb
         | 
| 693 | 
            +
            - spec/crowbar/client/request/upgrade/prechecks_spec.rb
         | 
| 694 | 
            +
            - spec/crowbar/client/request/upgrade/prepare_spec.rb
         | 
| 695 | 
            +
            - spec/crowbar/client/request/upgrade/repocheck_spec.rb
         | 
| 696 | 
            +
            - spec/crowbar/client/request/upgrade/services_spec.rb
         | 
| 697 | 
            +
            - spec/crowbar/client/request/upgrade/status_spec.rb
         | 
| 647 698 | 
             
            - spec/crowbar/client/request/virtual_ip/allocate_spec.rb
         | 
| 648 699 | 
             
            - spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
         | 
| 649 700 | 
             
            - spec/crowbar/client/util/editor_spec.rb
         |