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: [ASSEMBLY 207] Policy assumptions for testcases ASM_100002 and ASM_100003are incorrect - Proposal



Proposal is in 2 parts, first for testcase ASM_100002, second for testcase ASM_100003

1) ASM_100002

Testcase is basically correct.  What is missing is a policySet which claims to satisfy the intent "test:Fred".
Solve this by adding such a policySet to the definitions.xml file in General contribution:

<definitions         xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
                                xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
                                xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
                                targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903">

   <!-- A user-defined intent for the purposes of testing the intent resolution mechanism  -->
   <intent name="Fred" constrains="sca:binding" intentType="interaction"/>
   
   <!-- A policySet which claims to satisfy the user-defined intent "Fred" -->
   <policySet name="PolicySet1" provides="test:Fred" appliesTo="//service|//reference">
      <!-- This policySet intentionally left empty -->
      <!-- ...it is valid for a policySet to contain no concrete policy statements -->
   </policySet>
   
</definitions>

http://tools.oasis-open.org/version-control/browse/wsvn/sca-assembly/TestCases/General/src/main/resources/META-INF/definitions.xml


2) ASM_100003

Testcase has incorrect descriptions for

ASM_100003_TestCase.java
Test_ASM_100003.composite

http://tools.oasis-open.org/version-control/browse/wsvn/sca-assembly/TestCases/Test_Client/src/main/java/client/ASM_13003_TestCase.java
http://tools.oasis-open.org/version-control/browse/wsvn/sca-assembly/TestCases/ASM_10003/src/main/resources/Test_ASM_10003.composite

- correct the descriptions of both to read:

"Tests that when a <definitions/> file has content that does not conform to the sca-definitions.xsd,
it is rejected by the SCA runtime"

The definitions.xml file in contribution ASM_100003 is correct in that it contains invalid material that is the whole point of the test, but it would
be best to add a policySet definition as for ASM_100002, so that the ONLY error is the additional invalid material

http://tools.oasis-open.org/version-control/browse/wsvn/sca-assembly/TestCases/ASM_10003/src/main/resources/META-INF/definitions.xml


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]