-
Notifications
You must be signed in to change notification settings - Fork 15
/
mirror.feature
executable file
·30 lines (25 loc) · 1.21 KB
/
mirror.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@aws @local-network
Feature: Mirror
Tests for the GOV.UK mirrors that serve content if origin is unavailable.
@notintegration @notstaging
Scenario: Check Fastly probe request
Given S3 mirrors
Then I should get a 200 response from "/www.gov.uk/index.html" on the mirrors
@notintegration @notstaging
Scenario: Check homepage is served by all the mirrors
Given S3 mirrors
Then I should get a 200 response from "/www.gov.uk/index.html" on the mirrors
And I should see "Welcome to GOV.UK"
@notintegration @notstaging
Scenario: Check a deep-linked page is served by all the mirrors
Given S3 mirrors
Then I should get a 200 response from "/www.gov.uk/book-theory-test.html" on the mirrors
And I should see "Book your theory test"
@notintegration @notstaging
Scenario: Check a non-existent page returns a AccessDenied error from all the mirrors
Given S3 mirrors
Then I should get a 403 response from "/www.gov.uk/jasdu3jjasd" on the mirrors
@notintegration @notstaging
Scenario: Check that search returns an error on all the mirrors
Given S3 mirrors
Then I should get a 403 response from "/www.gov.uk/search" on the mirrors