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

fix reading profiles bug #352

Merged
merged 2 commits into from
Jan 11, 2016
Merged

fix reading profiles bug #352

merged 2 commits into from
Jan 11, 2016

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Jan 7, 2016

For reading the profiles metadata, we're using the train mock backend
through Inspec::Runner. The new supports feature never agrees with the
mock backend.

Now, it we figure out if this is a mock class and then just say that it
supports whatever we're asking for.

Tl;dr: there's probably a more beautiful solution to this.

Added a test case, but it fails -- while the command line interface
works fine.

Fixes #351.

For reading the profiles metadata, we're using the train mock backend
through Inspec::Runner. The new `supports` feature never agrees with the
mock backend.

Now, it we figure out if this is a mock class and then just say that it
supports whatever we're asking for.

Tl;dr: there's probably a more beautiful solution to this.

Added a test case, but it fails -- while the command line interface
works fine.
@srenatus
Copy link
Contributor Author

srenatus commented Jan 7, 2016

Ok, this breaks many of our other tests... because we're setting up a "mock-ish" ubuntu backend (for example), that is mock enough to trigger the return true of the supports check.

@chris-rock
Copy link
Contributor

I extended the PR to make the support check optional.

@chris-rock
Copy link
Contributor

this fix leaves #354

@arlimus
Copy link
Contributor

arlimus commented Jan 11, 2016

Looks great, thank you both for the fix! 👍 :)

arlimus added a commit that referenced this pull request Jan 11, 2016
@arlimus arlimus merged commit 125b6a5 into master Jan 11, 2016
@arlimus arlimus deleted the sr/fix-profiles branch January 11, 2016 05:14
@chris-rock chris-rock added this to the 0.9.8 milestone Jan 11, 2016
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

4 participants