summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-27 16:45:50 -0800
committerJohn Keiser <john@johnkeiser.com>2016-02-01 08:08:13 -0800
commit47fdb75424851f5b692c438e7ea051871c92b452 (patch)
treef1e128212644aa268a0d2dde3828388de5852656
parent2c471e0c7bf0e79017e65a78b59b59bd78b92152 (diff)
downloadchef-47fdb75424851f5b692c438e7ea051871c92b452.tar.gz
Fix /acls/data_bags local mode path
-rw-r--r--Gemfile2
-rw-r--r--lib/chef/chef_fs/chef_fs_data_store.rb6
-rw-r--r--spec/integration/knife/chef_fs_data_store_spec.rb2
3 files changed, 7 insertions, 3 deletions
diff --git a/Gemfile b/Gemfile
index e20618825c..2c37e6c7d4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -51,8 +51,6 @@ group(:travis) do
gem "bundler-audit", git: "https://github.com/rubysec/bundler-audit.git", ref: "4e32fca"
end
-gem "chef-zero", github: "chef/chef-zero", branch: "cd/run-acl-specs"
-
instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
# If you want to load debugging tools into the bundle exec sandbox,
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb
index 729b01fdcc..a02fe605f4 100644
--- a/lib/chef/chef_fs/chef_fs_data_store.rb
+++ b/lib/chef/chef_fs/chef_fs_data_store.rb
@@ -696,6 +696,12 @@ class Chef
end
elsif path[0] == "acls"
+ # /acls/data -> /acls/data_bags
+ if path[1] == "data"
+ path = path.dup
+ path[1] = "data_bags"
+ end
+
# /acls/containers|nodes|.../x.json
# /acls/organization.json
if path.length == 3 || path == [ "acls", "organization" ]
diff --git a/spec/integration/knife/chef_fs_data_store_spec.rb b/spec/integration/knife/chef_fs_data_store_spec.rb
index b836ebac82..d6338cc3e3 100644
--- a/spec/integration/knife/chef_fs_data_store_spec.rb
+++ b/spec/integration/knife/chef_fs_data_store_spec.rb
@@ -53,7 +53,7 @@ describe "ChefFSDataStore tests", :workstation do
end
context "GET /TYPE" do
- it "knife list -z -R returns everything", :focus do
+ it "knife list -z -R returns everything" do
knife("list -z -Rfp /").should_succeed <<EOM
/acls/
/acls/clients/