Revision c85d3b64 qa/qa_rapi.py
b/qa/qa_rapi.py | ||
---|---|---|
148 | 148 |
def _VerifyInstance(data): |
149 | 149 |
for entry in INSTANCE_FIELDS: |
150 | 150 |
AssertIn(entry, data) |
151 |
|
|
151 |
|
|
152 | 152 |
def _VerifyInstancesList(data): |
153 | 153 |
for instance in data: |
154 |
for entry in LIST_FIELDS:
|
|
154 |
for entry in LIST_FIELDS: |
|
155 | 155 |
AssertIn(entry, instance) |
156 |
|
|
156 |
|
|
157 | 157 |
def _VerifyInstancesBulk(data): |
158 | 158 |
for instance_data in data: |
159 | 159 |
_VerifyInstance(instance_data) |
... | ... | |
172 | 172 |
def _VerifyNode(data): |
173 | 173 |
for entry in NODE_FIELDS: |
174 | 174 |
AssertIn(entry, data) |
175 |
|
|
175 |
|
|
176 | 176 |
def _VerifyNodesList(data): |
177 | 177 |
for node in data: |
178 |
for entry in LIST_FIELDS:
|
|
178 |
for entry in LIST_FIELDS: |
|
179 | 179 |
AssertIn(entry, node) |
180 |
|
|
180 |
|
|
181 | 181 |
def _VerifyNodesBulk(data): |
182 | 182 |
for node_data in data: |
183 | 183 |
_VerifyNode(node_data) |
Also available in: Unified diff