hawkular-client 0.2.0 → 0.2.1

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.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +2 -1
  4. data/.rubocop.yml +19 -6
  5. data/CHANGES.rdoc +13 -3
  6. data/README.rdoc +9 -3
  7. data/hawkularclient.gemspec +8 -4
  8. data/lib/alerts/alerts_api.rb +202 -32
  9. data/lib/hawkular.rb +35 -67
  10. data/lib/hawkular_all.rb +2 -0
  11. data/lib/inventory/inventory_api.rb +459 -130
  12. data/lib/metrics/metric_api.rb +14 -9
  13. data/lib/operations/operations_api.rb +247 -0
  14. data/lib/tokens/tokens_api.rb +33 -0
  15. data/lib/version.rb +1 -1
  16. data/spec/integration/alerts_spec.rb +272 -20
  17. data/spec/integration/hello-world-definitions.json +46 -0
  18. data/spec/integration/inventory_spec.rb +253 -89
  19. data/spec/integration/metric_spec.rb +36 -0
  20. data/spec/integration/operations_spec.rb +420 -0
  21. data/spec/integration/tokens_spec.rb +45 -0
  22. data/spec/resources/driver.jar +0 -0
  23. data/spec/resources/sample.war +0 -0
  24. data/spec/spec_helper.rb +30 -6
  25. data/spec/unit/base_spec.rb +22 -1
  26. data/spec/unit/canonical_path_spec.rb +92 -0
  27. data/spec/vcr/vcr_setup.rb +3 -4
  28. data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +1187 -0
  29. data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +101 -0
  30. data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +79 -0
  31. data/spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml +49 -0
  32. data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +225 -0
  33. data/spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml +355 -0
  34. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +134 -0
  35. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +220 -0
  36. data/spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml +218 -0
  37. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml +46 -0
  38. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +134 -0
  39. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +270 -0
  40. data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json +47 -0
  41. data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml +191 -0
  42. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +507 -0
  43. data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +74 -69
  44. data/spec/vcr_cassettes/Inventory/{Should_list_types_without_feed.yml → Should_create_a_feed.yml} +29 -32
  45. data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +211 -0
  46. data/spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml +355 -0
  47. data/spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml +786 -0
  48. data/spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml +205 -0
  49. data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +201 -0
  50. data/spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml +419 -0
  51. data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +39 -27
  52. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +37 -29
  53. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +53 -45
  54. data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +177 -0
  55. data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +230 -56
  56. data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +27 -24
  57. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +586 -119
  58. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +220 -59
  59. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +613 -0
  60. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +333 -0
  61. data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +2064 -0
  62. data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +460 -0
  63. data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +26 -25
  64. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +102 -36
  65. data/spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml +54 -0
  66. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  67. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  68. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
  69. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
  70. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
  71. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
  72. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
  73. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  74. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
  75. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
  76. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
  77. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
  78. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  79. data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
  80. data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
  81. data/spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml +57 -0
  82. data/spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml +49 -0
  83. data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml +56 -0
  84. data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml +55 -0
  85. metadata +175 -11
  86. data/lib/metrics/version.rb +0 -7
@@ -11,17 +11,15 @@ http_interactions:
11
11
  - application/json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
14
16
  Content-Type:
15
17
  - application/json
16
- User-Agent:
17
- - Ruby
18
18
  response:
19
19
  status:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Content-Encoding:
24
- - gzip
25
23
  Expires:
26
24
  - '0'
27
25
  Cache-Control:
@@ -29,24 +27,26 @@ http_interactions:
29
27
  X-Powered-By:
30
28
  - Undertow/1
31
29
  Server:
32
- - WildFly/9
30
+ - WildFly/10
33
31
  Pragma:
34
32
  - no-cache
35
33
  Date:
36
- - Fri, 06 Nov 2015 19:45:47 GMT
34
+ - Thu, 18 Feb 2016 22:30:15 GMT
37
35
  Connection:
38
36
  - keep-alive
39
37
  Content-Type:
40
38
  - application/json
41
39
  Content-Length:
42
- - '85'
40
+ - '105'
43
41
  body:
44
42
  encoding: ASCII-8BIT
45
- string: !binary |-
46
- H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
- 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
- http_version:
49
- recorded_at: Fri, 06 Nov 2015 19:45:47 GMT
43
+ string: |-
44
+ {
45
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
+ }
48
+ http_version:
49
+ recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
50
50
  - request:
51
51
  method: get
52
52
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/does%20not%20exist/resourceTypes
@@ -58,17 +58,19 @@ http_interactions:
58
58
  - application/json
59
59
  Accept-Encoding:
60
60
  - gzip, deflate
61
+ User-Agent:
62
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
63
+ Hawkular-Tenant:
64
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
65
+ Tenantid:
66
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
61
67
  Content-Type:
62
68
  - application/json
63
- User-Agent:
64
- - Ruby
65
69
  response:
66
70
  status:
67
71
  code: 200
68
72
  message: OK
69
73
  headers:
70
- Content-Encoding:
71
- - gzip
72
74
  Expires:
73
75
  - '0'
74
76
  Cache-Control:
@@ -76,26 +78,25 @@ http_interactions:
76
78
  X-Powered-By:
77
79
  - Undertow/1
78
80
  Server:
79
- - WildFly/9
81
+ - WildFly/10
80
82
  Pragma:
81
83
  - no-cache
82
84
  Date:
83
- - Fri, 06 Nov 2015 19:45:47 GMT
85
+ - Thu, 18 Feb 2016 22:30:15 GMT
84
86
  X-Total-Count:
85
- - '-1'
87
+ - "-1"
86
88
  Connection:
87
89
  - keep-alive
88
90
  Content-Type:
89
91
  - application/json
90
92
  Content-Length:
91
- - '23'
93
+ - '3'
92
94
  Link:
93
95
  - <http://localhost:8080/hawkular/inventory/feeds/does%20not%20exist/resourceTypes>;
94
96
  rel="current"
95
97
  body:
96
98
  encoding: ASCII-8BIT
97
- string: !binary |-
98
- H4sIAAAAAAAAAItWiAUAqBH2HwMAAAA=
99
- http_version:
100
- recorded_at: Fri, 06 Nov 2015 19:45:47 GMT
101
- recorded_with: VCR 3.0.0
99
+ string: "[ ]"
100
+ http_version:
101
+ recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
102
+ recorded_with: VCR 3.0.1
@@ -11,17 +11,15 @@ http_interactions:
11
11
  - application/json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
14
16
  Content-Type:
15
17
  - application/json
16
- User-Agent:
17
- - Ruby
18
18
  response:
19
19
  status:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Content-Encoding:
24
- - gzip
25
23
  Expires:
26
24
  - '0'
27
25
  Cache-Control:
@@ -29,27 +27,29 @@ http_interactions:
29
27
  X-Powered-By:
30
28
  - Undertow/1
31
29
  Server:
32
- - WildFly/9
30
+ - WildFly/10
33
31
  Pragma:
34
32
  - no-cache
35
33
  Date:
36
- - Fri, 06 Nov 2015 19:45:46 GMT
34
+ - Thu, 18 Feb 2016 22:30:14 GMT
37
35
  Connection:
38
36
  - keep-alive
39
37
  Content-Type:
40
38
  - application/json
41
39
  Content-Length:
42
- - '85'
40
+ - '105'
43
41
  body:
44
42
  encoding: ASCII-8BIT
45
- string: !binary |-
46
- H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
- 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
- http_version:
49
- recorded_at: Fri, 06 Nov 2015 19:45:46 GMT
43
+ string: |-
44
+ {
45
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
+ "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
+ }
48
+ http_version:
49
+ recorded_at: Thu, 18 Feb 2016 22:30:14 GMT
50
50
  - request:
51
51
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resourceTypes
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resourceTypes
53
53
  body:
54
54
  encoding: US-ASCII
55
55
  string: ''
@@ -58,17 +58,19 @@ http_interactions:
58
58
  - application/json
59
59
  Accept-Encoding:
60
60
  - gzip, deflate
61
+ User-Agent:
62
+ - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
63
+ Hawkular-Tenant:
64
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
65
+ Tenantid:
66
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
61
67
  Content-Type:
62
68
  - application/json
63
- User-Agent:
64
- - Ruby
65
69
  response:
66
70
  status:
67
71
  code: 200
68
72
  message: OK
69
73
  headers:
70
- Content-Encoding:
71
- - gzip
72
74
  Expires:
73
75
  - '0'
74
76
  Cache-Control:
@@ -76,34 +78,98 @@ http_interactions:
76
78
  X-Powered-By:
77
79
  - Undertow/1
78
80
  Server:
79
- - WildFly/9
81
+ - WildFly/10
80
82
  Pragma:
81
83
  - no-cache
82
84
  Date:
83
- - Fri, 06 Nov 2015 19:45:47 GMT
85
+ - Thu, 18 Feb 2016 22:30:15 GMT
84
86
  X-Total-Count:
85
- - '16'
87
+ - '18'
86
88
  Connection:
87
89
  - keep-alive
88
90
  Content-Type:
89
91
  - application/json
90
92
  Content-Length:
91
- - '438'
93
+ - '3053'
92
94
  Link:
93
- - <http://localhost:8080/hawkular/inventory/feeds/snert/resourceTypes>; rel="current"
95
+ - <http://localhost:8080/hawkular/inventory/feeds/f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/resourceTypes>;
96
+ rel="current"
94
97
  body:
95
98
  encoding: ASCII-8BIT
96
- string: !binary |-
97
- H4sIAAAAAAAAAK2UwWuDMBjF7/0rgrBbxU5dJ/M015VRKBt0sMPYIbWfnVRj
98
- SeKGjP7vizbaGO0tN3nvkfx4+fw+0d8EIeuI+beFHpDl8NANZu58683tIAHf
99
- 9j3PtQM/Duw714fbew/Pg23iQMiBcScJGQHKHcrD1yNQzFOyv3Fnm4pxyK1p
100
- fTTBOTRHdwGk2ulu3JycpsbQlmkGNRUvKGhQtYUUQ+IoskmQN1rEwFhBNQpN
101
- lxAX1STDGvKCVhqAKsrbpWTy6o802y2zqn4KoD+gtyBtpJoSRrNMQi0wx6wo
102
- aayPhm5IFEU2ibFaRE+imAVNh8XUHlIdiaLqRiuBY1ZUORCuV6IZbSUX2eyk
103
- Mob30LZCxMfzKhpMbhM610BQF+imeGCbRNxwzCETdzQzzVhajFN2OSRTA9Dx
104
- hFFW8e9koD9pT21ZpGb0drHbxZnX+mndYS89xyhRub066CNey9NzTPK8U0wY
105
- jvl5htaYiLnVN4GSQb2EpBvzTTK+4N9DmWEqAOuVnDTL/HE/LLANIhlDSkiy
106
- XomYxI3K+seMaHEYNCkspBoSSpEnJ/T1D7vku9gfCQAA
107
- http_version:
108
- recorded_at: Fri, 06 Nov 2015 19:45:47 GMT
109
- recorded_with: VCR 3.0.0
99
+ string: |-
100
+ [ {
101
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Operating%20System",
102
+ "name" : "Operating System",
103
+ "id" : "Operating System"
104
+ }, {
105
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;File%20Store",
106
+ "name" : "File Store",
107
+ "id" : "File Store"
108
+ }, {
109
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Memory",
110
+ "name" : "Memory",
111
+ "id" : "Memory"
112
+ }, {
113
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Processor",
114
+ "name" : "Processor",
115
+ "id" : "Processor"
116
+ }, {
117
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;WildFly%20Server",
118
+ "name" : "WildFly Server",
119
+ "id" : "WildFly Server"
120
+ }, {
121
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Datasource",
122
+ "name" : "Datasource",
123
+ "id" : "Datasource"
124
+ }, {
125
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;JDBC%20Driver",
126
+ "name" : "JDBC Driver",
127
+ "id" : "JDBC Driver"
128
+ }, {
129
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Deployment",
130
+ "name" : "Deployment",
131
+ "id" : "Deployment"
132
+ }, {
133
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Singleton%20EJB",
134
+ "name" : "Singleton EJB",
135
+ "id" : "Singleton EJB"
136
+ }, {
137
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Stateless%20Session%20EJB",
138
+ "name" : "Stateless Session EJB",
139
+ "id" : "Stateless Session EJB"
140
+ }, {
141
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Message%20Driven%20EJB",
142
+ "name" : "Message Driven EJB",
143
+ "id" : "Message Driven EJB"
144
+ }, {
145
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Servlet",
146
+ "name" : "Servlet",
147
+ "id" : "Servlet"
148
+ }, {
149
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;SubDeployment",
150
+ "name" : "SubDeployment",
151
+ "id" : "SubDeployment"
152
+ }, {
153
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Transaction%20Manager",
154
+ "name" : "Transaction Manager",
155
+ "id" : "Transaction Manager"
156
+ }, {
157
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Messaging%20Server",
158
+ "name" : "Messaging Server",
159
+ "id" : "Messaging Server"
160
+ }, {
161
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;JMS%20Topic",
162
+ "name" : "JMS Topic",
163
+ "id" : "JMS Topic"
164
+ }, {
165
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;JMS%20Queue",
166
+ "name" : "JMS Queue",
167
+ "id" : "JMS Queue"
168
+ }, {
169
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88/rt;Hawkular%20WildFly%20Agent",
170
+ "name" : "Hawkular WildFly Agent",
171
+ "id" : "Hawkular WildFly Agent"
172
+ } ]
173
+ http_version:
174
+ recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
175
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/*bla%20does%20not%20exist*
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: Not Found
22
+ headers:
23
+ Content-Encoding:
24
+ - gzip
25
+ Expires:
26
+ - '0'
27
+ Cache-Control:
28
+ - no-cache, no-store, must-revalidate
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/10
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Mon, 15 Feb 2016 15:49:14 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '231'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAALWPwWrDMAyG730KYdilLKRzssw0x503xtgtmOIkcmvwrGK7
47
+ bKHk3We72yMMgyz9v4Q+XTcADL0n/xKODPbAXgneMdDFTwiaLm4GcqDcAqQh
48
+ nrJmLX0Zd4Sziqewh2F4Vo6cmZR9y8pQx56LHe/GpquExrZqm4ZXop1E9chb
49
+ fHhqVCdGXeteI86HT7Uc8NuEWPt+O1p1x3czYUifo5hi8bZSSnafYWeMytiQ
50
+ Wa+pzvgumrh8LGcsB/zRl/ZkZ8xsDOndJn7FcFPZv/AykGXXCrJk62b9ASB2
51
+ xwtsAQAA
52
+ http_version:
53
+ recorded_at: Mon, 15 Feb 2016 15:49:14 GMT
54
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Encoding:
24
+ - gzip
25
+ Expires:
26
+ - '0'
27
+ Cache-Control:
28
+ - no-cache, no-store, must-revalidate
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/10
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Tue, 22 Mar 2016 01:25:05 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '85'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
+ 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ http_version:
49
+ recorded_at: Tue, 22 Mar 2016 01:25:05 GMT
50
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Encoding:
24
+ - gzip
25
+ Expires:
26
+ - '0'
27
+ Cache-Control:
28
+ - no-cache, no-store, must-revalidate
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/10
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Tue, 22 Mar 2016 01:25:05 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '85'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
+ 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ http_version:
49
+ recorded_at: Tue, 22 Mar 2016 01:25:05 GMT
50
+ recorded_with: VCR 3.0.1