Open Kilda Java Documentation
test_list.py
Go to the documentation of this file.
1
# Copyright 2017 Telstra Open Source
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
6
#
7
# http://www.apache.org/licenses/LICENSE-2.0
8
#
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
#
15
16
import
glob
17
from
unittest.mock
import
MagicMock
18
19
from
kilda.probe.command.list
import
print_table
20
21
22
def
test_basic_smoke_list
():
23
"""
24
Load CtrlResponse.json and try print if
25
"""
26
27
records = []
28
29
with open(
'./kilda/probe/test/res/CtrlResponse.json'
)
as
f:
30
m = MagicMock()
31
m.value = f.read()
32
records.append(m)
33
records.append(m)
34
35
print_table
(records)
kilda.probe.test.test_list.test_basic_smoke_list
def test_basic_smoke_list()
Definition:
test_list.py:22
kilda.probe.command.list
Definition:
list.py:1
kilda.probe.command.dump_resource_state.print_table
def print_table(records, border)
Definition:
dump_resource_state.py:42
open-kilda-develop
services
probe
kilda
probe
test
test_list.py
Generated by
1.8.14