ogle 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/ogle/image.rb +26 -8
- data/lib/ogle/version.rb +1 -1
- data/ogle.gemspec +1 -1
- data/test/cassettes/{images_all.yml → image_all.yml} +1 -1
- data/test/cassettes/{images_all_with_details.yml → image_all_with_details.yml} +1 -1
- data/test/cassettes/image_create.yml +16 -8
- data/test/cassettes/image_destroy.yml +67 -2
- data/test/cassettes/image_find.yml +51 -172
- data/test/cassettes/image_find_with_decimal.yml +72 -0
- data/test/cassettes/image_find_with_hexadecimal.yml +68 -0
- data/test/cassettes/{images_runable.yml → image_runable.yml} +1 -1
- data/test/cassettes/{images_runable_with_details.yml → image_runable_with_details.yml} +1 -1
- data/test/cassettes/image_update_metadata.yml +120 -0
- data/test/cassettes/image_update_properties.yml +120 -0
- data/test/lib/ogle/image_test.rb +124 -29
- metadata +19 -13
- data/test/cassettes/images_find.yml +0 -143
@@ -1,143 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :head
|
5
|
-
uri: http://gluster.trunk:9292/v1/images/4
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
9
|
-
- application/json
|
10
|
-
connection:
|
11
|
-
- keep-alive
|
12
|
-
keep-alive:
|
13
|
-
- 30
|
14
|
-
response: !ruby/struct:VCR::Response
|
15
|
-
status: !ruby/struct:VCR::ResponseStatus
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
content-type:
|
20
|
-
- text/html; charset=UTF-8
|
21
|
-
content-length:
|
22
|
-
- "0"
|
23
|
-
x-image-meta-property-distro:
|
24
|
-
- Ubuntu
|
25
|
-
x-image-meta-id:
|
26
|
-
- "4"
|
27
|
-
x-image-meta-property-arch:
|
28
|
-
- amd64
|
29
|
-
x-image-meta-deleted:
|
30
|
-
- "False"
|
31
|
-
x-image-meta-container-format:
|
32
|
-
- ami
|
33
|
-
x-image-meta-property-uploader:
|
34
|
-
- root@enc1b11
|
35
|
-
x-image-meta-location:
|
36
|
-
- file:///var/lib/glance/images/4
|
37
|
-
x-image-meta-deleted-at:
|
38
|
-
- ""
|
39
|
-
x-image-meta-created-at:
|
40
|
-
- 2011-05-11T15:48:02
|
41
|
-
x-image-meta-size:
|
42
|
-
- "1476395008"
|
43
|
-
x-image-meta-status:
|
44
|
-
- active
|
45
|
-
x-image-meta-property-type:
|
46
|
-
- machine
|
47
|
-
x-image-meta-property-kernel-name:
|
48
|
-
- natty-server-uec-amd64-vmlinuz-virtual
|
49
|
-
x-image-meta-is-public:
|
50
|
-
- "True"
|
51
|
-
x-image-meta-property-kernel-id:
|
52
|
-
- "3"
|
53
|
-
x-image-meta-updated-at:
|
54
|
-
- 2011-05-11T15:48:08
|
55
|
-
x-image-meta-checksum:
|
56
|
-
- b6149317c554d2c335365e7bd43e9bf0
|
57
|
-
x-image-meta-property-version:
|
58
|
-
- "11.04"
|
59
|
-
x-image-meta-disk-format:
|
60
|
-
- ami
|
61
|
-
x-image-meta-name:
|
62
|
-
- natty-server-uec-amd64.img
|
63
|
-
location:
|
64
|
-
- http://gluster.trunk:9292/v1/images/4
|
65
|
-
etag:
|
66
|
-
- b6149317c554d2c335365e7bd43e9bf0
|
67
|
-
date:
|
68
|
-
- Sat, 28 May 2011 02:32:56 GMT
|
69
|
-
connection:
|
70
|
-
- keep-alive
|
71
|
-
body:
|
72
|
-
http_version: "1.1"
|
73
|
-
- !ruby/struct:VCR::HTTPInteraction
|
74
|
-
request: !ruby/struct:VCR::Request
|
75
|
-
method: :head
|
76
|
-
uri: http://glance.trunk:9292/v1/images/4
|
77
|
-
body:
|
78
|
-
headers:
|
79
|
-
accept:
|
80
|
-
- application/json
|
81
|
-
connection:
|
82
|
-
- keep-alive
|
83
|
-
keep-alive:
|
84
|
-
- 30
|
85
|
-
response: !ruby/struct:VCR::Response
|
86
|
-
status: !ruby/struct:VCR::ResponseStatus
|
87
|
-
code: 200
|
88
|
-
message: OK
|
89
|
-
headers:
|
90
|
-
content-type:
|
91
|
-
- text/html; charset=UTF-8
|
92
|
-
content-length:
|
93
|
-
- "0"
|
94
|
-
x-image-meta-property-distro:
|
95
|
-
- Ubuntu
|
96
|
-
x-image-meta-id:
|
97
|
-
- "4"
|
98
|
-
x-image-meta-property-arch:
|
99
|
-
- amd64
|
100
|
-
x-image-meta-deleted:
|
101
|
-
- "False"
|
102
|
-
x-image-meta-container-format:
|
103
|
-
- ami
|
104
|
-
x-image-meta-property-uploader:
|
105
|
-
- root@enc1b11
|
106
|
-
x-image-meta-location:
|
107
|
-
- file:///var/lib/glance/images/4
|
108
|
-
x-image-meta-deleted-at:
|
109
|
-
- ""
|
110
|
-
x-image-meta-created-at:
|
111
|
-
- 2011-05-11T15:48:02
|
112
|
-
x-image-meta-size:
|
113
|
-
- "1476395008"
|
114
|
-
x-image-meta-status:
|
115
|
-
- active
|
116
|
-
x-image-meta-property-type:
|
117
|
-
- machine
|
118
|
-
x-image-meta-property-kernel-name:
|
119
|
-
- natty-server-uec-amd64-vmlinuz-virtual
|
120
|
-
x-image-meta-is-public:
|
121
|
-
- "True"
|
122
|
-
x-image-meta-property-kernel-id:
|
123
|
-
- "3"
|
124
|
-
x-image-meta-updated-at:
|
125
|
-
- 2011-05-11T15:48:08
|
126
|
-
x-image-meta-checksum:
|
127
|
-
- b6149317c554d2c335365e7bd43e9bf0
|
128
|
-
x-image-meta-property-version:
|
129
|
-
- "11.04"
|
130
|
-
x-image-meta-disk-format:
|
131
|
-
- ami
|
132
|
-
x-image-meta-name:
|
133
|
-
- natty-server-uec-amd64.img
|
134
|
-
location:
|
135
|
-
- http://glance.trunk:9292/v1/images/4
|
136
|
-
etag:
|
137
|
-
- b6149317c554d2c335365e7bd43e9bf0
|
138
|
-
date:
|
139
|
-
- Wed, 01 Jun 2011 21:01:44 GMT
|
140
|
-
connection:
|
141
|
-
- keep-alive
|
142
|
-
body:
|
143
|
-
http_version: "1.1"
|