This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
testutil: add a new testutil package with fake identity service #139
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kaccardi
force-pushed
the
kaccardi/topic/ciao-test
branch
from
May 18, 2016 19:15
4303994
to
9d7c9e9
Compare
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
force-pushed
the
kaccardi/topic/ciao-test
branch
from
May 24, 2016 20:11
9d7c9e9
to
94b15f1
Compare
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>
kaccardi
force-pushed
the
kaccardi/topic/ciao-test
branch
from
May 24, 2016 20:23
94b15f1
to
914db8f
Compare
@mcastelino let me know if this works for you. |
closing this to make a new one against the right branch. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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