-
Notifications
You must be signed in to change notification settings - Fork 364
Support for Tacker - NFV Orchestration - Version 1.0 Implementation #785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Added initial `Tacker API` Definitions..
* Added `Tacker Builders` and `Interfaces` for the following: * `VNF Catalog` * `VNF Manager` * `VIM Management`
* Completed `Tacker Domain and Internal` class implementation * TODO: `VIM - Update` API is pending, everything else is implemented and Tested..
* Added `binding` in `DefaultAPIProvider` class..
* `Tacker` Services are now exposed via `OSClient` and `OSClientSession`..
|
Wow. Many thanks @vishvesh . |
|
@vishvesh Could you add some tests? Besides that. Looks very good. |
|
@gondor @auhlig @vinodborole : Thanks! I will try to write and contribute tests once I am free.. I have tested and using all these functions in my Application, and having no troubles so far. Will this be merged, or should I add more commits to this |
|
As this PR is introducing so much new stuff I'd be happy to have some basic tests here before merging. |
|
@auhlig : Agreed 👍 Will take some time to write tests once I am free.. |
|
Feel free to reach out in case you need help :) |
|
@auhlig : Ohh that would be awesome 👍 I'll try to add some tests by next weekend.. |
|
@auhlig @vinodborole @gondor , am I missing some configuration for executing Tests? I have added protected enum Service {
IDENTITY(5000),
NETWORK(9696),
COMPUTE(8774),
BLOCK_STORAGE(8776),
METERING(8087),
TELEMETRY(8087),
SHARE(8786),
OBJECT_STORAGE(8800),
CLUSTERING(8778),
TACKER(9890)
;My Test class looks like this: @Test(suiteName = "tacker/vnfd")
public class TackerVnfdTests extends AbstractTest {
private static final String TACKER_VNFDS = "/tacker/v1/vnfds.json";
@Override
protected Service service() {
return Service.TACKER;
}
@Test
public void testListVnfds() throws Exception {
OSFactory.enableHttpLoggingFilter(true); //will remove this later
respondWith(TACKER_VNFDS);
List<? extends Vnfd> vnfds = osv3().tacker().vnfd().list();
assertEquals(1, vnfds.size());
Preconditions.checkNotNull(vnfds.get(0));
Logger.getLogger(getClass().getName())
.info(getClass().getName() + " : Tacker VNFD from List : " + vnfds.get(0));
assertEquals(vnfds.get(0).getName(), "test-vnfd");
}
}I am running When |
|
You're on the right track. Maybe the json could not be found? Or the port is already in use? Could you check if the mockwebserver starts? https://github.com/ContainX/openstack4j/blob/master/core-test/src/main/java/org/openstack4j/api/AbstractTest.java#L73-L88 |
|
@auhlig : Figured it out.. I was missing the Tests passing now.. Will commit once it's complete.. 👍 Thanks.. |
|
Ah. Right. BTW: Running either |
|
Doesn't work for me :( I am doing |
|
Maybe it fails, because the java version of the connectors are different. Some req. Java 7, some Java 8. Take a look at https://github.com/ContainX/openstack4j/blob/master/.travis.yml#L23-L24. See skipped modules in line 8. |
|
That's fine, I am able to run tests via |
|
@vishvesh let us know when your ready for final review. Also we'll need branch conflicts resolved |
|
@gondor : Sure, will try to find time this week, and let you know.. Regarding the conflicts, it doesn't show me what's conflicting since I do not have write access to the repository.. |
|
@vishvesh You don't need write access to the repo. You could do it the other way around and merge the latest into your branch. |
|
@auhlig : Okay.. 👍 |
ContainX-master Conflicts: core/src/main/java/org/openstack4j/api/Apis.java core/src/main/java/org/openstack4j/api/types/ServiceType.java core/src/main/java/org/openstack4j/openstack/provider/DefaultAPIProvider.java
* Updated `Builders` class to incorporate `tacker()` service builders.. * Updated `authv3_project.json` to reflect `Tacker Endpoint`.. * Added `CRUD` Tests for `Tacker Vnfd`.. * `Tacker Vnf` and `Tacker Vim` tests to be implemented..
* Implemented and tested `Tacker Vim` `CRUD` Tests.. * Removed `HttpLoggingFilter` from `TackerVnfdTests`..
* Added `Tacker Vnf - CRUD` Tests.. * All `Tacker Tests` are now complete (Except for `Vim Update`)..
|
Very nice @vishvesh. 👍 |
|
I'm hesitating to merge since https://travis-ci.org/ContainX/openstack4j/builds/159561585 failed. What are we going to do about it? @vinodborole @gondor |
|
@auhlig looking at the files on this one it looks like the underlying import that was missing in the previously failure was added to this one. Travis is saying this PR is passing so I think we're good to merge |
|
Hi Jeremy, Right. Sounds good. Merging now. |
|
@gondor @vinodborole @auhlig : Awesome.. Thanks 👍 |
|
Hey @vishvesh, |
|
@auhlig : Alright 👍 I will contribute the Documentation for Os4j Website. Although, I am not sure about the timeline for my contribution for the mark-down..
Will try to make it similar to this: |
|
That would be awesome @vishvesh. Many thanks in advance. Is it okay if I assign you to this issue? |
This PR adds support for Tacker - NFV Orchestration - Version 1.0 Implementation
Please review and merge the initial
API ImplementationforTacker - NFV Orchestration..Links to the Docs:Below are the Commit Descriptions:
Tacker APIDefinitions..Tacker BuildersandInterfacesfor the following:VNF CatalogVNF ManagerVIM ManagementTacker Domain and Internalclass implementationVIM - UpdateAPI is pending, everything else is implemented and Tested..bindinginDefaultAPIProviderclass..TackerServices are now exposed viaOSClientandOSClientSession..Note:VIM Update APIis yet to be implemented..Test Casesfor the same, but I have tested and written tests on myClient.. I am not sure if the contributions are accepted only withTestvalidations?Tacker APIsare stillunder developmentand not yet part of theOfficial Documentation.. So theymight changein the future.. Since we are using it already, I thought of contributing so someone interested can use and enhance them..Track Tacker RelatedImplementation issues : Support for Tacker - NFV Orchestration - Version 1.0 Implementation #786Below are the API Usages:
VNFD API:VNF API:VIM API: