Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In a work performed in collaboration with CTA, we prepared a small prototype to mock-up the ContainerServices class in C++. This mock-up allowed to retrieve components and make them interact, without requiring a CORBA connection and making it possible to do simple integration testings without ACS running and taking advantage of unit testing framework.

The benefits of this comes from performance and simplicity of the testing environment.

For reference, an ACS ticket already exists for integrating this prototype into ACS:

Jira
serverICT
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId451c03fa-a384-3e36-95b3-3ef4dae081ba
keyACS-11

Limitations

There are several limitations, some of which could be mitigated by extending the ContainerServices mock-up functionalities. At the moment of writing:

...

The getCORBAComponent method was also extended in order to return the component from 'comps' the std::map:

Code Block
languagecpp
titleMockContainerServices.cpp
CORBA::Object* MockContainerServices::getCORBAComponent(const char* name){
    if (comps.find(name) == comps.end()) {
        maciErrType::CannotGetComponentExImpl ex(__FILE__, __LINE__, "MockContainerServices::getComponent");
        ex.setCURL(name);
        throw ex;
    }
    return CORBA::Object::_duplicate(comps[name].in());
}

...