vagrant-skytap 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/vagrant-skytap/api/client.rb +1 -5
- data/lib/vagrant-skytap/version.rb +1 -1
- metadata +2 -3
- data/spec/unit/api_client_spec.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 480e7f83e5897c107eba4d963a38d2ee78f99c03
|
4
|
+
data.tar.gz: f16ac5755836f903b00b5e17fc869047fac346ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7d04b62bea856d4e2793959e8e1eda1e440ca448d76ef9d9d410d70ac6609bb8ea4533bf0852bc12bca49506036391871d06a807e418fdff8638fdc5cb1a36
|
7
|
+
data.tar.gz: 6bbdfa1364406c86af282ef10fee557d344376334d685b06576f9be9d55432b7956caa2a9705c781c954d29c1509be9b9be6896267ef7e9917b557676950b24f
|
data/CHANGELOG.md
CHANGED
@@ -129,16 +129,12 @@ module VagrantPlugins
|
|
129
129
|
|
130
130
|
private
|
131
131
|
|
132
|
-
def user_agent_string
|
133
|
-
"Vagrant-Skytap/#{VERSION} Vagrant/#{Vagrant::VERSION}"
|
134
|
-
end
|
135
132
|
|
136
133
|
def default_headers
|
137
134
|
{
|
138
135
|
'Authorization' => auth_header,
|
139
136
|
'Content-Type' => 'application/json',
|
140
|
-
'Accept' => 'application/json'
|
141
|
-
'User-Agent' => user_agent_string,
|
137
|
+
'Accept' => 'application/json'
|
142
138
|
}
|
143
139
|
end
|
144
140
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-skytap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric True
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-02-
|
12
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -214,7 +214,6 @@ files:
|
|
214
214
|
- spec/spec_helper.rb
|
215
215
|
- spec/unit/actions/compose_environment_spec.rb
|
216
216
|
- spec/unit/actions/update_hardware_spec.rb
|
217
|
-
- spec/unit/api_client_spec.rb
|
218
217
|
- spec/unit/base.rb
|
219
218
|
- spec/unit/config_spec.rb
|
220
219
|
- spec/unit/credentials_spec.rb
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# Copyright (c) 2014-2016 Skytap, Inc.
|
2
|
-
#
|
3
|
-
# The MIT License (MIT)
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in
|
13
|
-
# all copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
20
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
21
|
-
# DEALINGS IN THE SOFTWARE.
|
22
|
-
|
23
|
-
require_relative 'base'
|
24
|
-
require "vagrant-skytap/api/client"
|
25
|
-
|
26
|
-
describe VagrantPlugins::Skytap::API::Client do
|
27
|
-
include_context "rest_api"
|
28
|
-
|
29
|
-
let(:provider_config) do
|
30
|
-
double(:provider_config, vm_url: "/vms/1", username: "jsmith", api_token: "123123", base_url: base_url)
|
31
|
-
end
|
32
|
-
let(:instance) { described_class.new(provider_config) }
|
33
|
-
|
34
|
-
before :each do
|
35
|
-
stub_request(:get, /.*/).to_return(body: "{}", status: 200)
|
36
|
-
end
|
37
|
-
|
38
|
-
describe "user_agent_string" do
|
39
|
-
subject do
|
40
|
-
instance.send(:user_agent_string)
|
41
|
-
end
|
42
|
-
it {should match %r{^Vagrant-Skytap/.* Vagrant/.*}}
|
43
|
-
end
|
44
|
-
end
|