cfoundry 4.6.2 → 4.6.3.rc1
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.
- data/lib/cfoundry/version.rb +1 -1
- data/spec/cfoundry/v2/event_spec.rb +3 -3
- data/spec/factories/events_factory.rb +15 -17
- data/spec/fixtures/fake_cc_events.json +73 -173
- metadata +6 -9
data/lib/cfoundry/version.rb
CHANGED
@@ -3,11 +3,11 @@ require "spec_helper"
|
|
3
3
|
module CFoundry
|
4
4
|
module V2
|
5
5
|
describe Event do
|
6
|
-
let(:event) { build(:event, :app_update, changes:
|
6
|
+
let(:event) { build(:event, :app_update, changes: 'STOPPED') }
|
7
7
|
|
8
8
|
describe "#metadata" do
|
9
|
-
it "contains the
|
10
|
-
expect(event.metadata[:
|
9
|
+
it "contains the request" do
|
10
|
+
expect(event.metadata[:request]).to eq('STOPPED')
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -13,17 +13,17 @@ FactoryGirl.define do
|
|
13
13
|
|
14
14
|
initialize_with do
|
15
15
|
new(guid, build(:client), {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
16
|
+
entity: {
|
17
|
+
type: type,
|
18
|
+
actee: actee,
|
19
|
+
actee_type: actee_type,
|
20
|
+
actor: actor,
|
21
|
+
actor_type: actor_type,
|
22
|
+
organization_guid: organization_guid,
|
23
|
+
space_guid: space_guid,
|
24
|
+
timestamp: timestamp,
|
25
|
+
metadata: metadata
|
26
|
+
}
|
27
27
|
})
|
28
28
|
end
|
29
29
|
|
@@ -31,16 +31,14 @@ FactoryGirl.define do
|
|
31
31
|
type 'audit.app.update'
|
32
32
|
|
33
33
|
changes do
|
34
|
-
{state:
|
34
|
+
{state: 'STARTED'}
|
35
35
|
end
|
36
36
|
|
37
37
|
metadata do
|
38
38
|
{
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
instances: 1
|
43
|
-
}
|
39
|
+
request: changes,
|
40
|
+
desired_memory: 128,
|
41
|
+
desired_instances: 1
|
44
42
|
}
|
45
43
|
end
|
46
44
|
end
|
@@ -17,16 +17,11 @@
|
|
17
17
|
"actee_type": "app",
|
18
18
|
"timestamp": "2012-11-01T12:00:00+00:00",
|
19
19
|
"metadata": {
|
20
|
-
"
|
21
|
-
"state":
|
22
|
-
"STOPPED",
|
23
|
-
"STARTED"
|
24
|
-
]
|
20
|
+
"request": {
|
21
|
+
"state": "STARTED"
|
25
22
|
},
|
26
|
-
"
|
27
|
-
|
28
|
-
"instances": 2
|
29
|
-
}
|
23
|
+
"desired_memory": 1024,
|
24
|
+
"desired_instances": 2
|
30
25
|
},
|
31
26
|
"space_guid": "space-id-1"
|
32
27
|
}
|
@@ -44,16 +39,11 @@
|
|
44
39
|
"actee_type": "app",
|
45
40
|
"timestamp": "2012-11-01T12:01:22+00:00",
|
46
41
|
"metadata": {
|
47
|
-
"
|
48
|
-
"state":
|
49
|
-
"STOPPED",
|
50
|
-
"STARTED"
|
51
|
-
]
|
42
|
+
"request": {
|
43
|
+
"state": "STARTED"
|
52
44
|
},
|
53
|
-
"
|
54
|
-
|
55
|
-
"instances": 1
|
56
|
-
}
|
45
|
+
"desired_memory": 2048,
|
46
|
+
"desired_instances": 1
|
57
47
|
},
|
58
48
|
"space_guid": "space-id-2"
|
59
49
|
}
|
@@ -71,12 +61,10 @@
|
|
71
61
|
"actee_type": "app",
|
72
62
|
"timestamp": "2012-11-01T12:03:00+00:00",
|
73
63
|
"metadata": {
|
74
|
-
"
|
64
|
+
"request": {
|
75
65
|
},
|
76
|
-
"
|
77
|
-
|
78
|
-
"instances": 2
|
79
|
-
}
|
66
|
+
"desired_memory": 1024,
|
67
|
+
"desired_instances": 2
|
80
68
|
},
|
81
69
|
"space_guid": "space-id-1"
|
82
70
|
}
|
@@ -94,16 +82,11 @@
|
|
94
82
|
"actee_type": "app",
|
95
83
|
"timestamp": "2012-11-01T12:04:00+00:00",
|
96
84
|
"metadata": {
|
97
|
-
"
|
98
|
-
"state":
|
99
|
-
"STARTED",
|
100
|
-
"STOPPED"
|
101
|
-
]
|
85
|
+
"request": {
|
86
|
+
"state": "STOPPED"
|
102
87
|
},
|
103
|
-
"
|
104
|
-
|
105
|
-
"instances": 2
|
106
|
-
}
|
88
|
+
"desired_memory": 1024,
|
89
|
+
"desired_instances": 2
|
107
90
|
},
|
108
91
|
"space_guid": "space-id-1"
|
109
92
|
}
|
@@ -121,16 +104,11 @@
|
|
121
104
|
"actee_type": "app",
|
122
105
|
"timestamp": "2012-11-01T12:05:00+00:00",
|
123
106
|
"metadata": {
|
124
|
-
"
|
125
|
-
"state":
|
126
|
-
"STOPPED",
|
127
|
-
"STARTED"
|
128
|
-
]
|
107
|
+
"request": {
|
108
|
+
"state": "STARTED"
|
129
109
|
},
|
130
|
-
"
|
131
|
-
|
132
|
-
"instances": 2
|
133
|
-
}
|
110
|
+
"desired_memory": 1024,
|
111
|
+
"desired_instances": 2
|
134
112
|
},
|
135
113
|
"space_guid": "space-id-1"
|
136
114
|
}
|
@@ -148,16 +126,11 @@
|
|
148
126
|
"actee_type": "app",
|
149
127
|
"timestamp": "2012-11-01T12:06:00+00:00",
|
150
128
|
"metadata": {
|
151
|
-
"
|
152
|
-
"state":
|
153
|
-
"STARTED",
|
154
|
-
"STOPPED"
|
155
|
-
]
|
129
|
+
"request": {
|
130
|
+
"state": "STOPPED"
|
156
131
|
},
|
157
|
-
"
|
158
|
-
|
159
|
-
"instances": 2
|
160
|
-
}
|
132
|
+
"desired_memory": 1024,
|
133
|
+
"desired_instances": 2
|
161
134
|
},
|
162
135
|
"space_guid": "space-id-1"
|
163
136
|
}
|
@@ -175,16 +148,11 @@
|
|
175
148
|
"actee_type": "app",
|
176
149
|
"timestamp": "2012-11-01T12:07:00+00:00",
|
177
150
|
"metadata": {
|
178
|
-
"
|
179
|
-
"state":
|
180
|
-
"STOPPED",
|
181
|
-
"STARTED"
|
182
|
-
]
|
151
|
+
"request": {
|
152
|
+
"state": "STARTED"
|
183
153
|
},
|
184
|
-
"
|
185
|
-
|
186
|
-
"instances": 2
|
187
|
-
}
|
154
|
+
"desired_memory": 1024,
|
155
|
+
"desired_instances": 2
|
188
156
|
},
|
189
157
|
"space_guid": "space-id-3"
|
190
158
|
}
|
@@ -202,16 +170,11 @@
|
|
202
170
|
"actee_type": "app",
|
203
171
|
"timestamp": "2012-11-01T12:07:30+00:00",
|
204
172
|
"metadata": {
|
205
|
-
"
|
206
|
-
"state":
|
207
|
-
"STARTED",
|
208
|
-
"STOPPED"
|
209
|
-
]
|
173
|
+
"request": {
|
174
|
+
"state": "STOPPED"
|
210
175
|
},
|
211
|
-
"
|
212
|
-
|
213
|
-
"instances": 2
|
214
|
-
}
|
176
|
+
"desired_memory": 1024,
|
177
|
+
"desired_instances": 2
|
215
178
|
},
|
216
179
|
"space_guid": "space-id-3"
|
217
180
|
}
|
@@ -245,16 +208,11 @@
|
|
245
208
|
"actee_type": "app",
|
246
209
|
"timestamp": "2012-11-01T12:09:00+00:00",
|
247
210
|
"metadata": {
|
248
|
-
"
|
249
|
-
"state":
|
250
|
-
"STOPPED",
|
251
|
-
"STARTED"
|
252
|
-
]
|
211
|
+
"request": {
|
212
|
+
"state": "STARTED"
|
253
213
|
},
|
254
|
-
"
|
255
|
-
|
256
|
-
"instances": 2
|
257
|
-
}
|
214
|
+
"desired_memory": 1024,
|
215
|
+
"desired_instances": 2
|
258
216
|
},
|
259
217
|
"space_guid": "space-id-4"
|
260
218
|
}
|
@@ -288,16 +246,11 @@
|
|
288
246
|
"actee_type": "app",
|
289
247
|
"timestamp": "2012-11-01T12:11:00+00:00",
|
290
248
|
"metadata": {
|
291
|
-
"
|
292
|
-
"instances": [
|
293
|
-
1,
|
294
|
-
2
|
295
|
-
]
|
296
|
-
},
|
297
|
-
"footprints": {
|
298
|
-
"memory": 2048,
|
249
|
+
"request": {
|
299
250
|
"instances": 2
|
300
|
-
}
|
251
|
+
},
|
252
|
+
"desired_memory": 2048,
|
253
|
+
"desired_instances": 2
|
301
254
|
},
|
302
255
|
"space_guid": "space-id-2"
|
303
256
|
}
|
@@ -315,16 +268,11 @@
|
|
315
268
|
"actee_type": "app",
|
316
269
|
"timestamp": "2012-11-01T12:11:30+00:00",
|
317
270
|
"metadata": {
|
318
|
-
"
|
319
|
-
"memory":
|
320
|
-
2048,
|
321
|
-
1024
|
322
|
-
]
|
271
|
+
"request": {
|
272
|
+
"memory": 1024
|
323
273
|
},
|
324
|
-
"
|
325
|
-
|
326
|
-
"instances": 2
|
327
|
-
}
|
274
|
+
"desired_memory": 1024,
|
275
|
+
"desired_instances": 2
|
328
276
|
},
|
329
277
|
"space_guid": "space-id-2"
|
330
278
|
}
|
@@ -342,24 +290,13 @@
|
|
342
290
|
"actee_type": "app",
|
343
291
|
"timestamp": "2012-11-01T12:11:35+00:00",
|
344
292
|
"metadata": {
|
345
|
-
"
|
346
|
-
"instances":
|
347
|
-
2,
|
348
|
-
1
|
349
|
-
],
|
350
|
-
"memory": [
|
351
|
-
1024,
|
352
|
-
2048
|
353
|
-
],
|
354
|
-
"state": [
|
355
|
-
"STARTED",
|
356
|
-
"STOPPED"
|
357
|
-
]
|
358
|
-
},
|
359
|
-
"footprints": {
|
293
|
+
"request": {
|
294
|
+
"instances": 1,
|
360
295
|
"memory": 2048,
|
361
|
-
"
|
362
|
-
}
|
296
|
+
"state": "STOPPED"
|
297
|
+
},
|
298
|
+
"desired_memory": 2048,
|
299
|
+
"desired_instances": 1
|
363
300
|
},
|
364
301
|
"space_guid": "space-id-2"
|
365
302
|
}
|
@@ -377,24 +314,13 @@
|
|
377
314
|
"actee_type": "app",
|
378
315
|
"timestamp": "2012-11-01T12:11:40+00:00",
|
379
316
|
"metadata": {
|
380
|
-
"
|
381
|
-
"instances":
|
382
|
-
1,
|
383
|
-
2
|
384
|
-
],
|
385
|
-
"memory": [
|
386
|
-
2048,
|
387
|
-
1024
|
388
|
-
],
|
389
|
-
"state": [
|
390
|
-
"STOPPED",
|
391
|
-
"STARTED"
|
392
|
-
]
|
393
|
-
},
|
394
|
-
"footprints": {
|
317
|
+
"request": {
|
318
|
+
"instances": 2,
|
395
319
|
"memory": 1024,
|
396
|
-
"
|
397
|
-
}
|
320
|
+
"state": "STARTED"
|
321
|
+
},
|
322
|
+
"desired_memory": 1024,
|
323
|
+
"desired_instances": 2
|
398
324
|
},
|
399
325
|
"space_guid": "space-id-2"
|
400
326
|
}
|
@@ -412,20 +338,12 @@
|
|
412
338
|
"actee_type": "app",
|
413
339
|
"timestamp": "2012-11-01T12:11:45+00:00",
|
414
340
|
"metadata": {
|
415
|
-
"
|
416
|
-
"instances":
|
417
|
-
|
418
|
-
1
|
419
|
-
],
|
420
|
-
"memory": [
|
421
|
-
1024,
|
422
|
-
2048
|
423
|
-
]
|
341
|
+
"request": {
|
342
|
+
"instances": 1,
|
343
|
+
"memory": 2048
|
424
344
|
},
|
425
|
-
"
|
426
|
-
|
427
|
-
"instances": 1
|
428
|
-
}
|
345
|
+
"desired_memory": 2048,
|
346
|
+
"desired_instances": 1
|
429
347
|
},
|
430
348
|
"space_guid": "space-id-2"
|
431
349
|
}
|
@@ -443,16 +361,11 @@
|
|
443
361
|
"actee_type": "app",
|
444
362
|
"timestamp": "2012-11-01T12:12:00+00:00",
|
445
363
|
"metadata": {
|
446
|
-
"
|
447
|
-
"instances": [
|
448
|
-
1,
|
449
|
-
2
|
450
|
-
]
|
451
|
-
},
|
452
|
-
"footprints": {
|
453
|
-
"memory": 2048,
|
364
|
+
"request": {
|
454
365
|
"instances": 2
|
455
|
-
}
|
366
|
+
},
|
367
|
+
"desired_memory": 2048,
|
368
|
+
"desired_instances": 2
|
456
369
|
},
|
457
370
|
"space_guid": "space-id-5"
|
458
371
|
}
|
@@ -470,16 +383,11 @@
|
|
470
383
|
"actee_type": "app",
|
471
384
|
"timestamp": "2012-11-01T12:13:00+00:00",
|
472
385
|
"metadata": {
|
473
|
-
"
|
474
|
-
"memory":
|
475
|
-
2048,
|
476
|
-
1024
|
477
|
-
]
|
386
|
+
"request": {
|
387
|
+
"memory": 1024
|
478
388
|
},
|
479
|
-
"
|
480
|
-
|
481
|
-
"instances": 2
|
482
|
-
}
|
389
|
+
"desired_memory": 1024,
|
390
|
+
"desired_instances": 2
|
483
391
|
},
|
484
392
|
"space_guid": "space-id-5"
|
485
393
|
}
|
@@ -497,20 +405,12 @@
|
|
497
405
|
"actee_type": "app",
|
498
406
|
"timestamp": "2012-11-01T12:14:00+00:00",
|
499
407
|
"metadata": {
|
500
|
-
"
|
501
|
-
"instances":
|
502
|
-
|
503
|
-
1
|
504
|
-
],
|
505
|
-
"memory": [
|
506
|
-
1024,
|
507
|
-
2048
|
508
|
-
]
|
408
|
+
"request": {
|
409
|
+
"instances": 1,
|
410
|
+
"memory": 2048
|
509
411
|
},
|
510
|
-
"
|
511
|
-
|
512
|
-
"instances": 1
|
513
|
-
}
|
412
|
+
"desired_memory": 2048,
|
413
|
+
"desired_instances": 1
|
514
414
|
},
|
515
415
|
"space_guid": "space-id-5"
|
516
416
|
}
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
5
|
-
prerelease:
|
4
|
+
version: 4.6.3.rc1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Cloud Foundry Team
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -468,16 +468,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
468
468
|
version: '0'
|
469
469
|
segments:
|
470
470
|
- 0
|
471
|
-
hash:
|
471
|
+
hash: 3431977966822303328
|
472
472
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
473
473
|
none: false
|
474
474
|
requirements:
|
475
|
-
- - ! '
|
475
|
+
- - ! '>'
|
476
476
|
- !ruby/object:Gem::Version
|
477
|
-
version:
|
478
|
-
segments:
|
479
|
-
- 0
|
480
|
-
hash: -1196192211870274107
|
477
|
+
version: 1.3.1
|
481
478
|
requirements: []
|
482
479
|
rubyforge_project: cfoundry
|
483
480
|
rubygems_version: 1.8.25
|