LGTM, thanks
On Fri, Dec 20, 2013 at 10:09 AM, Hrvoje Ribicic <[email protected]> wrote: > This patch expands the RAPI workload with simple Get* commands. > > Signed-off-by: Hrvoje Ribicic <[email protected]> > --- > qa/rapi-workload.py | 22 ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) > > diff --git a/qa/rapi-workload.py b/qa/rapi-workload.py > index f936d95..11195f5 100755 > --- a/qa/rapi-workload.py > +++ b/qa/rapi-workload.py > @@ -115,7 +115,6 @@ class GanetiRapiClientWrapper(object): > #guide, this will stop infinite loops in attribute fetches. > if attr.startswith("_"): > return self.__getattribute__(attr) > - > try: > return InvokerCreator(self._client.__getattribute__(attr), attr) > except AttributeError: > @@ -130,7 +129,26 @@ def Workload(client): > @param client A wrapped RAPI client. > > """ > - print client.GetVersion() > + > + # First just the simple information retrievals > + client.GetVersion() > + client.GetFeatures() > + client.GetOperatingSystems() > + client.GetInfo() > + client.GetClusterTags() > + client.GetInstances() > + client.GetInstances(bulk=True) > + client.GetJobs() > + client.GetJobs(bulk=True) > + client.GetNodes() > + client.GetNodes(bulk=True) > + client.GetNetworks() > + client.GetNetworks(bulk=True) > + client.GetGroups() > + client.GetGroups(bulk=True) > + > + job_id = client.RedistributeConfig() > + client.WaitForJobCompletion(job_id) > > > def Usage(): > -- > 1.8.5.1 > > -- -- Helga Velroyen | Software Engineer | [email protected] | Google Germany GmbH Dienerstr. 12 80331 München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Christine Elizabeth Flores
