users icon indicating copy to clipboard operation
users copied to clipboard

redesign test for key retrieval via http

Open karmix opened this issue 5 years ago • 5 comments

Description

Revises test cookbook so that instead of downloading an individual's personal keys from GitHub, it starts a web service and uses it to serve dedicated keys for validating that the user_manage resource can retrieve ssh keys via http.

Issues Resolved

Resolves #427

Check List

karmix avatar Jun 01 '19 06:06 karmix

It looks like the travis-ci build is having problems installing ChefDK while setting up the test environment. This error makes it look like it might have a corrupt apt-get cache, or be hitting a broken mirror: https://travis-ci.org/chef-cookbooks/users/jobs/540010073#L574 .

karmix avatar Jun 01 '19 07:06 karmix

Sorry, I thought I wrapped this up long ago, but apparently I didn't update the PR. I added a prefix to non-ssl http, so it's now INSECURE:http://.... kitchen verify passed, and there was nothing unexpected with the rebase.

However, it appears that recent changes set enforce_idempotency in kitchen. Because there is no way to ignore specific resources with enforce_idempotency, and the users_manage resource does not support :before notifications, I don't see a portable way to make this patch start the web service for the users_manage resource without tripping up the idempotency checks.

karmix avatar Jan 28 '21 04:01 karmix

Hmm I will try to dig into that issue if I can find some time this weekend. I imagine there has to be a way to give a list of resources that are expected to lack idempotency because of their nature either through configuration initialization or inline. I have not been deeply involved in the chef world for a while so maybe I am remembering things incorrectly.

majormoses avatar Jan 28 '21 05:01 majormoses

@majormoses that would be a sweet feature to have in test-kitchen

ramereth avatar Jan 28 '21 19:01 ramereth

BTW we're in the process of adopting this cookbook into Sous Chefs so please give us a week or so to get this repo ready for our automation.

ramereth avatar Jan 28 '21 19:01 ramereth

closing this due to age. please feel free to reopen if needed.

Stromweld avatar May 03 '24 23:05 Stromweld