Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

testutil: add a new testutil package with fake identity service #139

Closed
wants to merge 6 commits into from

Conversation

kaccardi
Copy link
Contributor

This new package will container helper functions that allow an
individual component to simulate other components in the cluster
during unit testing.

Add a fake identity service which will hand out fake tokens for
a single tenant with an admin role.

Signed-off-by: Kristen Carlson Accardi kristen@linux.intel.com

@coveralls
Copy link

coveralls commented May 18, 2016

Coverage Status

Coverage decreased (-0.07%) to 42.88% when pulling 9d7c9e9 on kaccardi/topic/ciao-test into 2af99f2 on master.

Mark Ryan and others added 4 commits May 24, 2016 11:39
In dual network mode, ciao-launcher acts as both a launcher of normal
VM instances and of CNCI instances.  This is a partial implementation
of:

#125

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
Scheduler can more efficiently make choices as an ssntp server if it knows
the role of the ssntp peer client.  Add an accessor for session.destRole
which would be the client in the case scheduler cares about.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
Split out a helper to update a nodeStat.

With StatusNotify() including a role parameter, the helper function can be
simply called for each relevant role, instead of having to check all maps
for the uuid passed in the already existing StatusNotify() parameter list.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
The Role is a typedef'd bitmask of an enumeration of constant values.
But much of the code directly accessed the underlying integer, with a
variety of casting involved.  By removing all the integer typing and
adding some accessor/test functions, the casts go away and and some code
reads more succintly.  We get a more strongly typed object for "Role" that
can transparently change its underlying implementation in the future if
needed.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
@kaccardi
Copy link
Contributor Author

rebased on origin/mcastelino/topic/singlemachine

This new package will container helper functions that allow an
individual component to simulate other components in the cluster
during unit testing.

Add a fake identity service which will hand out fake tokens for
a single tenant with an admin role.

Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Create --single option, which will cause the controller to create
a fake keystone server.

Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
@coveralls
Copy link

coveralls commented May 24, 2016

Coverage Status

Coverage decreased (-0.01%) to 54.644% when pulling 914db8f on kaccardi/topic/ciao-test into 670027d on master.

@kaccardi
Copy link
Contributor Author

@mcastelino let me know if this works for you.

@kaccardi
Copy link
Contributor Author

closing this to make a new one against the right branch.

@kaccardi kaccardi closed this May 24, 2016
@kaccardi kaccardi deleted the kaccardi/topic/ciao-test branch July 22, 2016 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants