OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [NEW ISSUE] ASM_12008 TestCase has incorrect artifact



Raiser:                Mike Edwards

Target:                SCA Assembly TestSuite CD01

Description:

ASM_12008 testcase checks that an artifact is resolved through an import statement even if a copy
of the artifact is present in the contribution containing the artifact which contains the reference.

This is done by Test_ASM_12008.composite containing a reference to a second composite
test2:TestComposite5 from an <implementation.composite /> element, where the test2 namespace is
subject to an import statement in the contribution containing Test_ASM_12008.composite (ASM_12008 contribution).

There is a version of TestComposite5 present in the ASM_12008 contribution.

There is a second, different version of TestComposite5 present in the General contribution, which
exports the test2 namspace (see TestComposite5a.composite file)

In correct running of the testcase, the TestComposite5 reference should resolve to the copy contained in
General.

The version of TestComposite5 in General is designed to cause an error.  The referencing component in
Test_ASM_12008 expects that the composite has a service named Service1 which implements the service
interface Service1.  However, the version of TestComposite5 in Gneral is intended to have a service
named Service1 that implements the incompatible service interface Service2.  As a result, there should be
a failure when trying to deploy or run Test_ASM_12008.

The problem is that the version of TestComposite5 in General contains errors that invalidate the results of
the testcase.

The current version of TestComposite5.composite from General is:

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
           name="TestComposite5">
           
        <service name="Service1" promote="TestComposite5TestComponent1/Service2">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service2)"/>
        </service>

    <property name="serviceName" type="string"/>
 
    <component name="TestComposite5TestComponent1">
                <implementation.composite name="test:TestComposite5"/>
        <service name="Service2">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service2)"/>
        </service>
        <property name="serviceName" source="$serviceName"/>
    </component>

</composite>

The problem is that the composite test:TestComposite5 (NB DIFFERENT NAMESPACE) has a service with the name Service1 with the
interface Service2 - it DOES NOT have a service with the name Service2.  As a result, resolution of the TestComposite5TestComponent1
fails and then the resolution of the @promote attribute of the composite service Service1 fails.  Neither of these failures is intended.

Proposal:

Change the contents of TestComposite5a.composite file in General contribution to the following:

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
           name="TestComposite5">
           
        <service name="Service1" promote="TestComposite5TestComponent1/Service1">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service2)"/>
        </service>

    <property name="serviceName" type="string"/>
 
    <component name="TestComposite5TestComponent1">
                <implementation.composite name="test:TestComposite5"/>
        <service name="Service1">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service2)"/>
        </service>
        <property name="serviceName" source="$serviceName"/>
    </component>

</composite>

Basically, this corrects the name of the service on TestComposite5TestComponent1 and adjusts the @promote attribute of the composite
service Service1 to match.


Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]