summaryrefslogtreecommitdiff
path: root/subplot/ewww.yaml
blob: f758e207440927ca0e794a39ca27bb59c70636c6 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
- given: a self-signed certificate as {cert}, using key {key}
  types:
    cert: word
    key: word
  impl:
    python:
      function: copy_test_certificate

- given: a running server using config file {filename}
  impl:
    python:
      function: start_server
      cleanup: stop_server
  types:
    filename: file

- given: directory {dirname}
  types:
    dirname: path
  impl:
    python:
      function: create_directory

- then: I am redirected to {location}
  types:
    location: word
  impl:
    python:
      function: fixme

- then: I can do at least {number} requests per second
  types:
    number: uint
  impl:
    python:
      function: fixme

- then: I get status code {code}
  types:
    code: uint
  impl:
    python:
      function: http_status_code_is

- then: 'header (?P<header>\S+) is "(?P<value>.+)"'
  regex: true
  types:
    header: word
    value: text
  impl:
    python:
      function: http_header_is

- then: 'body is "(?P<body>.*)"'
  regex: true
  types:
    body: text
  impl:
    python:
      function: http_body_is

- when: I request {method} {url}
  types:
    url: word
  impl:
    python:
      function: request

- when: I request files under {url} in random order {count} times
  types:
    url: word
    count: uint
  impl:
    python:
      function: fixme