summaryrefslogtreecommitdiff
path: root/chef-config/spec
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2016-10-24 18:13:24 -0700
committerdanielsdeleo <dan@chef.io>2016-11-02 08:06:38 -0700
commitbc596e0e0e3302dd013565943b1aa91f17fffc8f (patch)
tree25671021adf88f092c25c7f588dd824573219d79 /chef-config/spec
parentb95fce9f28693aa09dd0d37742063027596f6847 (diff)
downloadchef-bc596e0e0e3302dd013565943b1aa91f17fffc8f.tar.gz
Enable the data collector automatically
Signed-off-by: Daniel DeLeo <dan@chef.io>
Diffstat (limited to 'chef-config/spec')
-rw-r--r--chef-config/spec/unit/config_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb
index 2cdf9af78f..e15a5a6023 100644
--- a/chef-config/spec/unit/config_spec.rb
+++ b/chef-config/spec/unit/config_spec.rb
@@ -1127,4 +1127,18 @@ RSpec.describe ChefConfig::Config do
end
+ describe "data collector URL" do
+
+ context "when using default settings" do
+
+ it "configures the data collector URL as a relative path to the Chef Server URL" do
+ ChefConfig::Config[:chef_server_url] = "https://chef.example/organizations/myorg"
+ expect(ChefConfig::Config[:data_collector][:server_url]).to eq("https://chef.example/organizations/myorg/data_collector")
+
+ end
+
+ end
+
+ end
+
end