• Home
  • Raw
  • Download

Lines Matching refs:rpcs

124                      rpcs=[('get_hosts', {},
154 rpcs=[('get_hosts', {},
185 rpcs=[('get_hosts', {'hostname__in': ['host1']},
209 rpcs=[('get_hosts', {'hostname__in': ['host2', 'host1']},
245 rpcs=[('get_hosts', {'hostname__in': ['host2', 'host1']},
269 rpcs=[('get_hosts', {'hostname__in': ['host2', 'host1']},
280 rpcs=[('get_hosts', {'labels__name__in': ['label3']},
313 rpcs=[('get_hosts', {'multiple_labels': ['label2',
346 rpcs=[('get_hosts', {'multiple_labels': ['label2',
368 rpcs=[('get_hosts',
390 rpcs=[('get_hosts', {'multiple_labels': ['label2',
402 rpcs=[('get_hosts', {'labels__name__in': ['label3'],
436 rpcs=[('get_hosts', {'labels__name__in': ['label3'],
448 rpcs=[('get_hosts', {'status__in': ['Ready']},
482 rpcs=[('get_hosts', {'status__in': ['Ready'],
517 rpcs=[('get_hosts', {'status__in': ['Repair'],
530 rpcs=[('get_hosts', {'status__in': ['Repair'],
542 rpcs=[('get_hosts', {'locked': True,
576 rpcs=[('get_hosts', {'locked': False},
610 rpcs=[('get_hosts', {'hostname': 'host1'},
685 rpcs=[('get_hosts', {'hostname': 'host1'},
735 rpcs=[('get_hosts', {'hostname': 'host1'},
786 rpcs=[('get_hosts', {'hostname__startswith': 'ho'},
857 rpcs=[('get_hosts', {'hostname': 'newhost0'},
967 rpcs=[('get_host_queue_entries',
1026 rpcs=[('get_hosts', {'hostname__startswith': 'ho'},
1156 rpcs=[('get_host_queue_entries',
1223 rpcs = []
1225 rpcs.append(('set_host_attribute',
1232 return rpcs
1242 rpcs = []
1244 rpcs.append(('get_labels', {'host': host_id}, True, []))
1246 rpcs += [
1251 rpcs[-1][1]['platform'] = True
1252 return rpcs
1262 rpcs = []
1264 rpcs.append(('get_acl_groups', {'hosts': host_id}, True, []))
1266 rpcs.append(('get_acl_groups', {'name': acl}, True, []))
1267 rpcs.append(('add_acl_group', {'name': acl}, True, None))
1269 rpcs.append((
1278 return rpcs
1284 rpcs, out = self._gen_expectations(locked=True, lock_reason=lock_reason)
1287 rpcs=rpcs, out_words_ok=out)
1292 rpcs, out = self._gen_expectations(hosts=self._hosts, locked=False)
1293 self.run_cmd(argv=self._command_multiple + ['--unlock'], rpcs=rpcs,
1300 rpcs, out = self._gen_expectations(hosts=self._hosts, locked=False)
1302 self.run_cmd(argv=self._command_multiple + ['--unlock'], rpcs=rpcs,
1311 rpcs, out = self._gen_expectations(attributes=attrs)
1313 rpcs=rpcs, out_words_ok=out)
1319 rpcs, out = self._gen_expectations(attributes=attrs)
1321 rpcs=rpcs, out_words_ok=out)
1327 rpcs, out = self._gen_expectations(attributes=attrs)
1330 rpcs=rpcs, out_words_ok=out)
1336 rpcs, out = self._gen_expectations(hosts=self._hosts, attributes=attrs)
1339 rpcs=rpcs, out_words_ok=out)
1344 rpcs, out = self._gen_expectations(platform='some_platform')
1347 rpcs=rpcs, out_words_ok=out)
1353 rpcs, out = self._gen_expectations(labels=labels)
1355 rpcs=rpcs, out_words_ok=out)
1361 rpcs, out = self._gen_expectations(labels=labels)
1365 rpcs=rpcs, out_words_ok=out)
1373 rpcs, out = self._gen_expectations(acls=acls)
1375 rpcs=rpcs, out_words_ok=out)
1381 rpcs, out = self._gen_expectations(acls=acls)
1385 rpcs=rpcs, out_words_ok=out)
1393 rpcs, out = self._gen_expectations(protection=protection)
1395 rpcs=rpcs,out_words_ok=out)
1401 rpcs, out = self._gen_expectations(hosts=[])
1419 rpcs, out = self._gen_expectations(locked=True, lock_reason=lock_reason,
1425 self.run_cmd(argv=self._command_single + cmd_args, rpcs=rpcs,
1445 rpcs = []
1454 rpcs.append(('get_hosts', {'hostname__in': hosts}, True, host_dicts))
1476 rpcs.append(('modify_host', modify_args, True, None))
1479 rpcs += self._gen_labels_rpcs(labels, host_id=host_id)
1480 rpcs.append(('host_add_labels', {'id': host, 'labels': labels},
1484 rpcs += self._gen_labels_rpcs([platform], platform=True,
1486 rpcs.append(('host_add_labels', {'id': host,
1490 rpcs += self._gen_attributes_rpcs(host, attributes)
1493 rpcs += self._gen_acls_rpcs(hosts, acls, host_ids=host_ids)
1495 return rpcs, list(out)
1501 rpcs, out = self._gen_expectations(locked=True, force_lock=True,
1506 rpcs=rpcs, out_words_ok=out)
1510 rpcs, out = self._gen_expectations(locked=False, force_lock=True)
1513 rpcs=rpcs, out_words_ok=out)
1517 rpcs, out = self._gen_expectations(hosts=['nope'], locked=True)
1519 rpcs=rpcs, err_words_ok=['Cannot', 'modify', 'nope'])
1584 rpcs = []
1599 rpcs.append(('add_host', add_args, True, None))
1601 rpcs += self._gen_labels_rpcs(labels)
1603 rpcs.append(('host_add_labels', {'id': host, 'labels': labels},
1607 rpcs += self._gen_labels_rpcs([platform], platform=True)
1608 rpcs.append(('host_add_labels', {'id': host,
1612 rpcs += self._gen_attributes_rpcs(host, attributes)
1614 rpcs += self._gen_acls_rpcs(hosts, acls)
1618 rpcs.append((
1628 return rpcs, out
1632 rpcs, out = self._gen_expectations()
1633 self.run_cmd(argv=self._command_single, rpcs=rpcs, out_words_ok=out)
1638 rpcs, out = self._gen_expectations(platform='some_platform',
1640 self.run_cmd(argv=self._command_single, rpcs=rpcs, out_words_ok=out)
1646 rpcs, out = self._gen_expectations(platform='some_platform',
1650 rpcs=rpcs, out_words_ok=out)
1656 rpcs, out = self._gen_expectations(labels=labels,
1658 self.run_cmd(argv=self._command_single, rpcs=rpcs, out_words_ok=out)
1664 rpcs, out = self._gen_expectations(labels=labels,
1667 rpcs=rpcs, out_words_ok=out)