Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

(FM 7115) return device certificates with task results #15

Merged

Conversation

tkishel
Copy link
Contributor

@tkishel tkishel commented Jun 25, 2018

(FM-7115) return device certificates with task results

Include each target's certificate fingerprint in task results.

@tkishel tkishel force-pushed the FM-7115_return_cert_with_task_results branch from 5d3a721 to 43689f5 Compare June 25, 2018 22:18
@tphoney
Copy link
Contributor

tphoney commented Jun 26, 2018

Nice fixup, this would benefit greatly from some acceptance tests, to prevent regressions later on. There are example of task testing here https://github.com/puppetlabs/puppetlabs-service/blob/master/spec/acceptance/init_spec.rb or in apache or mysql

Add puppet device and puppt task tests.
@tkishel
Copy link
Contributor Author

tkishel commented Jun 26, 2018

Added acceptance tests.
TODO: moving those tests out of configure_spec.rb and comparing the fingerprint.

@tphoney
Copy link
Contributor

tphoney commented Jun 27, 2018

@tkishel i am looking at separating out the device stuff you implemented into its own test. Bit busy today, so apologies for not having it ready sooner.

@tphoney
Copy link
Contributor

tphoney commented Jun 27, 2018

a commit soon 🤞

@tphoney
Copy link
Contributor

tphoney commented Jun 27, 2018

tkishel#1

@tkishel
Copy link
Contributor Author

tkishel commented Jun 27, 2018

No worries! I was working on this in parallel. Let me know if the latest commit is 'too big'.

Refactor acceptance tests.
Move acceptance 'run' tests out of configure_spec.rb.
Test the fingerprint in the run task results.
Make '--user=root' conditional in the task, to match the Puppet code.
@tkishel tkishel force-pushed the FM-7115_return_cert_with_task_results branch from ced4738 to f823bac Compare June 27, 2018 22:42
@tphoney
Copy link
Contributor

tphoney commented Jun 28, 2018

small rubocop fix. also can you rename the acceptance task test, to indicate it is a task test

Rename the acceptance task test, to indicate it is a task test.
Use Puppet::SSL::Host.new.suitable_message_digest_algorithms rather than hardcode.
Rubocop fix.
@tkishel
Copy link
Contributor Author

tkishel commented Jun 28, 2018

Done! Thanks!

@tphoney tphoney merged commit cf7c008 into puppetlabs:master Jul 4, 2018
@tkishel tkishel deleted the FM-7115_return_cert_with_task_results branch December 15, 2021 16:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants