misty 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/misty/client.rb +0 -1
  3. data/lib/misty/http/request.rb +2 -0
  4. data/lib/misty/openstack/aodh/aodh_v2.rb +6 -1
  5. data/lib/misty/openstack/ceilometer/ceilometer_v2.rb +6 -1
  6. data/lib/misty/openstack/cinder/cinder_v1.rb +4 -0
  7. data/lib/misty/openstack/cinder/cinder_v2.rb +65 -54
  8. data/lib/misty/openstack/cinder/cinder_v3.rb +61 -8
  9. data/lib/misty/openstack/cinder/v2.rb +2 -1
  10. data/lib/misty/openstack/designate/designate_v2.rb +4 -0
  11. data/lib/misty/openstack/freezer/freezer_v1.rb +4 -0
  12. data/lib/misty/openstack/glance/glance_v1.rb +4 -0
  13. data/lib/misty/openstack/glance/glance_v2.rb +7 -0
  14. data/lib/misty/openstack/heat/heat_v1.rb +5 -0
  15. data/lib/misty/openstack/ironic/ironic_v1.rb +26 -3
  16. data/lib/misty/openstack/karbor/karbor_v1.rb +8 -1
  17. data/lib/misty/openstack/keystone/keystone_v2_0.rb +4 -0
  18. data/lib/misty/openstack/keystone/keystone_v2_0_ext.rb +5 -19
  19. data/lib/misty/openstack/keystone/keystone_v3.rb +12 -0
  20. data/lib/misty/openstack/keystone/keystone_v3_ext.rb +6 -2
  21. data/lib/misty/openstack/magnum/magnum_v1.rb +4 -0
  22. data/lib/misty/openstack/manila/manila_v2.rb +65 -26
  23. data/lib/misty/openstack/murano/murano_v1.rb +4 -0
  24. data/lib/misty/openstack/neutron/neutron_v2_0.rb +28 -9
  25. data/lib/misty/openstack/nova/nova_v2_1.rb +17 -6
  26. data/lib/misty/openstack/octavia/octavia_v2_0.rb +12 -2
  27. data/lib/misty/openstack/sahara/sahara_v1_1.rb +4 -0
  28. data/lib/misty/openstack/searchlight/searchlight_v1.rb +4 -0
  29. data/lib/misty/openstack/senlin/senlin_v1.rb +6 -1
  30. data/lib/misty/openstack/swift/swift_v1.rb +4 -0
  31. data/lib/misty/openstack/tacker/tacker_v1_0.rb +4 -0
  32. data/lib/misty/openstack/trove/trove_v1_0.rb +4 -0
  33. data/lib/misty/openstack/zaqar/zaqar_v2.rb +9 -6
  34. data/lib/misty/version.rb +1 -1
  35. data/test/integration/compute_test.rb +14 -3
  36. data/test/integration/network_test.rb +14 -2
  37. data/test/integration/orchestration_test.rb +12 -0
  38. data/test/integration/test_helper.rb +0 -11
  39. data/test/integration/vcr/compute_using_nova_v2_1.yml +255 -921
  40. data/test/integration/vcr/network_using_neutron_v2_0.yml +164 -875
  41. data/test/unit/client_test.rb +2 -2
  42. data/test/unit/openstack/APIs_test.rb +2 -3
  43. metadata +3 -3
@@ -86,12 +86,12 @@ describe Misty::Client do
86
86
 
87
87
  describe 'headers' do
88
88
  it 'returns default global along with token' do
89
- service.headers.get.must_equal ({"Accept"=>"application/json; q=1.0", "X-Auth-Token"=>"token_id"})
89
+ service.headers.get.must_equal ({"Accept"=>"application/json; q=1.0"})
90
90
  end
91
91
 
92
92
  it 'inject headers parameter' do
93
93
  service(content_type = :ruby, params = {:headers => {'Oh' => 'my!'}}).
94
- headers.get.must_equal ({"Accept"=>"application/json; q=1.0", "X-Auth-Token"=>"token_id", "Oh"=>"my!"})
94
+ headers.get.must_equal ({"Accept"=>"application/json; q=1.0", "Oh"=>"my!"})
95
95
  end
96
96
  end
97
97
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- VERBS = [ :COPY, :DELETE, :GET, :HEAD, :PATCH, :POST, :PUT ]
3
+ VERBS = [ :COPY, :DELETE, :GET, :HEAD, :PATCH, :POST, :PUT]
4
4
 
5
5
  def api_valid?(api_entry)
6
6
  api_entry.each do |path, requests|
@@ -14,8 +14,6 @@ def api_valid?(api_entry)
14
14
  name.must_be_kind_of Symbol
15
15
  name.to_s.wont_match /^id\d*/
16
16
  end
17
- else
18
- verb.must_equal :version
19
17
  end
20
18
  end
21
19
  end
@@ -27,6 +25,7 @@ def api_validate(project, version)
27
25
  klass = Object.const_get("Misty::Openstack::#{project.capitalize}#{Misty::Cloud.dot_to_underscore(version).capitalize}")
28
26
  client = Object.new
29
27
  client.extend(klass)
28
+ client.tag.must_match /API/
30
29
  api_valid?(client.api)
31
30
  end
32
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: misty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilles Dubreuil
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-23 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  version: '0'
250
250
  requirements: []
251
251
  rubyforge_project:
252
- rubygems_version: 2.6.13
252
+ rubygems_version: 2.6.14
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: Misty is an OpenStack API client