Просмотр исходного кода

Add sample response definition for kubernetes

Lu Stadler лет назад: 7
Родитель
Сommit
7de8915d24
1 измененных файлов с 46 добавлено и 0 удалено
  1. 46 0
      go/fake-http/kubernetes.yaml

+ 46 - 0
go/fake-http/kubernetes.yaml

@ -0,0 +1,46 @@
1
- method: GET
2
  path: /api
3
  body: |
4
    {
5
      "kind": "APIVersions",
6
      "versions": ["v1"]
7
    }
8
- method: GET
9
  path: /apis
10
  body: "{}"
11
- method: GET
12
  path: /api/v1
13
  body: |
14
    {
15
      "kind": "APIResourceList",
16
      "resources": [{
17
        "name": "pods",
18
        "namespaced": true,
19
        "kind": "Pod",
20
        "verbs": ["get", "list"],
21
        "categories": ["all"]
22
      }]
23
    }
24
- method: GET
25
  path: /api/v1/namespaces/default/pods
26
  headers:
27
    - name: "Content-Type"
28
      value: "application/json"
29
  body: |
30
    {
31
      "apiVersion": "v1",
32
      "items": [{
33
        "metadata": {
34
          "name": "oops-v1-214fbj25k"
35
        },
36
        "status": {
37
          "conditions": [{
38
            "status": "True",
39
            "type": "Ready"
40
          }],
41
          "phase": "Running",
42
          "startTime": "2018-06-08T09:48:22Z"
43
        }
44
      }],
45
      "kind": "PodList"
46
    }