1. 25 Feb, 2013 1 commit
    • Iustin Pop's avatar
      Improve TemplateHaskell code to support empty objects · 08f7d24d
      Iustin Pop authored
      
      
      Currently, an empty objects will generate warnings as the arguments of
      various functions are unused. By adding conditional code for this, we
      can support generation of empty objects, e.g. like needed in Rpc code.
      
      Additionally, the patch also converts RpcCallVersion to THH, now that
      it can build it. We change the serialisation for this (from JSNull to
      JSObject []), but this shouldn't matter as this is not used in
      production.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      08f7d24d
  2. 22 Feb, 2013 5 commits
  3. 21 Feb, 2013 2 commits
  4. 20 Feb, 2013 17 commits
  5. 19 Feb, 2013 12 commits
  6. 18 Feb, 2013 3 commits
    • Helga Velroyen's avatar
      Unit tests for Query/Network.hs · 834bea99
      Helga Velroyen authored
      
      
      This patch adds a couple of unit tests for Query/Network.hs.
      Note that they'll need to be adapted, once issue 362 is addressed.
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      834bea99
    • Michele Tartara's avatar
      Make Confd client usable for testing · 7dc27988
      Michele Tartara authored
      
      
      Allow the Confd client to be able to connect to an arbitrary server
      instead of just the real one running on a cluster.
      
      This is meant to be used for testing.
      
      If a data collector using the Confd client is tested with shelltest, it will
      need to receive through the CLI the address and port of the server, and also the
      FQDN for which information is being requested. In normal usage it will likely be
      the name of the node the data collector is running on, but for testing we need a
      way to explicitly specify it so that it corresponds to the one used inside the
      configuration files that the test confd server is reading.
      
      So, optConfdAddr and optConfdPort and optNode are provided by this patch, even
      if not used, because they are an important part of the modifications for making
      the Confd client testable.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      7dc27988
    • Michele Tartara's avatar
      Add Haskell parser for "xm uptime" · c5a957c3
      Michele Tartara authored
      
      
      In order to fetch precise information about the uptime of the VMs
      running in Xen, we need to analyze the output of the "xm uptime" command.
      
      This commit adds the parser to do that, and its tests.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      c5a957c3