2.5.4.1. host — Manipulating machines that run tests

Hosts are the Autotest terminology for machines that will run the test jobs.

The functionality exposed by the server allow users to add new hosts, modify or delete existing ones.

As an implementation detail of the server, to maintain referential integrity, a host record is never actually deleted, but marked as invalid.

2.5.4.1.1. Functions for procedural like programming

All the default functions are available for getting information, adding new instances, modifying and deleting existing ones.

arc.host.get_data()

Returns data in raw format from the Autotest RPC server. By default all data will be returned, unless filtered.

Parameters:
  • connection – an arc.connection.AfeConnection instance
  • data_filter – keyword arguments to filter the data that will be received
Returns:

raw JSON data converted to a Python data structure

arc.host.get_ids()

Returns only the numeric identification of existing instances on the server side.

Parameters:
  • connection – an arc.connection.AfeConnection instance
  • data_filter – keyword arguments to filter the data that will be received
Returns:

raw JSON data converted to a Python data structure

2.5.4.1.2. The Host Class

class arc.host.Host(connection, identification=None, name=None)

Interface for manipulating hosts on an autotest server

get_label_data()

Get raw data on this host’s labels

get_label_names()

Get this host’s labels names