summaryrefslogtreecommitdiff
path: root/spec/unit/data_collector
diff options
context:
space:
mode:
authorAdam Leff <adam@leff.co>2016-10-28 15:43:34 -0700
committerAdam Leff <adam@leff.co>2016-10-28 21:13:36 -0700
commit3a4442b96ba2005a9616e0f3137f651580a06ee7 (patch)
tree54cf6b7960e61a38b9e3d169dc0b00461135cd79 /spec/unit/data_collector
parentaa9bbabde662a58c581ed4d87707eac5534bc292 (diff)
downloadchef-3a4442b96ba2005a9616e0f3137f651580a06ee7.tar.gz
Add deprecations to Data Collector competion messageadamleff/deprecations-to-data-collector
By adding deprecation warnings to Data Collector, receivers of Data Collector messages can easily identify nodes that would need attention to their versions/cookbooks before a major version Chef upgrade would be successful. Signed-off-by: Adam Leff <adam@leff.co>
Diffstat (limited to 'spec/unit/data_collector')
-rw-r--r--spec/unit/data_collector/messages_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/data_collector/messages_spec.rb b/spec/unit/data_collector/messages_spec.rb
index 394f18dce0..5c6ec8736c 100644
--- a/spec/unit/data_collector/messages_spec.rb
+++ b/spec/unit/data_collector/messages_spec.rb
@@ -113,6 +113,7 @@ describe Chef::DataCollector::Messages do
status
total_resource_count
updated_resource_count
+ deprecations
}
end
let(:optional_fields) { %w{error} }
@@ -164,6 +165,7 @@ describe Chef::DataCollector::Messages do
status
total_resource_count
updated_resource_count
+ deprecations
}
end
let(:optional_fields) { [] }