rubineti 1.3.0 → 1.4.0

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.
@@ -1,41 +0,0 @@
1
- require "support"
2
-
3
- describe Rubineti::Compute do
4
- describe Rubineti::Jobs do
5
- describe "#jobs_list" do
6
- it "returns an Array" do
7
- VCR.use_cassette "jobs" do
8
- Connection.jobs_list.size.must_equal 1
9
- end
10
- end
11
- end
12
-
13
- describe "#job_list" do
14
- it "returns a Hash" do
15
- job_id = cassette_for("jobs").first["id"]
16
-
17
- VCR.use_cassette "job_list" do
18
- response = Connection.job_list job_id
19
-
20
- response.must_be_kind_of Hash
21
- end
22
- end
23
- end
24
-
25
- describe "#job_delete" do
26
- it "is not implemented" do
27
- out, err = capture_io { Connection.job_delete :invalid_job_id }
28
-
29
- err.must_match Not_Implemented_Matcher
30
- end
31
- end
32
-
33
- describe "#job_wait" do
34
- it "is not implemented" do
35
- out, err = capture_io { Connection.job_wait :invalid_job_id }
36
-
37
- err.must_match Not_Implemented_Matcher
38
- end
39
- end
40
- end
41
- end
@@ -1,77 +0,0 @@
1
- require "support"
2
-
3
- describe Rubineti::Compute do
4
- describe Rubineti::Node do
5
- describe "#node_evacuate" do
6
- it "is not implemented" do
7
- out, err = capture_io { Connection.node_evacuate :invalid_node_name }
8
-
9
- err.must_match Not_Implemented_Matcher
10
- end
11
- end
12
-
13
- describe "#node_list" do
14
- it "returns Hash" do
15
- node_name = cassette_for("nodes").first["id"]
16
-
17
- VCR.use_cassette "node_list" do
18
- response = Connection.node_list node_name
19
-
20
- response.must_be_kind_of Hash
21
- end
22
- end
23
- end
24
-
25
- describe "#node_migrate" do
26
- it "is not implemented" do
27
- out, err = capture_io { Connection.node_migrate :invalid_node_name }
28
-
29
- err.must_match Not_Implemented_Matcher
30
- end
31
- end
32
-
33
- describe "#node_role_create" do
34
- it "is not implemented" do
35
- out, err = capture_io { Connection.node_role_create :invalid_node_name }
36
-
37
- err.must_match Not_Implemented_Matcher
38
- end
39
- end
40
-
41
- describe "#node_role_list" do
42
- it "returns a role" do
43
- node_name = cassette_for("nodes").first["id"]
44
-
45
- VCR.use_cassette "node_role_list" do
46
- response = Connection.node_role_list node_name
47
-
48
- response.must_equal "master"
49
- end
50
- end
51
- end
52
-
53
- describe "#nodes_list" do
54
- it "returns an Array of Hashes" do
55
- VCR.use_cassette "nodes" do
56
- Connection.nodes_list.size.must_equal 2
57
- end
58
- end
59
- end
60
-
61
- describe "#node_storage_list" do
62
- it "is not implemented" do
63
- out, err = capture_io { Connection.node_storage_list :invalid_node_name }
64
-
65
- err.must_match Not_Implemented_Matcher
66
- end
67
- end
68
-
69
- describe "#node_storage_modify" do
70
- it "is not implemented" do
71
- out, err = capture_io { Connection.node_storage_modify :invalid_node_name }
72
-
73
- err.must_match Not_Implemented_Matcher
74
- end
75
- end
76
- end
77
- end