akamai-rspec icon indicating copy to clipboard operation
akamai-rspec copied to clipboard

Test your akamai configuration with rspec

Results 5 akamai-rspec issues
Sort by recently updated
recently updated
newest added

```expect("example.com/foo").to be_forwarded_to_path("/foo")``` The above test failed as the `session_info` seemed to be an empty string.

The `be_served_from_origin` checks the hostname in the cache key, and assumes this is going to be the origin hostname. If you set cache key to incoming host header, `be_served_from_origin` will...

`initialize` should check that `response` is actually a `RestClient::Response` or `Net::HTTPResponse` before setting `@response`. `headers` should be explicit that the second case introduced in PR 14 is for `Net:HTTPResponse`. When...

It appears that, when akamai-rspec matchers "fail", they do so by raising an exception, e.g. - https://github.com/realestate-com-au/akamai-rspec/blob/master/lib/akamai_rspec/matchers/caching.rb#L52 which in action looks like this: ``` 1) www.casa.it /vendita should not be...

Like: ``` expect('mysite.com.au/stuff').to be_served_from('myorigin.com/stuff') ``` I'm not sure what the matcher should be called. Implementing it should be straight forward - combine the be_served_from_origin and be_forwarded_to_index.