Re: Testing behaviour of a production CF environment
Daniel Jones
Hi Graham,
toggle quoted message
Show quoted text
Running acceptance tests in production is absolutely what I'd recommend - in fact I drove that point home in my talk in Santa Clara last week (I can forward on the link once the YouTube videos are up). I've worked with customers who didn't use the official CATS, but instead favoured writing their own in the BDD framework of their choice. We didn't find them too onerous to develop and maintain, and an example test would be: 1. Push fixture app 2. Start app 3. Hit app, validate response 4. Hit URL on app to write to a given data service 5. Hit URL to read written value, validate 6. Stop app 7. Delete app This exercised some of the core user-facing behaviour, and also those of data services (search for Pivotal's apps like cf-redis-example-app <https://github.com/pivotal-cf/cf-redis-example-app> which follow the same pattern). We had additional tests that would log a given unique string through an app, and then hit the log aggregation system to validate that it had made its way through. The tests were small, so we had more granular control over the frequency of each test, and got faster feedback through parallelisation. Running these sorts of tests against each Cloud Foundry instance on a CI server with a wallboard view worked really well. Not only do you get volume testing for free (I've filled a buildpack cache that way <http://www.engineerbetter.com/update/2015/08/19/overflowing-buildpack_cache.html>), you can publish the wallboard URL to PaaS customers and stakeholders alike. Tying these tests up to alerting/paging systems is also more sensible than paging people due to IaaS-level failures. It sounds like you're doing the right thing, and I'd encourage you to continue and expand your efforts in that area. I'm happy to discuss more if this is an area of interest for you. Regards, Daniel Jones - CTO +44 (0)79 8000 9153 @DanielJonesEB <https://twitter.com/DanielJonesEB> *EngineerBetter* Ltd <http://www.engineerbetter.com> - UK Cloud Foundry Specialists On Wed, Jun 1, 2016 at 4:06 AM, Amit Gupta <agupta(a)pivotal.io> wrote:
Hi Graham, |
|