knife-azure 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/{readme.rdoc → README.rdoc} +68 -26
  2. data/lib/azure/connection.rb +3 -1
  3. data/lib/azure/deploy.rb +3 -0
  4. data/lib/azure/host.rb +2 -2
  5. data/lib/azure/image.rb +2 -2
  6. data/lib/azure/rest.rb +8 -3
  7. data/lib/azure/role.rb +1 -1
  8. data/lib/azure/storageaccount.rb +87 -0
  9. data/lib/chef/knife/azure_base.rb +19 -17
  10. data/lib/chef/knife/azure_image_list.rb +13 -10
  11. data/lib/chef/knife/azure_server_create.rb +45 -13
  12. data/lib/knife-azure/version.rb +1 -1
  13. metadata +208 -178
  14. data/Gemfile +0 -22
  15. data/Guardfile +0 -8
  16. data/Rakefile +0 -51
  17. data/knife-azure.gemspec +0 -106
  18. data/spec/functional/deploys_test.rb +0 -39
  19. data/spec/functional/host_test.rb +0 -22
  20. data/spec/functional/images_list_test.rb +0 -44
  21. data/spec/functional/role_test.rb +0 -16
  22. data/spec/integration/role_lifecycle_test.rb +0 -60
  23. data/spec/spec_helper.rb +0 -41
  24. data/spec/unit/assets/create_deployment.xml +0 -37
  25. data/spec/unit/assets/create_deployment_in_progress.xml +0 -1
  26. data/spec/unit/assets/create_host.xml +0 -7
  27. data/spec/unit/assets/create_role.xml +0 -54
  28. data/spec/unit/assets/list_deployments_for_service000.xml +0 -126
  29. data/spec/unit/assets/list_deployments_for_service001.xml +0 -166
  30. data/spec/unit/assets/list_deployments_for_service002.xml +0 -1
  31. data/spec/unit/assets/list_deployments_for_service003.xml +0 -1
  32. data/spec/unit/assets/list_disks.xml +0 -1
  33. data/spec/unit/assets/list_hosts.xml +0 -1
  34. data/spec/unit/assets/list_images.xml +0 -1
  35. data/spec/unit/assets/post_success.xml +0 -6
  36. data/spec/unit/deploys_list_spec.rb +0 -55
  37. data/spec/unit/disks_spec.rb +0 -44
  38. data/spec/unit/hosts_spec.rb +0 -55
  39. data/spec/unit/images_spec.rb +0 -35
  40. data/spec/unit/query_azure_mock.rb +0 -69
  41. data/spec/unit/roles_create_spec.rb +0 -82
  42. data/spec/unit/roles_list_spec.rb +0 -32
@@ -1 +0,0 @@
1
- <Operation xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ID>878c6cd7-73d1-4527-949e-44eb7451547c</ID><Status>InProgress</Status></Operation
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <CreateHostedService xmlns="http://schemas.microsoft.com/windowsazure">
3
- <ServiceName>service003</ServiceName>
4
- <Label>c2VydmljZTAwMw==</Label>
5
- <Description>Explicitly created hosted service</Description>
6
- <Location>Windows Azure Preview</Location>
7
- </CreateHostedService
@@ -1,54 +0,0 @@
1
- <?xml version="1.0"?>
2
- <PersistentVMRole xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
3
- <RoleName>vm01</RoleName>
4
- <OsVersion i:nil="true"/>
5
- <RoleType>PersistentVMRole</RoleType>
6
- <ConfigurationSets>
7
- <ConfigurationSet i:type="LinuxProvisioningConfigurationSet">
8
- <ConfigurationSetType>LinuxProvisioningConfiguration</ConfigurationSetType>
9
- <HostName>myVm</HostName>
10
- <UserName>jetstream</UserName>
11
- <UserPassword>jetstream1!</UserPassword>
12
- <DisableSshPasswordAuthentication>false</DisableSshPasswordAuthentication>
13
- </ConfigurationSet>
14
- <ConfigurationSet i:type="NetworkConfigurationSet">
15
- <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
16
- <InputEndpoints>
17
- <InputEndpoint>
18
- <LocalPort>22</LocalPort>
19
- <Name>SSH</Name>
20
- <Protocol>TCP</Protocol>
21
- </InputEndpoint>
22
- <InputEndpoint>
23
- <LocalPort>44</LocalPort>
24
- <Name>tcpport_44_myVm</Name>
25
- <Port>45</Port>
26
- <Protocol>TCP</Protocol>
27
- </InputEndpoint>
28
- <InputEndpoint>
29
- <LocalPort>55</LocalPort>
30
- <Name>tcpport_55_myVm</Name>
31
- <Port>55</Port>
32
- <Protocol>TCP</Protocol>
33
- </InputEndpoint>
34
- <InputEndpoint>
35
- <LocalPort>65</LocalPort>
36
- <Name>udpport_65_myVm</Name>
37
- <Port>65</Port>
38
- <Protocol>UDP</Protocol>
39
- </InputEndpoint>
40
- <InputEndpoint>
41
- <LocalPort>75</LocalPort>
42
- <Name>udpport_75_myVm</Name>
43
- <Protocol>UDP</Protocol>
44
- </InputEndpoint>
45
- </InputEndpoints>
46
- </ConfigurationSet>
47
- </ConfigurationSets>
48
- <Label>dm0wMQ==</Label>
49
- <OSVirtualHardDisk>
50
- <MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk004Test</MediaLink>
51
- <SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName>
52
- </OSVirtualHardDisk>
53
- <RoleSize>ExtraSmall</RoleSize>
54
- </PersistentVMRole>
@@ -1,126 +0,0 @@
1
- <?xml version="1.0"?>
2
- <Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
3
- <Name>service003</Name>
4
- <DeploymentSlot>Production</DeploymentSlot>
5
- <PrivateID>34f75bed486643d39affeb9f98d47227</PrivateID>
6
- <Status>Running</Status>
7
- <Label>YzJWeWRtbGpaVEF3TXc9PQ==</Label>
8
- <Url>http://service003.cloudapp-preview.net/</Url>
9
- <Configuration>PFNlcnZpY2VDb25maWd1cmF0aW9uIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL1NlcnZpY2VIb3N0aW5nLzIwMDgvMTAvU2VydmljZUNvbmZpZ3VyYXRpb24iPg0KICA8Um9sZSBuYW1lPSJyb2xlMjA2Ij4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIxIiAvPg0KICA8L1JvbGU+DQo8L1NlcnZpY2VDb25maWd1cmF0aW9uPg==</Configuration>
10
- <RoleInstanceList>
11
- <RoleInstance>
12
- <RoleName>role206</RoleName>
13
- <InstanceName>role206</InstanceName>
14
- <InstanceStatus>StoppedVM</InstanceStatus>
15
- <InstanceUpgradeDomain>0</InstanceUpgradeDomain>
16
- <InstanceFaultDomain>0</InstanceFaultDomain>
17
- <InstanceSize>ExtraSmall</InstanceSize>
18
- <InstanceStateDetails/>
19
- <IpAddress>10.26.198.33</IpAddress>
20
- <InstanceEndpoints>
21
- <InstanceEndpoint>
22
- <Name>SSH</Name>
23
- <Vip>65.52.251.57</Vip>
24
- <PublicPort>49627</PublicPort>
25
- <LocalPort>22</LocalPort>
26
- <Protocol>tcp</Protocol>
27
- </InstanceEndpoint>
28
- <InstanceEndpoint>
29
- <Name>tcpport66</Name>
30
- <Vip>65.52.251.57</Vip>
31
- <PublicPort>66</PublicPort>
32
- <LocalPort>66</LocalPort>
33
- <Protocol>tcp</Protocol>
34
- </InstanceEndpoint>
35
- <InstanceEndpoint>
36
- <Name>udpport77</Name>
37
- <Vip>65.52.251.57</Vip>
38
- <PublicPort>77</PublicPort>
39
- <LocalPort>77</LocalPort>
40
- <Protocol>udp</Protocol>
41
- </InstanceEndpoint>
42
- <InstanceEndpoint>
43
- <Name>udpport88</Name>
44
- <Vip>65.52.251.57</Vip>
45
- <PublicPort>88</PublicPort>
46
- <LocalPort>88</LocalPort>
47
- <Protocol>udp</Protocol>
48
- </InstanceEndpoint>
49
- <InstanceEndpoint>
50
- <Name>udpport99</Name>
51
- <Vip>65.52.251.57</Vip>
52
- <PublicPort>99</PublicPort>
53
- <LocalPort>99</LocalPort>
54
- <Protocol>udp</Protocol>
55
- </InstanceEndpoint>
56
- </InstanceEndpoints>
57
- <PowerState>Stopped</PowerState>
58
- </RoleInstance>
59
- </RoleInstanceList>
60
- <UpgradeDomainCount>1</UpgradeDomainCount>
61
- <RoleList>
62
- <Role i:type="PersistentVMRole">
63
- <RoleName>role206</RoleName>
64
- <OsVersion/>
65
- <RoleType>PersistentVMRole</RoleType>
66
- <ConfigurationSets>
67
- <ConfigurationSet i:type="NetworkConfigurationSet">
68
- <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
69
- <InputEndpoints>
70
- <InputEndpoint>
71
- <LocalPort>22</LocalPort>
72
- <Name>SSH</Name>
73
- <Port>49627</Port>
74
- <Protocol>tcp</Protocol>
75
- <Vip>65.52.251.57</Vip>
76
- </InputEndpoint>
77
- <InputEndpoint>
78
- <LocalPort>66</LocalPort>
79
- <Name>tcpport66</Name>
80
- <Port>66</Port>
81
- <Protocol>tcp</Protocol>
82
- <Vip>65.52.251.57</Vip>
83
- </InputEndpoint>
84
- <InputEndpoint>
85
- <LocalPort>77</LocalPort>
86
- <Name>udpport77</Name>
87
- <Port>77</Port>
88
- <Protocol>udp</Protocol>
89
- <Vip>65.52.251.57</Vip>
90
- </InputEndpoint>
91
- <InputEndpoint>
92
- <LocalPort>88</LocalPort>
93
- <Name>udpport88</Name>
94
- <Port>88</Port>
95
- <Protocol>udp</Protocol>
96
- <Vip>65.52.251.57</Vip>
97
- </InputEndpoint>
98
- <InputEndpoint>
99
- <LocalPort>99</LocalPort>
100
- <Name>udpport99</Name>
101
- <Port>99</Port>
102
- <Protocol>udp</Protocol>
103
- <Vip>65.52.251.57</Vip>
104
- </InputEndpoint>
105
- </InputEndpoints>
106
- <SubnetNames/>
107
- </ConfigurationSet>
108
- </ConfigurationSets>
109
- <DataVirtualHardDisks/>
110
- <OSVirtualHardDisk>
111
- <HostCaching>ReadWrite</HostCaching>
112
- <DiskName>service003-role206-0-20120528151407</DiskName>
113
- <MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk_2012_05_28_08_13</MediaLink>
114
- <SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB.vhd</SourceImageName>
115
- <OS>Linux</OS>
116
- </OSVirtualHardDisk>
117
- <RoleSize>ExtraSmall</RoleSize>
118
- </Role>
119
- </RoleList>
120
- <SdkVersion/>
121
- <Locked>false</Locked>
122
- <RollbackAllowed>false</RollbackAllowed>
123
- <CreatedTime>2012-05-28T15:14:05Z</CreatedTime>
124
- <LastModifiedTime>2012-05-28T16:29:06Z</LastModifiedTime>
125
- <ExtendedProperties/>
126
- </Deployment>
@@ -1,166 +0,0 @@
1
- <?xml version="1.0"?>
2
- <Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
3
- <Name>deployment001</Name>
4
- <DeploymentSlot>Production</DeploymentSlot>
5
- <PrivateID>2b1f2f0a4b414088a0ec64d583d9c4b3</PrivateID>
6
- <Status>Running</Status>
7
- <Label>WkdWd2JHOTViV1Z1ZERBd01RPT0=</Label>
8
- <Url>http://service001.cloudapp-preview.net/</Url>
9
- <Configuration>PFNlcnZpY2VDb25maWd1cmF0aW9uIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL1NlcnZpY2VIb3N0aW5nLzIwMDgvMTAvU2VydmljZUNvbmZpZ3VyYXRpb24iPg0KICA8Um9sZSBuYW1lPSJyb2xlMDAyIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIxIiAvPg0KICA8L1JvbGU+DQogIDxSb2xlIG5hbWU9InJvbGUwMDEiPg0KICAgIDxJbnN0YW5jZXMgY291bnQ9IjEiIC8+DQogIDwvUm9sZT4NCjwvU2VydmljZUNvbmZpZ3VyYXRpb24+</Configuration>
10
- <RoleInstanceList>
11
- <RoleInstance>
12
- <RoleName>vm002</RoleName>
13
- <InstanceName>vm002</InstanceName>
14
- <InstanceStatus>ReadyRole</InstanceStatus>
15
- <InstanceUpgradeDomain>0</InstanceUpgradeDomain>
16
- <InstanceFaultDomain>0</InstanceFaultDomain>
17
- <InstanceSize>ExtraSmall</InstanceSize>
18
- <InstanceStateDetails/>
19
- <IpAddress>10.26.198.146</IpAddress>
20
- <InstanceEndpoints>
21
- <InstanceEndpoint>
22
- <Name>tcpport66</Name>
23
- <Vip>65.52.251.57</Vip>
24
- <PublicPort>66</PublicPort>
25
- <LocalPort>66</LocalPort>
26
- <Protocol>tcp</Protocol>
27
- </InstanceEndpoint>
28
- <InstanceEndpoint>
29
- <Name>SSH</Name>
30
- <Vip>65.52.249.191</Vip>
31
- <PublicPort>22</PublicPort>
32
- <LocalPort>22</LocalPort>
33
- <Protocol>tcp</Protocol>
34
- </InstanceEndpoint>
35
- </InstanceEndpoints>
36
- <PowerState>Started</PowerState>
37
- <HostName>myVm2</HostName>
38
- </RoleInstance>
39
- <RoleInstance>
40
- <RoleName>role002</RoleName>
41
- <InstanceName>role002</InstanceName>
42
- <InstanceStatus>RoleStateUnknown</InstanceStatus>
43
- <InstanceUpgradeDomain>0</InstanceUpgradeDomain>
44
- <InstanceFaultDomain>0</InstanceFaultDomain>
45
- <InstanceSize>Small</InstanceSize>
46
- <InstanceStateDetails/>
47
- <IpAddress>10.26.196.201</IpAddress>
48
- <InstanceEndpoints>
49
- <InstanceEndpoint>
50
- <Name>ssh</Name>
51
- <Vip>65.52.249.191</Vip>
52
- <PublicPort>23</PublicPort>
53
- <LocalPort>22</LocalPort>
54
- <Protocol>tcp</Protocol>
55
- </InstanceEndpoint>
56
- </InstanceEndpoints>
57
- <PowerState>Started</PowerState>
58
- <HostName>role002</HostName>
59
- </RoleInstance>
60
- <RoleInstance>
61
- <RoleName>role001</RoleName>
62
- <InstanceName>role001</InstanceName>
63
- <InstanceStatus>ReadyRole</InstanceStatus>
64
- <InstanceUpgradeDomain>0</InstanceUpgradeDomain>
65
- <InstanceFaultDomain>0</InstanceFaultDomain>
66
- <InstanceSize>Small</InstanceSize>
67
- <InstanceStateDetails/>
68
- <IpAddress>10.26.196.254</IpAddress>
69
- <InstanceEndpoints>
70
- <InstanceEndpoint>
71
- <Name>ssh</Name>
72
- <Vip>65.52.249.191</Vip>
73
- <PublicPort>22</PublicPort>
74
- <LocalPort>22</LocalPort>
75
- <Protocol>tcp</Protocol>
76
- </InstanceEndpoint>
77
- </InstanceEndpoints>
78
- <PowerState>Started</PowerState>
79
- <HostName>role001</HostName>
80
- </RoleInstance>
81
- </RoleInstanceList>
82
- <UpgradeDomainCount>1</UpgradeDomainCount>
83
- <RoleList>
84
- <Role>
85
- <RoleName>vm002</RoleName>
86
- <OsVersion>WA-GUEST-OS-1.18_201203-01</OsVersion>
87
- <ConfigurationSets>
88
- <ConfigurationSet i:type="NetworkConfigurationSet">
89
- <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
90
- <InputEndpoints>
91
- <InputEndpoint>
92
- <Port>60657</Port>
93
- <Protocol>tcp</Protocol>
94
- <Vip>65.52.249.191</Vip>
95
- </InputEndpoint>
96
- </InputEndpoints>
97
- <SubnetNames/>
98
- </ConfigurationSet>
99
- </ConfigurationSets>
100
- </Role>
101
- <Role i:type="PersistentVMRole">
102
- <RoleName>role002</RoleName>
103
- <OsVersion>WA-GUEST-OS-1.18_201203-01</OsVersion>
104
- <RoleType>PersistentVMRole</RoleType>
105
- <ConfigurationSets>
106
- <ConfigurationSet i:type="NetworkConfigurationSet">
107
- <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
108
- <InputEndpoints>
109
- <InputEndpoint>
110
- <LocalPort>22</LocalPort>
111
- <Name>ssh</Name>
112
- <Port>23</Port>
113
- <Protocol>tcp</Protocol>
114
- <Vip>65.52.249.191</Vip>
115
- </InputEndpoint>
116
- </InputEndpoints>
117
- <SubnetNames/>
118
- </ConfigurationSet>
119
- </ConfigurationSets>
120
- <DataVirtualHardDisks/>
121
- <OSVirtualHardDisk>
122
- <HostCaching>ReadWrite</HostCaching>
123
- <DiskName>deployment001-role002-0-201241722728</DiskName>
124
- <MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk002b</MediaLink>
125
- <SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName>
126
- <OS>Linux</OS>
127
- </OSVirtualHardDisk>
128
- <RoleSize>Small</RoleSize>
129
- </Role>
130
- <Role i:type="PersistentVMRole">
131
- <RoleName>role001</RoleName>
132
- <OsVersion>WA-GUEST-OS-1.18_201203-01</OsVersion>
133
- <RoleType>PersistentVMRole</RoleType>
134
- <ConfigurationSets>
135
- <ConfigurationSet i:type="NetworkConfigurationSet">
136
- <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
137
- <InputEndpoints>
138
- <InputEndpoint>
139
- <LocalPort>22</LocalPort>
140
- <Name>ssh</Name>
141
- <Port>22</Port>
142
- <Protocol>tcp</Protocol>
143
- <Vip>65.52.249.191</Vip>
144
- </InputEndpoint>
145
- </InputEndpoints>
146
- <SubnetNames/>
147
- </ConfigurationSet>
148
- </ConfigurationSets>
149
- <DataVirtualHardDisks/>
150
- <OSVirtualHardDisk>
151
- <HostCaching>ReadWrite</HostCaching>
152
- <DiskName>deployment001-role001-0-201241722113</DiskName>
153
- <MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk001</MediaLink>
154
- <SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName>
155
- <OS>Linux</OS>
156
- </OSVirtualHardDisk>
157
- <RoleSize>Small</RoleSize>
158
- </Role>
159
- </RoleList>
160
- <SdkVersion>1.7</SdkVersion>
161
- <Locked>false</Locked>
162
- <RollbackAllowed>true</RollbackAllowed>
163
- <CreatedTime>2012-04-17T22:01:10Z</CreatedTime>
164
- <LastModifiedTime>2012-04-23T23:52:09Z</LastModifiedTime>
165
- <ExtendedProperties/>
166
- </Deployment>
@@ -1 +0,0 @@
1
- <Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Name>testrequest</Name><DeploymentSlot>Production</DeploymentSlot><PrivateID>0f6204c7b38b457a913be856a23e3142</PrivateID><Status>Running</Status><Label>ZEdWemRHbHVkbUZzYVdSemRYTmw=</Label><Url>http://service002.cloudapp-preview.net/</Url><Configuration>PFNlcnZpY2VDb25maWd1cmF0aW9uIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL1NlcnZpY2VIb3N0aW5nLzIwMDgvMTAvU2VydmljZUNvbmZpZ3VyYXRpb24iPg0KICA8Um9sZSBuYW1lPSJ2bTAxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIxIiAvPg0KICA8L1JvbGU+DQo8L1NlcnZpY2VDb25maWd1cmF0aW9uPg==</Configuration><RoleInstanceList><RoleInstance><RoleName>vm01</RoleName><InstanceName>vm01</InstanceName><InstanceStatus>ReadyRole</InstanceStatus><InstanceUpgradeDomain>0</InstanceUpgradeDomain><InstanceFaultDomain>0</InstanceFaultDomain><InstanceSize>ExtraSmall</InstanceSize><InstanceStateDetails/><IpAddress>10.26.194.166</IpAddress><InstanceEndpoints><InstanceEndpoint><Name>SSH</Name><Vip>65.52.251.144</Vip><PublicPort>54047</PublicPort><LocalPort>22</LocalPort><Protocol>tcp</Protocol></InstanceEndpoint></InstanceEndpoints><PowerState>Started</PowerState><HostName>myVm</HostName></RoleInstance></RoleInstanceList><UpgradeDomainCount>1</UpgradeDomainCount><RoleList><Role i:type="PersistentVMRole"><RoleName>vm01</RoleName><OsVersion>WA-GUEST-OS-1.18_201203-01</OsVersion><RoleType>PersistentVMRole</RoleType><ConfigurationSets><ConfigurationSet i:type="NetworkConfigurationSet"><ConfigurationSetType>NetworkConfiguration</ConfigurationSetType><InputEndpoints><InputEndpoint><LocalPort>22</LocalPort><Name>SSH</Name><Port>54047</Port><Protocol>tcp</Protocol><Vip>65.52.251.144</Vip></InputEndpoint></InputEndpoints><SubnetNames/></ConfigurationSet></ConfigurationSets><DataVirtualHardDisks/><OSVirtualHardDisk><HostCaching>ReadWrite</HostCaching><DiskName>testrequest-vm01-0-2012423214252</DiskName><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk004Test</MediaLink><SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName><OS>Linux</OS></OSVirtualHardDisk><RoleSize>ExtraSmall</RoleSize></Role></RoleList><SdkVersion>1.7</SdkVersion><Locked>false</Locked><RollbackAllowed>false</RollbackAllowed><CreatedTime>2012-04-23T21:46:44Z</CreatedTime><LastModifiedTime>2012-04-23T21:56:47Z</LastModifiedTime><ExtendedProperties/></Deployment
@@ -1 +0,0 @@
1
- <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>ResourceNotFound</Code><Message>No deployments were found.</Message></Error
@@ -1 +0,0 @@
1
- <Disks xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>15</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk104</MediaLink><Name>service002-role104-0-201257233812</Name><SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName></Disk><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>15</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk105</MediaLink><Name>service002-role105-0-201257235741</Name><SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName></Disk><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>30</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk106</MediaLink><Name>service002-role106-0-20125801047</Name><SourceImageName>OpenLogic__OpenLogic-CentOS-62-en-us-30GB</SourceImageName></Disk><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>15</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk107</MediaLink><Name>service002-role107-0-20125814427</Name><SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName></Disk><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>15</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk108</MediaLink><Name>service002-role108-0-201258152913</Name><SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName></Disk><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>15</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk109</MediaLink><Name>service002-role109-0-201258165947</Name><SourceImageName>SUSE__OpenSUSE64121-03192012-en-us-15GB</SourceImageName></Disk><Disk><AttachedTo><DeploymentName>service002</DeploymentName><HostedServiceName>service002</HostedServiceName><RoleName>role119</RoleName></AttachedTo><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>30</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk119</MediaLink><Name>service002-role119-0-201258172212</Name><SourceImageName>OpenLogic__OpenLogic-CentOS-62-en-us-30GB</SourceImageName></Disk><Disk><OS>Linux</OS><Location>Windows Azure Preview</Location><LogicalDiskSizeInGB>30</LogicalDiskSizeInGB><MediaLink>http://auxpreview104imagestore.blob.core.azure-preview.com/os-disks/disk120</MediaLink><Name>service002-role120-0-201258203045</Name><SourceImageName>OpenLogic__OpenLogic-CentOS-62-en-us-30GB</SourceImageName></Disk></Disks
@@ -1 +0,0 @@
1
- <HostedServices xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HostedService><Url>https://management-preview.core.windows-int.net/155a9851-88a8-49b4-98e4-58055f08f412/services/hostedservices/service001</Url><ServiceName>service001</ServiceName><HostedServiceProperties><Description>Explicitly created hosted service</Description><Location>Windows Azure Preview</Location><Label>c2VydmljZTAwMQ==</Label><Status>Created</Status><DateCreated>2012-04-17T21:56:23Z</DateCreated><DateLastModified>2012-04-17T22:01:08Z</DateLastModified><ExtendedProperties/></HostedServiceProperties></HostedService><HostedService><Url>https://management-preview.core.windows-int.net/155a9851-88a8-49b4-98e4-58055f08f412/services/hostedservices/service002</Url><ServiceName>service002</ServiceName><HostedServiceProperties><Description>Explicitly created hosted service</Description><Location>Windows Azure Preview</Location><Label>c2VydmljZTAwMg==</Label><Status>Created</Status><DateCreated>2012-04-17T22:27:08Z</DateCreated><DateLastModified>2012-04-23T21:42:47Z</DateLastModified><ExtendedProperties/></HostedServiceProperties></HostedService><HostedService><Url>https://management-preview.core.windows-int.net/155a9851-88a8-49b4-98e4-58055f08f412/services/hostedservices/service003</Url><ServiceName>service003</ServiceName><HostedServiceProperties><Description>Explicitly created hosted service</Description><Location>Windows Azure Preview</Location><Label>c2VydmljZTAwMw==</Label><Status>Created</Status><DateCreated>2012-04-19T20:17:26Z</DateCreated><DateLastModified>2012-04-19T20:17:25Z</DateLastModified><ExtendedProperties/></HostedServiceProperties></HostedService></HostedServices
@@ -1 +0,0 @@
1
- <Images xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><OSImage><Category>Canonical</Category><Label>Ubuntu Server 12.04 20120519</Label><Name>CANONICAL__Canonical-Ubuntu-12-04-20120519-2012-05-19-en-us-30GB.vhd</Name><OS>Linux</OS><Eula>http://www.ubuntu.com/project/about-ubuntu/licensing</Eula><Description>Ubuntu Server 12.04 (Precise Pangolin) 20120519 Cloud Image</Description></OSImage><OSImage><Category>Microsoft</Category><Label>Windows Server 2008 R2 SP1, Nov 2011</Label><LogicalSizeInGB>30</LogicalSizeInGB><Name>MSFT__Windows-Server-2008-R2-SP1.11-29-2011</Name><OS>Windows</OS><Eula>http://www.microsoft.com</Eula><Description>Microsoft Windows Server 2008 R2 SP1</Description></OSImage><OSImage><Category>Microsoft</Category><Label>SQL Server 2012 Evaluation, Nov 2011</Label><LogicalSizeInGB>30</LogicalSizeInGB><Name>MSFT__Windows-Server-2008-R2-SP1-with-SQL-Server-2012-Eval.11-29-2011</Name><OS>Windows</OS><Eula>http://download.microsoft.com/download/A/A/7/AA73B8F4-5F4B-4C0B-94F4-FB238C92A916/ENU/SQL Server 2012 Evaluation.rtf</Eula><Description>Microsoft Windows 2008 R2 Service Pack 1 with SQL Server 2012 Evaluation Edition (64-bit). This version has licensing restrictions and cannot be used in production. Use of this version is limited to 6 months.</Description></OSImage><OSImage><Category>Microsoft</Category><Label>Windows Server 8 Beta, Mar 2012</Label><LogicalSizeInGB>30</LogicalSizeInGB><Name>MSFT__Windows-Server-8-Beta.en-us.30GB.2012-03-22</Name><OS>Windows</OS><Eula>http://msdn.microsoft.com/en-us/windows/apps/br229516</Eula><Description>The next release of Windows Server, Windows Server "8", offers businesses and hosting providers a scalable, dynamic, and multitenant-aware, cloud-optimized infrastructure. It securely connects across premises and allows IT Professionals to respond to business needs faster and more efficiently.</Description></OSImage><OSImage><Category>Microsoft</Category><Label>Windows Server 8 Beta, Feb 2012</Label><LogicalSizeInGB>40</LogicalSizeInGB><Name>MSFT__Windows-Server-8-Beta.2-17-2012</Name><OS>Windows</OS><Eula>http://www.microsoft.com</Eula><Description>The next release of Windows Server, Windows Server "8", offers businesses and hosting providers a scalable, dynamic, and multitenant-aware, cloud-optimized infrastructure. It securely connects across premises and allows IT Professionals to respond to business needs faster and more efficiently.</Description></OSImage><OSImage><Category>Microsoft</Category><Label>Windows Server 2008 R2 SP1, Mar 2012</Label><LogicalSizeInGB>30</LogicalSizeInGB><Name>MSFT__Windows-Server-2008-R2-SP1.en-us.30GB.2012-3-22</Name><OS>Windows</OS><Eula>http://msdn.microsoft.com/en-us/windows/apps/br229516</Eula><Description>Microsoft Windows 2008 R2 Service Pack 1 for IAAS</Description></OSImage><OSImage><Category>OpenLogic</Category><Label>CentOS 6.2 provided by OpenLogic</Label><Name>OpenLogic__OpenLogic-CentOS-62-20120509-en-us-30GB.vhd</Name><OS>Linux</OS><Eula>http://www.openlogic.com/azure/service-agreement.php</Eula><Description>This distribution of CentOS version 6.2 is provided by OpenLogic and contains an installation of the Basic Server packages.</Description></OSImage><OSImage><Category>SUSE</Category><Label>SUSE Linux Enterprise Server</Label><Name>SUSE__SUSE-Linux-Enterprise-Server-11SP2-20120521-en-us-30GB.vhd</Name><OS>Linux</OS><Eula>http://www.novell.com/licensing/eula/</Eula><Description>SUSE Linux Enterprise Server is a highly reliable, scalable, and secure server operating system, built to power mission-critical workloads in both physical and virtual environments. It is an affordable, interoperable, and manageable open source foundation. With it, enterprises can cost-effectively deliver core business services, enable secure networks, and simplify the management of their heterogeneous IT infrastructure, maximizing efficiency and value.</Description></OSImage><OSImage><Category>SUSE</Category><Label>OpenSUSE64-12.1-Beta</Label><Name>SUSE__OpenSUSE64121-03192012-en-us-15GB.vhd</Name><OS>Linux</OS><Eula>http://www.novell.com/licensing/eula/</Eula><Description>OpenSUSE Linux 64 Bits (IAAS M1 Preview)</Description></OSImage></Images
@@ -1,6 +0,0 @@
1
- <?xml version="1.0"?>
2
- <Operation xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
3
- <ID>878c6cd7-73d1-4527-949e-44eb7451547c</ID>
4
- <Status>Succeeded</Status>
5
- <HttpStatusCode>200</HttpStatusCode>
6
- </Operation>
@@ -1,55 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.expand_path(File.dirname(__FILE__) + '/query_azure_mock')
3
-
4
- describe "deploys" do
5
- include AzureSpecHelper
6
- include QueryAzureMock
7
- before 'setup connection' do
8
- setup_query_azure_mock
9
- end
10
-
11
- specify {@connection.deploys.all.length.should be > 0}
12
- it 'each deployment should have values' do
13
- @connection.deploys.all.each do |deploy|
14
- deploy.name.should_not be_nil
15
- deploy.status.should_not be_nil
16
- deploy.url.should_not be_nil
17
- deploy.roles.length.should be > 0
18
- end
19
- end
20
- it 'each role should have values' do
21
- @connection.deploys.all.each do |deploy|
22
- #describe_deploy deploy
23
- deploy.roles.each do |role|
24
- #describe_role role
25
- role.name.should_not be_nil
26
- role.status.should_not be_nil
27
- role.size.should_not be_nil
28
- role.ipaddress.should_not be_nil
29
- role.sshport.should_not be_nil
30
- role.sshipaddress.should_not be_nil
31
- end
32
- end
33
- end
34
- def describe_deploy(deploy)
35
- puts '============================='
36
- puts 'deployed service: ' + deploy.hostedservicename + ' deployment: ' + deploy.name
37
- end
38
- def describe_role(role)
39
- puts 'role: ' + role.name
40
- puts 'status: ' + role.status
41
- puts 'size: ' + role.size
42
- puts 'ip address: ' + role.ipaddress
43
- puts 'ssh port: ' + role.sshport
44
- puts 'ssh ip address: ' + role.sshipaddress
45
- role.tcpports.each do |port|
46
- puts ' tcp: ' + port['Name'] + ' ' + port['Vip'] + ' ' +
47
- port['PublicPort'] + ' ' + port['LocalPort']
48
- end
49
- role.udpports.each do |port|
50
- puts ' udp: ' + port['Name'] + ' ' + port['Vip'] + ' ' +
51
- port['PublicPort'] + ' ' + port['LocalPort']
52
- end
53
- puts '============================='
54
- end
55
- end
@@ -1,44 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.expand_path(File.dirname(__FILE__) + '/query_azure_mock')
3
-
4
- describe "disks" do
5
- include AzureSpecHelper
6
- include QueryAzureMock
7
- before 'setup connection' do
8
- setup_query_azure_mock
9
- end
10
-
11
- context 'mock with actually retrieved values' do
12
- it "should find strings" do
13
- items = @connection.disks.all
14
- items.length.should be > 1
15
- items.each do |disk|
16
- disk.name.should_not be_nil
17
- end
18
- end
19
- it "should contain an attached disk" do
20
- items = @connection.disks.all
21
- count = 0;
22
- items.each do |item|
23
- if item.attached == true
24
- count += 1
25
- end
26
- end
27
- count.should == 1
28
- end
29
- it "should contain unattached disks" do
30
- items = @connection.disks.all
31
- count = 0;
32
- items.each do |item|
33
- if item.attached == false
34
- count += 1
35
- end
36
- end
37
- count.should == 7
38
- end
39
- it "should clear all unattached disks" do
40
- @connection.disks.clear_unattached
41
- @deletecount.should == 7
42
- end
43
- end
44
- end