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

(PDK-569) puppet resource now displays type name correctly #18

Merged
merged 1 commit into from
Feb 1, 2018

Conversation

tphoney
Copy link
Contributor

@tphoney tphoney commented Feb 1, 2018

No description provided.

# internalize and protect - needs to go deeper
@values = resource_hash.dup
# "name" is a privileged key
@values[:name] = title
@values[:type] = type
Copy link
Contributor

Choose a reason for hiding this comment

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

@values is used for property/parameter storage. Use a separate instance var to avoid confusing other parts of the machinery.

There are also no acceptance tests for this, I believe, so it'll require some manual testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed @DavidS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also code coverage

Copy link
Contributor

@DavidS DavidS Feb 1, 2018

Choose a reason for hiding this comment

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

This code is particularly hard to unit test, since it would require all of puppet around it to exercise. With proper acceptance testing (even manual), we can give this one a pass on coverage.

@DavidS
Copy link
Contributor

DavidS commented Feb 1, 2018

As discussed in the comments above, this gets a pass on coverage, because the Shim classes are glue code that is only exercised when running the full puppet stack. @tphoney did manual testing to confirm no regressions for this.

@DavidS DavidS merged commit 0d436ec into puppetlabs:master Feb 1, 2018
@DavidS DavidS added the bug label Feb 21, 2018
@DavidS DavidS changed the title (PDK-569) puppet resource, now displays type (PDK-569) puppet resource now displays type name correctly Feb 21, 2018
@tphoney tphoney deleted the PDK-569 branch June 27, 2018 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants