Skip to content

Commit

Permalink
Segmentless cookbook data (RFC 67)
Browse files Browse the repository at this point in the history
Implement RFC 67, which causes us to bump our max API version to 2.
 * Accept segmentless and segmented downloads and uploads of cookbooks
 * Add pedant tests

Signed-off-by: Thom May <[email protected]>
  • Loading branch information
Thom May committed Jun 13, 2018
1 parent 5e34f35 commit 95b5318
Show file tree
Hide file tree
Showing 21 changed files with 3,128 additions and 2,421 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ matrix:
script: bundle exec rake chef_zero_spec
env:
- "PEDANT_OPTS=\"--skip-oc_id\""
- "GEMFILE_MOD=\"gem 'rake'; gem 'chef-zero', github: 'chef/chef-zero', tag: 'v14.0.5' \""
- "GEMFILE_MOD=\"gem 'rake'; gem 'chef-zero', github: 'chef/chef-zero' \""
# Remove things only used by erlang
install:
after_failure:
Expand All @@ -102,7 +102,7 @@ matrix:
script: bundle exec rake chef_zero_spec
env:
- "PEDANT_OPTS=\"--skip-oc_id\""
- "GEMFILE_MOD=\"gem 'rake'; gem 'chef-zero', github: 'chef/chef-zero', tag: 'v14.0.5' \""
- "GEMFILE_MOD=\"gem 'rake'; gem 'chef-zero', github: 'chef/chef-zero' \""
- CHEF_FS=1
# Remove things only used by erlang
install:
Expand Down
2 changes: 1 addition & 1 deletion oc-chef-pedant/lib/pedant/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def reset_server_api_version
$server_api_version = Pedant::Config.server_api_version
end
def use_max_server_api_version
$server_api_version = 1 # TODO Pedant::Config.max_server_api_version
$server_api_version = 2 # TODO Pedant::Config.max_server_api_version
end

end
Expand Down
Loading

0 comments on commit 95b5318

Please sign in to comment.