vagrant-arubacloud 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- module Vagrant
2
- module ArubaCloud
3
- VERSION = '0.0.7'
4
- end
5
- end
1
+ module Vagrant
2
+ module ArubaCloud
3
+ VERSION = '0.0.9'
4
+ end
5
+ end
@@ -1,106 +1,106 @@
1
- en:
2
- vagrant_arubacloud:
3
- not_created: |-
4
- The server hasn't been created yet. Run `vagrant up` first.
5
- already_created: |-
6
- The server is already created.
7
- halting_server: |-
8
- The server will be powered off.
9
- starting_server: |-
10
- The server will be powered on.
11
- deleting_server: |-
12
- The server will be deleted.
13
- bad_state: |-
14
- The server is not in the correct state for this operation.
15
- waiting_server_powered_off: |-
16
- Wait until server is powered off.
17
- server_powered_off: |-
18
- The server is now powered off.
19
- waiting_server_powered_on: |-
20
- Wait until server is powered on.
21
- server_powered_on: |-
22
- The server is now powered on.
23
- disable_require_tty_cap_not_found: |-
24
- Cannot find disable_requiretty capability.
25
- disabling_requiretty: |-
26
- Disabling requiretty on CentOS distribution.
27
- operation_already_in_queue: |-
28
- The operation you are calling on the server, is already present in queue.
29
- connecting_to_dc: |-
30
- Connecting to DataCenter.
31
- connect_to_dc: |-
32
- Connected ( DataCenter where the VM is located)
33
- wrong_dc: |-
34
- Datacenter/url is wrong or userid/password missing/wrong.
35
- snapshot_info_create: |-
36
- create:
37
- snapshot_info_expired: |-
38
- expire:
39
- snapshot_info_not_found: |-
40
- no snapshot found.
41
- snapshot_created: |-
42
- Snapshot created.
43
- snapshot_create_err_fog: |-
44
- Snapshot return an error from 'fog' interface during create.
45
- snapshot_create_err_not_on: |-
46
- Snapshot create can be run only with VM active.
47
- snapshot_deleted: |-
48
- Snapshot delete is done (effective delete can take a few seconds).
49
- snapshot_delete_err_fog: |-
50
- Snapshot return an error from 'fog' interface during delete.
51
- snapshot_restored: |-
52
- Snapshot restore is done; now VM can be 'reload' (after restore snapshot is removed).
53
- snapshot_restore_err_fog: |-
54
- Snapshot return an error from 'fog' interface during restore.
55
- snapshot_restore_err_not_off: |-
56
- Snapshot restore can be run only with VM power off.
57
- snapshot_type_unknow: |-
58
- Snapshot type request unhandle
59
- snapshot_server_unknow: |-
60
- Snapshot not found for server
61
- snapshot_req_type: |-
62
- Snapshot request is
63
-
64
- config:
65
- arubacloud_username_required: |-
66
- An username is required (arubacloud_username).
67
- arubacloud_password_required: |-
68
- A password is required (arubacloud_password).
69
- ssh_password_required: |-
70
- An SSH root Password is required.
71
- template_id_required: |-
72
- A template_id is required.
73
- package_id_required: |-
74
- A package_id is required.
75
- service_type_required: |-
76
- Service type is required.
77
- cpu_number_required: |-
78
- Cpu number is required.
79
- ram_qty_required: |-
80
- Ram quantity is required.
81
- hds_conf_required: |-
82
- An hard disk configuration is required.
83
- hds_conf_must_be_array: |-
84
- Hard disks configuration must be an array of Hash
85
-
86
- states:
87
- short_1: |-
88
- creating
89
- long_1: |-
90
- The server is creating. Wait for the server to be ready.
91
- short_2: |-
92
- stopped
93
- long_build: |-
94
- The server is currently stopped.
95
- short_3: |-
96
- running
97
- long_3: |-
98
- The server is ready. Use `vagrant ssh` to interact with the server.
99
- short_5: |-
100
- deleted
101
- long_5: |-
102
- The server is deleted.
103
- short_not_created: |-
104
- not created
105
- long_not_created: |-
1
+ en:
2
+ vagrant_arubacloud:
3
+ not_created: |-
4
+ The server hasn't been created yet. Run `vagrant up` first.
5
+ already_created: |-
6
+ The server is already created.
7
+ halting_server: |-
8
+ The server will be powered off.
9
+ starting_server: |-
10
+ The server will be powered on.
11
+ deleting_server: |-
12
+ The server will be deleted.
13
+ bad_state: |-
14
+ The server is not in the correct state for this operation.
15
+ waiting_server_powered_off: |-
16
+ Wait until server is powered off.
17
+ server_powered_off: |-
18
+ The server is now powered off.
19
+ waiting_server_powered_on: |-
20
+ Wait until server is powered on.
21
+ server_powered_on: |-
22
+ The server is now powered on.
23
+ disable_require_tty_cap_not_found: |-
24
+ Cannot find disable_requiretty capability.
25
+ disabling_requiretty: |-
26
+ Disabling requiretty on CentOS distribution.
27
+ operation_already_in_queue: |-
28
+ The operation you are calling on the server, is already present in queue.
29
+ connecting_to_dc: |-
30
+ Connecting to DataCenter.
31
+ connect_to_dc: |-
32
+ Connected ( DataCenter where the VM is located)
33
+ wrong_dc: |-
34
+ Datacenter/url is wrong or userid/password missing/wrong.
35
+ snapshot_info_create: |-
36
+ create:
37
+ snapshot_info_expired: |-
38
+ expire:
39
+ snapshot_info_not_found: |-
40
+ no snapshot found.
41
+ snapshot_created: |-
42
+ Snapshot created.
43
+ snapshot_create_err_fog: |-
44
+ Snapshot return an error from 'fog' interface during create.
45
+ snapshot_create_err_not_on: |-
46
+ Snapshot create can be run only with VM active.
47
+ snapshot_deleted: |-
48
+ Snapshot delete is done (effective delete can take a few seconds).
49
+ snapshot_delete_err_fog: |-
50
+ Snapshot return an error from 'fog' interface during delete.
51
+ snapshot_restored: |-
52
+ Snapshot restore is done; now VM can be 'reload' (after restore snapshot is removed).
53
+ snapshot_restore_err_fog: |-
54
+ Snapshot return an error from 'fog' interface during restore.
55
+ snapshot_restore_err_not_off: |-
56
+ Snapshot restore can be run only with VM power off.
57
+ snapshot_type_unknow: |-
58
+ Snapshot type request unhandle
59
+ snapshot_server_unknow: |-
60
+ Snapshot not found for server
61
+ snapshot_req_type: |-
62
+ Snapshot request is
63
+
64
+ config:
65
+ arubacloud_username_required: |-
66
+ An username is required (arubacloud_username).
67
+ arubacloud_password_required: |-
68
+ A password is required (arubacloud_password).
69
+ ssh_password_required: |-
70
+ An SSH root Password is required.
71
+ template_id_required: |-
72
+ A template_id is required.
73
+ package_id_required: |-
74
+ A package_id is required.
75
+ service_type_required: |-
76
+ Service type is required.
77
+ cpu_number_required: |-
78
+ Cpu number is required.
79
+ ram_qty_required: |-
80
+ Ram quantity is required.
81
+ hds_conf_required: |-
82
+ An hard disk configuration is required.
83
+ hds_conf_must_be_array: |-
84
+ Hard disks configuration must be an array of Hash
85
+
86
+ states:
87
+ short_1: |-
88
+ creating
89
+ long_1: |-
90
+ The server is creating. Wait for the server to be ready.
91
+ short_2: |-
92
+ stopped
93
+ long_build: |-
94
+ The server is currently stopped.
95
+ short_3: |-
96
+ running
97
+ long_3: |-
98
+ The server is ready. Use `vagrant ssh` to interact with the server.
99
+ short_5: |-
100
+ deleted
101
+ long_5: |-
102
+ The server is deleted.
103
+ short_not_created: |-
104
+ not created
105
+ long_not_created: |-
106
106
  The server is not created. Run `vagrant up` to create it.
@@ -1,166 +1,166 @@
1
- # coding: utf-8
2
- require 'spec_helper'
3
- require 'vagrant'
4
- require 'vagrant-arubacloud/action'
5
-
6
-
7
- RSpec.describe VagrantPlugins::ArubaCloud::Action do
8
-
9
- let(:builder) do
10
- double('builder').tap do |builder|
11
- #builder.stub(:use)
12
- allow(builder).to receive(:use)
13
- end
14
- end
15
-
16
- before :each do
17
- allow(Vagrant::Action::Builder).to receive(:new_builder) { builder }
18
- end
19
-
20
- describe 'action_read_ssh_info' do
21
- it 'add others middleware to builder' do
22
- expect(builder).to receive(:use).with(ConfigValidate)
23
- expect(builder).to receive(:use).with(ConnectArubaCloud)
24
- expect(builder).to receive(:use).with(ReadSSHInfo)
25
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_read_ssh_info).nil?
26
- u.stack.each do |x|
27
- builder.send("use", x.first)
28
- end
29
- end
30
- end
31
- end
32
-
33
- describe 'action_read_state' do
34
- it 'add others middleware to builder' do
35
- expect(builder).to receive(:use).with(ConfigValidate)
36
- expect(builder).to receive(:use).with(ConnectArubaCloud)
37
- expect(builder).to receive(:use).with(ReadState)
38
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_read_state).nil?
39
- u.stack.each do |x|
40
- builder.send("use", x.first)
41
- end
42
- end
43
- end
44
- end
45
-
46
- describe 'action_destroy' do
47
- it 'add others middleware to builder' do
48
- expect(builder).to receive(:use).with(ConfigValidate)
49
- expect(builder).to receive(:use).with(Call)
50
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_destroy).nil?
51
- u.stack.each do |x|
52
- builder.send("use", x.first)
53
- end
54
- end
55
- end
56
- end
57
-
58
- describe 'action_list_servers' do
59
- it 'add others middleware to builder' do
60
- expect(builder).to receive(:use).with(ConnectArubaCloud)
61
- expect(builder).to receive(:use).with(ListServers)
62
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_list_servers).nil?
63
- u.stack.each do |x|
64
- builder.send("use", x.first)
65
- end
66
- end
67
- end
68
- end
69
-
70
- describe 'action_list_templates' do
71
- it 'add others middleware to builder' do
72
- expect(builder).to receive(:use).with(ConnectArubaCloud)
73
- expect(builder).to receive(:use).with(ListTemplates)
74
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_list_templates).nil?
75
- u.stack.each do |x|
76
- builder.send("use", x.first)
77
- end
78
- end
79
- end
80
- end
81
-
82
- describe 'action_halt' do
83
- it 'add others middleware to builder' do
84
- expect(builder).to receive(:use).with(ConfigValidate)
85
- expect(builder).to receive(:use).with(Call)
86
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_halt).nil?
87
- u.stack.each do |x|
88
- builder.send("use", x.first)
89
- end
90
- end
91
- end
92
- end
93
-
94
- describe 'action_start' do
95
- it 'add others middleware to builder' do
96
- expect(builder).to receive(:use).with(ConfigValidate)
97
- expect(builder).to receive(:use).with(Call)
98
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_start).nil?
99
- u.stack.each do |x|
100
- builder.send("use", x.first)
101
- end
102
- end
103
- end
104
- end
105
-
106
- describe 'action_provision' do
107
- it 'add others middleware to builder' do
108
- expect(builder).to receive(:use).with(ConfigValidate)
109
- expect(builder).to receive(:use).with(Call)
110
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_provision).nil?
111
- u.stack.each do |x|
112
- builder.send("use", x.first)
113
- end
114
- end
115
- end
116
- end
117
-
118
- describe 'action_reload' do
119
- it 'add others middleware to builder' do
120
- expect(builder).to receive(:use).with(ConfigValidate)
121
- expect(builder).to receive(:use).with(ConnectArubaCloud)
122
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_reload).nil?
123
- u.stack.each do |x|
124
- builder.send("use", x.first)
125
- end
126
- end
127
- end
128
- end
129
-
130
- describe 'action_ssh' do
131
- it 'add others middleware to builder' do
132
- expect(builder).to receive(:use).with(ConfigValidate)
133
- expect(builder).to receive(:use).with(Call)
134
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_ssh).nil?
135
- u.stack.each do |x|
136
- builder.send("use", x.first)
137
- end
138
- end
139
- end
140
- end
141
-
142
- describe 'action_ssh_run' do
143
- it 'add others middleware to builder' do
144
- expect(builder).to receive(:use).with(ConfigValidate)
145
- expect(builder).to receive(:use).with(Call)
146
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_ssh_run).nil?
147
- u.stack.each do |x|
148
- builder.send("use", x.first)
149
- end
150
- end
151
- end
152
- end
153
-
154
- describe 'action_up' do
155
- it 'add others middleware to builder' do
156
- expect(builder).to receive(:use).with(ConfigValidate)
157
- expect(builder).to receive(:use).with(Call)
158
- unless ( u = VagrantPlugins::ArubaCloud::Action.action_up).nil?
159
- u.stack.each do |x|
160
- builder.send("use", x.first)
161
- end
162
- end
163
- end
164
- end
165
-
166
- end
1
+ # coding: utf-8
2
+ require 'spec_helper'
3
+ require 'vagrant'
4
+ require 'vagrant-arubacloud/action'
5
+
6
+
7
+ RSpec.describe VagrantPlugins::ArubaCloud::Action do
8
+
9
+ let(:builder) do
10
+ double('builder').tap do |builder|
11
+ #builder.stub(:use)
12
+ allow(builder).to receive(:use)
13
+ end
14
+ end
15
+
16
+ before :each do
17
+ allow(Vagrant::Action::Builder).to receive(:new_builder) { builder }
18
+ end
19
+
20
+ describe 'action_read_ssh_info' do
21
+ it 'add others middleware to builder' do
22
+ expect(builder).to receive(:use).with(ConfigValidate)
23
+ expect(builder).to receive(:use).with(ConnectArubaCloud)
24
+ expect(builder).to receive(:use).with(ReadSSHInfo)
25
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_read_ssh_info).nil?
26
+ u.stack.each do |x|
27
+ builder.send("use", x.first)
28
+ end
29
+ end
30
+ end
31
+ end
32
+
33
+ describe 'action_read_state' do
34
+ it 'add others middleware to builder' do
35
+ expect(builder).to receive(:use).with(ConfigValidate)
36
+ expect(builder).to receive(:use).with(ConnectArubaCloud)
37
+ expect(builder).to receive(:use).with(ReadState)
38
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_read_state).nil?
39
+ u.stack.each do |x|
40
+ builder.send("use", x.first)
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ describe 'action_destroy' do
47
+ it 'add others middleware to builder' do
48
+ expect(builder).to receive(:use).with(ConfigValidate)
49
+ expect(builder).to receive(:use).with(Call)
50
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_destroy).nil?
51
+ u.stack.each do |x|
52
+ builder.send("use", x.first)
53
+ end
54
+ end
55
+ end
56
+ end
57
+
58
+ describe 'action_list_servers' do
59
+ it 'add others middleware to builder' do
60
+ expect(builder).to receive(:use).with(ConnectArubaCloud)
61
+ expect(builder).to receive(:use).with(ListServers)
62
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_list_servers).nil?
63
+ u.stack.each do |x|
64
+ builder.send("use", x.first)
65
+ end
66
+ end
67
+ end
68
+ end
69
+
70
+ describe 'action_list_templates' do
71
+ it 'add others middleware to builder' do
72
+ expect(builder).to receive(:use).with(ConnectArubaCloud)
73
+ expect(builder).to receive(:use).with(ListTemplates)
74
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_list_templates).nil?
75
+ u.stack.each do |x|
76
+ builder.send("use", x.first)
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+ describe 'action_halt' do
83
+ it 'add others middleware to builder' do
84
+ expect(builder).to receive(:use).with(ConfigValidate)
85
+ expect(builder).to receive(:use).with(Call)
86
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_halt).nil?
87
+ u.stack.each do |x|
88
+ builder.send("use", x.first)
89
+ end
90
+ end
91
+ end
92
+ end
93
+
94
+ describe 'action_start' do
95
+ it 'add others middleware to builder' do
96
+ expect(builder).to receive(:use).with(ConfigValidate)
97
+ expect(builder).to receive(:use).with(Call)
98
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_start).nil?
99
+ u.stack.each do |x|
100
+ builder.send("use", x.first)
101
+ end
102
+ end
103
+ end
104
+ end
105
+
106
+ describe 'action_provision' do
107
+ it 'add others middleware to builder' do
108
+ expect(builder).to receive(:use).with(ConfigValidate)
109
+ expect(builder).to receive(:use).with(Call)
110
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_provision).nil?
111
+ u.stack.each do |x|
112
+ builder.send("use", x.first)
113
+ end
114
+ end
115
+ end
116
+ end
117
+
118
+ describe 'action_reload' do
119
+ it 'add others middleware to builder' do
120
+ expect(builder).to receive(:use).with(ConfigValidate)
121
+ expect(builder).to receive(:use).with(ConnectArubaCloud)
122
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_reload).nil?
123
+ u.stack.each do |x|
124
+ builder.send("use", x.first)
125
+ end
126
+ end
127
+ end
128
+ end
129
+
130
+ describe 'action_ssh' do
131
+ it 'add others middleware to builder' do
132
+ expect(builder).to receive(:use).with(ConfigValidate)
133
+ expect(builder).to receive(:use).with(Call)
134
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_ssh).nil?
135
+ u.stack.each do |x|
136
+ builder.send("use", x.first)
137
+ end
138
+ end
139
+ end
140
+ end
141
+
142
+ describe 'action_ssh_run' do
143
+ it 'add others middleware to builder' do
144
+ expect(builder).to receive(:use).with(ConfigValidate)
145
+ expect(builder).to receive(:use).with(Call)
146
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_ssh_run).nil?
147
+ u.stack.each do |x|
148
+ builder.send("use", x.first)
149
+ end
150
+ end
151
+ end
152
+ end
153
+
154
+ describe 'action_up' do
155
+ it 'add others middleware to builder' do
156
+ expect(builder).to receive(:use).with(ConfigValidate)
157
+ expect(builder).to receive(:use).with(Call)
158
+ unless ( u = VagrantPlugins::ArubaCloud::Action.action_up).nil?
159
+ u.stack.each do |x|
160
+ builder.send("use", x.first)
161
+ end
162
+ end
163
+ end
164
+ end
165
+
166
+ end