kitchen-azurerm 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bdf1db7e77250e108907f1a40b0d84d08616a99
4
- data.tar.gz: 4852f16314f228cd1f244bb037bb59f9598d5bbd
3
+ metadata.gz: 43e31b997eaad24c664c720fd6e499f04021940c
4
+ data.tar.gz: 3c92979c97988e1d7af0d84111362c501e577b62
5
5
  SHA512:
6
- metadata.gz: 8fd391130fdbae24c08acd39e2756c15b2e7bcb0c730d5cfccf00f2043d02fa0a015d461d5acfe4aa1e9cbc90930f8deafd58d8a35876b9ccecb9d2c620bd8c3
7
- data.tar.gz: 017185e55b0dc46478343af727d1e0bb04b7ec01de3fbdd276c8ba802847b3eb73df548049bc5d9f347af6aeba416e9da0970c50bf25da6ea312f82b9005504c
6
+ metadata.gz: 1a3a8b0de1fbf6c832c2fa065515552ec17d7042d9a86ebefc9c22ec5d1a653153111ec19b7c4eb71f0a51078d9ea4d6952707b55d76ce19554cf984d42476cd
7
+ data.tar.gz: 7ac4c11589b995f3d8c3262d5372015a58420c079547559ad0e93261a218d13db8141935ba35e06d61dd1f89d92b4f5ee0471d5c0d6fac1fed69a3259de2ea9e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # kitchen-azurerm Changelog
2
2
 
3
+ ## [0.8.1] - 2017-02-28
4
+ - Adding provider identifier tag to all created resources (@stuartpreston)
5
+
3
6
  ## [0.8.0] - 2017-01-16
4
7
  - [Unattend.xml used instead of Custom Script Extension to inject WinRM configuration/AKA support proxy server configurations](https://github.com/pendrica/kitchen-azurerm/pull/44) (@hbuckle)
5
8
  - [Public IP addresses can now be used to connect even if the VM is connected to an existing subnet](https://github.com/pendrica/kitchen-azurerm/pull/42) (@vlesierse)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **kitchen-azurerm** is a driver for the popular test harness [Test Kitchen](http://kitchen.ci) that allows Microsoft Azure resources to be provisioned prior to testing. This driver uses the new Microsoft Azure Resource Management REST API via the [azure-sdk-for-ruby](https://github.com/azure/azure-sdk-for-ruby).
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/kitchen-azurerm.svg)](http://badge.fury.io/rb/kitchen-azurerm) [![Build Status](https://travis-ci.org/pendrica/kitchen-azurerm.svg)](https://travis-ci.org/pendrica/kitchen-azurerm)
5
+ [![Gem Version](https://badge.fury.io/rb/kitchen-azurerm.svg)](http://badge.fury.io/rb/kitchen-azurerm) [![Build Status](https://travis-ci.org/test-kitchen/kitchen-azurerm.svg)](https://travis-ci.org/test-kitchen/kitchen-azurerm)
6
6
 
7
7
  This version has been tested on Windows, OS/X and Ubuntu. If you encounter a problem on your platform, please raise an issue.
8
8
 
@@ -290,7 +290,7 @@ info: vm image list command OK
290
290
 
291
291
  Contributions to the project are welcome via submitting Pull Requests.
292
292
 
293
- 1. Fork it ( https://github.com/pendrica/kitchen-azurerm/fork )
293
+ 1. Fork it ( https://github.com/test-kitchen/kitchen-azurerm/fork )
294
294
  2. Create your feature branch (`git checkout -b my-new-feature`)
295
295
  3. Commit your changes (`git commit -am 'Add some feature'`)
296
296
  4. Push to the branch (`git push origin my-new-feature`)
@@ -136,17 +136,16 @@ module Kitchen
136
136
  # Monitor all operations until completion
137
137
  follow_deployment_until_end_state(state[:azure_resource_group_name], deployment_name)
138
138
 
139
+ network_management_client = ::Azure::ARM::Network::NetworkManagementClient.new(credentials)
140
+ network_management_client.subscription_id = config[:subscription_id]
141
+
139
142
  if config[:vnet_id] == '' || config[:public_ip]
140
143
  # Retrieve the public IP from the resource group:
141
- network_management_client = ::Azure::ARM::Network::NetworkManagementClient.new(credentials)
142
- network_management_client.subscription_id = config[:subscription_id]
143
144
  result = network_management_client.public_ipaddresses.get(state[:azure_resource_group_name], 'publicip')
144
145
  info "IP Address is: #{result.ip_address} [#{result.dns_settings.fqdn}]"
145
146
  state[:hostname] = result.ip_address
146
147
  else
147
148
  # Retrieve the internal IP from the resource group:
148
- network_management_client = ::Azure::ARM::Network::NetworkManagementClient.new(credentials)
149
- network_management_client.subscription_id = config[:subscription_id]
150
149
  network_interfaces = ::Azure::ARM::Network::NetworkInterfaces.new(network_management_client)
151
150
  result = network_interfaces.get(state[:azure_resource_group_name], 'nic')
152
151
  info "IP Address is: #{result.ip_configurations[0].private_ipaddress}"
@@ -103,7 +103,8 @@
103
103
  "vmSize": "[parameters('vmSize')]",
104
104
  "virtualNetworkName": "vnet",
105
105
  "vnetID": "<%= vnet_id %>",
106
- "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]"
106
+ "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
107
+ "provider": "[toUpper('33194f91-eb5f-4110-827a-e95f640a9e46')]"
107
108
  },
108
109
  "resources": [
109
110
  {
@@ -113,6 +114,9 @@
113
114
  "location": "[variables('location')]",
114
115
  "properties": {
115
116
  "accountType": "[variables('storageAccountType')]"
117
+ },
118
+ "tags": {
119
+ "provider": "[variables('provider')]"
116
120
  }
117
121
  },
118
122
  <%- if public_ip -%>
@@ -126,6 +130,9 @@
126
130
  "dnsSettings": {
127
131
  "domainNameLabel": "[parameters('dnsNameForPublicIP')]"
128
132
  }
133
+ },
134
+ "tags": {
135
+ "provider": "[variables('provider')]"
129
136
  }
130
137
  },
131
138
  <%- end -%>
@@ -156,6 +163,9 @@
156
163
  }
157
164
  }
158
165
  ]
166
+ },
167
+ "tags": {
168
+ "provider": "[variables('provider')]"
159
169
  }
160
170
  },
161
171
  {
@@ -207,7 +217,8 @@
207
217
  }
208
218
  },
209
219
  "tags": {
210
- <%= vm_tags %>
220
+ "provider": "[variables('provider')]"
221
+ <%= ',' + vm_tags unless vm_tags.empty? %>
211
222
  }
212
223
  }
213
224
  ]
data/templates/public.erb CHANGED
@@ -103,7 +103,8 @@
103
103
  "vmSize": "[parameters('vmSize')]",
104
104
  "virtualNetworkName": "vnet",
105
105
  "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
106
- "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]"
106
+ "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
107
+ "provider": "[toUpper('33194f91-eb5f-4110-827a-e95f640a9e46')]"
107
108
  },
108
109
  "resources": [
109
110
  {
@@ -113,6 +114,9 @@
113
114
  "location": "[variables('location')]",
114
115
  "properties": {
115
116
  "accountType": "[variables('storageAccountType')]"
117
+ },
118
+ "tags": {
119
+ "provider": "[variables('provider')]"
116
120
  }
117
121
  },
118
122
  {
@@ -125,6 +129,9 @@
125
129
  "dnsSettings": {
126
130
  "domainNameLabel": "[parameters('dnsNameForPublicIP')]"
127
131
  }
132
+ },
133
+ "tags": {
134
+ "provider": "[variables('provider')]"
128
135
  }
129
136
  },
130
137
  {
@@ -146,6 +153,9 @@
146
153
  }
147
154
  }
148
155
  ]
156
+ },
157
+ "tags": {
158
+ "provider": "[variables('provider')]"
149
159
  }
150
160
  },
151
161
  {
@@ -172,6 +182,9 @@
172
182
  }
173
183
  }
174
184
  ]
185
+ },
186
+ "tags": {
187
+ "provider": "[variables('provider')]"
175
188
  }
176
189
  },
177
190
  {
@@ -223,7 +236,8 @@
223
236
  }
224
237
  },
225
238
  "tags": {
226
- <%= vm_tags %>
239
+ "provider": "[variables('provider')]"
240
+ <%= ',' + vm_tags unless vm_tags.empty? %>
227
241
  }
228
242
  }
229
243
  ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-azurerm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Preston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile
@@ -122,16 +122,16 @@ dependencies:
122
122
  name: rubocop
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - "~>"
125
+ - - '='
126
126
  - !ruby/object:Gem::Version
127
- version: '0'
127
+ version: 0.46.0
128
128
  type: :development
129
129
  prerelease: false
130
130
  version_requirements: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - "~>"
132
+ - - '='
133
133
  - !ruby/object:Gem::Version
134
- version: '0'
134
+ version: 0.46.0
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rspec
137
137
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.6.8
183
+ rubygems_version: 2.6.10
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Test Kitchen driver for Azure Resource Manager.