Test your akamai configuration with rspec to improve your confidence that you've configured it correctly, catch mistakes early and find out if it behaves strangely.
2. Akamai
● Content Delivery Network
● Sits in front of your servers
● Caches your content
● Clients connect to edge node near them
● Helps your site go fast
3. Rspec
● Ruby unit testing framework
● Prefer pretty matchers over plain asserts
eg. expect(“foo”).to not_equal(“bar”)
4. Why use it?
● Check akamai config behaves how you expect
● Catch regressions in akamai config
● When akamai features do weird stuff
– Their WAF modifies behaviour in non enforcing
16. be_forwarded_to_index
expect(url + “/” channel).to
be_forwarded_to_index(channel)
● Expect response to have x-akamai-session-info
● Expect AKA_PM_FWD_URL header to end in
channel
● That means it's passing on the channel to origin
● Response code is 200
21. Getting it
● Unfortunately, didn't manage to open source it
in time
● Will be at github.com/realestate-com-au soon
● Contributions wanted, especially tests and
documentation
● Get in touch if you do use it
22. Thanks
● REA people that worked on it
– Mick Gannon, Nathan Reeves, Reed Kraft-Murphy,
Tom Partington
● REA for letting us open source stuff
● Adrian Muhrer for (promised) pre release
review
● Javier Turegano for manager approval