Mirantis/virtlet

View on GitHub
pkg/manager/TestCRIContainerFilters.out.yaml

Summary

Maintainability
Test Coverage
- name: 'enter: ListContainers'
  value: {}
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 231700d5-c9a6-5a49-738d-99a954c51550
      image:
        image: localhost/cirros.img
      image_ref: localhost/cirros.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_0
        io.kubernetes.pod.name: testName_0
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
      metadata:
        name: container-for-testName_0
      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
      state: 1
    - created_at: 1524648266720331175
      id: 6b94d9a7-e22a-5d08-65ee-16b9b1e07ab0
      image:
        image: localhost/ubuntu.img
      image_ref: localhost/ubuntu.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_1
        io.kubernetes.pod.name: testName_1
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: d25ded14-d35d-510b-5749-f83cc165794e
      metadata:
        name: container-for-testName_1
      pod_sandbox_id: d25ded14-d35d-510b-5749-f83cc165794e
      state: 1
- name: 'enter: ListContainers'
  value:
    filter:
      id: 231700d5-c9a6-5a49-738d-99a954c51550
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 231700d5-c9a6-5a49-738d-99a954c51550
      image:
        image: localhost/cirros.img
      image_ref: localhost/cirros.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_0
        io.kubernetes.pod.name: testName_0
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
      metadata:
        name: container-for-testName_0
      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
      state: 1
- name: 'enter: ListContainers'
  value:
    filter:
      state:
        state: 1
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 231700d5-c9a6-5a49-738d-99a954c51550
      image:
        image: localhost/cirros.img
      image_ref: localhost/cirros.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_0
        io.kubernetes.pod.name: testName_0
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
      metadata:
        name: container-for-testName_0
      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
      state: 1
    - created_at: 1524648266720331175
      id: 6b94d9a7-e22a-5d08-65ee-16b9b1e07ab0
      image:
        image: localhost/ubuntu.img
      image_ref: localhost/ubuntu.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_1
        io.kubernetes.pod.name: testName_1
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: d25ded14-d35d-510b-5749-f83cc165794e
      metadata:
        name: container-for-testName_1
      pod_sandbox_id: d25ded14-d35d-510b-5749-f83cc165794e
      state: 1
- name: 'enter: ListContainers'
  value:
    filter:
      state:
        state: 2
- name: 'leave: ListContainers'
  value: {}
- name: 'enter: ListContainers'
  value:
    filter:
      label_selector:
        io.kubernetes.pod.name: testName_1
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 6b94d9a7-e22a-5d08-65ee-16b9b1e07ab0
      image:
        image: localhost/ubuntu.img
      image_ref: localhost/ubuntu.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_1
        io.kubernetes.pod.name: testName_1
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: d25ded14-d35d-510b-5749-f83cc165794e
      metadata:
        name: container-for-testName_1
      pod_sandbox_id: d25ded14-d35d-510b-5749-f83cc165794e
      state: 1
- name: 'enter: ListContainers'
  value:
    filter:
      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 231700d5-c9a6-5a49-738d-99a954c51550
      image:
        image: localhost/cirros.img
      image_ref: localhost/cirros.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_0
        io.kubernetes.pod.name: testName_0
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
      metadata:
        name: container-for-testName_0
      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
      state: 1
- name: 'enter: ListContainers'
  value:
    filter:
      state:
        state: 1
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 6b94d9a7-e22a-5d08-65ee-16b9b1e07ab0
      image:
        image: localhost/ubuntu.img
      image_ref: localhost/ubuntu.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_1
        io.kubernetes.pod.name: testName_1
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: d25ded14-d35d-510b-5749-f83cc165794e
      metadata:
        name: container-for-testName_1
      pod_sandbox_id: d25ded14-d35d-510b-5749-f83cc165794e
      state: 1
- name: 'enter: ListContainers'
  value:
    filter:
      state:
        state: 2
- name: 'leave: ListContainers'
  value:
    containers:
    - created_at: 1524648266720331175
      id: 231700d5-c9a6-5a49-738d-99a954c51550
      image:
        image: localhost/cirros.img
      image_ref: localhost/cirros.img
      labels:
        fizz: buzz
        foo: bar
        io.kubernetes.container.name: container-for-testName_0
        io.kubernetes.pod.name: testName_0
        io.kubernetes.pod.namespace: default
        io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
      metadata:
        name: container-for-testName_0
      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
      state: 2