Project

Profile

Help

Story #7487

Updated by bmbouter about 4 years ago

## Background 

 Users should not change the `ALLOWED_CONTENT_CHECKSUMS` if they already have content in their DB. 

 ## Idea 

 Let's add a check at Pulp start time that causes them to not do that 

 ## Implementation 

 



 At the bottom of the pulpcore.app.settings, add another check that: 

 1) Pick a random Artifact from the db 
 2) Check that all the checksums present in ALLOWED_CONTENT_CHECKSUMS are set and only those are set. If not, the user is changing this variable post-content-being-saved and should be instructed via ImproperlyConfigured that they should set it to: {name the set of set attributes} on the tested Artifact. 

 ## Testing 

 Since we can't change settings during functional test runs, we cannot reasonably test for this.

Back