ops_manager_ui_drivers 2.14.2 → 2.14.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad73f11502dca629166475a13cc25f900f54cc87
4
- data.tar.gz: 72d36bebf2107cff01bb6fb2142eb894cb941304
3
+ metadata.gz: d8e35fdf9dfff96f59baf9d476fbe393f1dbdc26
4
+ data.tar.gz: 7240dd8cd471e988da0ae5ca65833d24a3e329f1
5
5
  SHA512:
6
- metadata.gz: 71ec631d8644b1d3c6c472906588b195ed506cf4acc05ceac2ce1fd2eaec76c4cbb5a65dd449e07ccd481386cca5a9ea2e4004e9addfaf42bcdda906a9ffcbe4
7
- data.tar.gz: 9fd50a51733e64667443a117bbd53e49122f0920d18b2ee5253b1964f12895dced6a1913b8ed43ae0ae7a78ca4c973fb50f8f3518bf927e76bcd078f308c3d0d
6
+ metadata.gz: ac2c0b7209fcd7adc283f1cafbfb8beb4bb95d054b076fcf77d48c73630b42e4eda21ea4b1d54925f952edea503ea311dbfd224256e4babf230eff0e40076f03
7
+ data.tar.gz: c6e08245e59afb8a67d801c2e103692b340e018e5996791d5524c48602b90e0871faca6068f78d2fd432e66f99c333282c8f584138b48b0499f8fcc89ed38932
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.14.2'
2
+ VERSION = '2.14.3'
3
3
  end
@@ -39,6 +39,10 @@ module OpsManagerUiDrivers
39
39
  get_deployed_products.find { |product| product['type'] == name }.try(:[], 'guid')
40
40
  end
41
41
 
42
+ def set_director_second_network(network_name)
43
+ http.request(put('v0/staged/director/second_network', {second_network: {name: network_name}}.to_json, uaa_token.auth_header))
44
+ end
45
+
42
46
  private
43
47
 
44
48
  def uaa_token
@@ -53,10 +57,11 @@ module OpsManagerUiDrivers
53
57
  end
54
58
  end
55
59
 
56
- def put(endpoint, form_data, token=nil)
60
+ def put(endpoint, json_body, token=nil)
57
61
  Net::HTTP::Put.new(api_uri(endpoint).request_uri).tap do |put_request|
58
62
  add_auth_to_request(put_request, token)
59
- put_request.set_form_data(form_data)
63
+ put_request.body= json_body
64
+ put_request.content_type = 'application/json'
60
65
  end
61
66
  end
62
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_ui_drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.2
4
+ version: 2.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport