Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata #149

Merged
merged 7 commits into from
Oct 26, 2015
Merged

Metadata #149

merged 7 commits into from
Oct 26, 2015

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Oct 26, 2015

  • use metadata.rb instead of vmetadata.rb
  • auto-include library files for inspec profiles
  • minor bugfixes

The auto-include libraries is about providing library functions to all tests within scope:

/lib/crypto_lib.rb
/test/crypto_test.rb

Here, crypto_lib will be included by default, sothat crypto_test can use it.

@@ -39,7 +52,7 @@ def get_filenames(paths)
end

HANDLERS = [
ChefAuditDir, ServerspecDir, FlatDir
ProfileDir, ServerspecDir, FlatDir
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there renaming typo? ProfileDir vs ChefAuditDir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, I missed to add ChefAuditDir! Thank you @chris-rock

@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@@ -15,16 +15,17 @@ def resolve(target)
# find all files in the folder
files = Dir[File.join(target, '**', '*')]
# remove the prefix
files = files.map { |x| x[target.length + 1..-1] }
files = files.map { |x| x.sub(target, '') }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

way better. Thanks @arlimus

@chris-rock
Copy link
Contributor

Thanks @arlimus for this improvement.

@chris-rock
Copy link
Contributor

@delivery approve

chef-delivery added a commit that referenced this pull request Oct 26, 2015
Merged change 1d1b403b-c61e-4a7d-8445-b90a20e9e464

From review branch metadata into master

Signed-off-by: chartmann <chartmann@chef.io>
@chef-delivery chef-delivery merged commit f1fc418 into master Oct 26, 2015
@chef-delivery
Copy link
Contributor

Change: 1d1b403b-c61e-4a7d-8445-b90a20e9e464 approved by: @chris-rock

@chef-delivery chef-delivery deleted the metadata branch October 26, 2015 10:57
@chef-delivery
Copy link
Contributor

This PR has passed 'Acceptance' and is ready to be delivered!
Use: '@delivery deliver' when validated in acceptance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants