Silence erroneous hlint warning
This patch adds an ignore for an hlint warning that wants camelcase to be usedin the name of a "case" test.But if camelcase is used, it is not a valid test name anymore.
Signed-off-by: Michele Tartara <mtartara@google.com>...
Add the parseReply function to the Confd utils
This function will be used by the Haskell Confd client to parse the repliesit receives from the server.
Unit test is included as well.
Signed-off-by: Michele Tartara <mtartara@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Rename the Confd utils parseMessage function to parseRequest
With the upcoming implementation of the Haskell Confd client, requests willno longer be the only kind of message to be parsed, therefore the parsingfunction for requests is being renamed to be more specific, and to better fit...
Make the parseRequest function more general
The parseRequest function of the Confd utils can be used to parse both request(in the server) and reply (in the client, soon to be implemented) signedmessages.This patch changes the signature of the function to allow this, and its name...
Add function for generating UUIDs in the Haskell codebase
Its first use will be to generate the salt for ConfD requests of the Haskellclient, as in the Python client.
Unit test added as well.
Move rstripSpace from Ssconf to Utils
Also renames it in the process and adds a few tests for it.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Michael Hanselmann <hansmi@google.com>
Make node groups' networks field a dict of nicparams
The networks field of the node groups class is a dictionaryof nic params and not a list of networks. This should fixthe broken QA.
Signed-off-by: Helga Velroyen <helgav@google.com>Reviewed-by: Iustin Pop <iustin@google.com>
Renaming fam -> net_family on test network generation
Small renaming to make the test more readable.
Signed-off-by: Helga Velroyen <helgav@google.com>Reviewed-by: Michele Tartara <mtartara@google.com>
Serialization compatibility test for node groups
This creates a number of node groups with up to 3 networks,serializes them and compares them with their python equvalents.
Add a network fields to NIC params and node group type
This adds a network field to the NIC params and a list of networksto the node group type. It adjusts the nodegroup's unit tests accordingly.
View revisions
Also available in: Atom