normandy icon indicating copy to clipboard operation
normandy copied to clipboard

Create signed recipes during `make refresh`

Open jaredlockhart opened this issue 6 years ago • 2 comments

Now that we have the handy dandy make refresh command in Normandy, we should auto generate some signed recipes to help quickly recreate the state we expect stage or prod to be in. This will help with debugging and testing locally.

jaredlockhart avatar Sep 04 '19 17:09 jaredlockhart

I was able to create a signed recipe using

from normandy.recipes.tests import RecipeFactory

RecipeFactory(signed=True)

Maybe we can set it up the same way we did with Experimenter and make a management command to make 10 dummy signed recipes and then invoke it in make refresh

jaredlockhart avatar Sep 04 '19 18:09 jaredlockhart

I'd be careful with those factories. RecipeFactory(signed=true), for example, creates a fake signature that is just a hash of the data, not an actual signature. It's useful for tests, because it is simple and verifiable, but it's basically a mock.

mythmon avatar Sep 04 '19 21:09 mythmon