[FLOC-4199] Verify that the version.html value matches the version being published#2662
[FLOC-4199] Verify that the version.html value matches the version being published#2662
Conversation
| as a dictonary mapping keys to contents. Other attributes are ignored. | ||
| :ivar cloudfront_invalidations: List of | ||
| :class:`CreateCloudFrontInvalidation` that have been requested. | ||
| """ |
|
As indicated on the issue, we shouldn't drop support for staging, as that allows for testing the script. |
| u'/tmp/{}.perform_read_s3_key'.format( | ||
| __file__.replace(u"/", "!"), | ||
| ) | ||
| ).temporarySibling() |
There was a problem hiding this comment.
Looking at DownloadS3Key, it would be less code and simpler to just download to a string (which boto can do), than do some gyrations with a temporary file, just to reuse a bit of code.
As a general comment, I find the new tests harder to reason about, since I need to keep in my head what the different state constants mean as a I look at the tests. So, I don't think the less repetitive nature of the new tests is actually a good thing. Thinking about it a bit more, I wonder if having:
However, I think that test change is big enough to warrant separating it out from the actual functional change in this issue. |
Fixes: https://clusterhq.atlassian.net/browse/FLOC-4199
Sorry this branch grew so big.
I added the check for version and was faced with updating dozens of tests with fixed dictionaries of fake S3 keys.
So instead I modified FakeAWS to use an immutable FakeAWSState and added some canned states to test_release.
The tests can then transform the canned state, adding modifying keys, route and redirection rules.
Trouble is that that then broke a bunch of other test modules that also use FakeAWS so I had to go and update those too.
I also deleted a bunch of
publish_docswhich are concerned with publishing to a staging bucket. That is no longer part of the release process. We only ever useadmin/publish_docs --production.