From 1675a38e482e4cc3a054bf61472eb0afd98e870f Mon Sep 17 00:00:00 2001 From: "mark.hamzy" Date: Fri, 23 Jun 2006 18:45:22 +0000 Subject: [PATCH] BUG#: 4991 TITLE: Include 2.6 fixed JMPI defects into 2.5.2 DESCRIPTION: Including 2.6 fixed JMPI defects into 2.5.2 --- .../Indications/CommonInstanceProvider.java | 1149 +++++++++++++ .../JMPIExpIndicationProvider.java | 336 ++++ .../Indications/JMPIExpIndicationProvider.mof | 52 + .../JMPIExpIndicationProviderR.mof | 60 + .../jmpi/tests/Providers/Indications/Makefile | 99 ++ .../TestIndicationsListener.Makefile | 51 + .../Indications/TestIndicationsListener.cpp | 89 + .../Providers/Indications/TestWQL.Makefile | 50 + .../tests/Providers/Indications/TestWQL.cpp | 108 ++ .../Instances/CommonInstanceProvider.java | 1486 +++++++++++++++++ .../Instances/JMPICIMInstance2Provider.java | 269 +++ .../Instances/JMPICIMInstance2Provider.mof | 200 +++ .../Instances/JMPICIMInstance2ProviderR.mof | 73 + .../Instances/JMPICIMInstanceProvider.java | 264 +++ .../Instances/JMPICIMInstanceProvider.mof | 200 +++ .../Instances/JMPICIMInstanceProviderR.mof | 73 + .../Instances/JMPIExpInstanceProvider.java | 248 +++ .../Instances/JMPIExpInstanceProvider.mof | 200 +++ .../Instances/JMPIExpInstanceProviderR.mof | 73 + .../Instances/JMPIInstanceProvider.java | 241 +++ .../Instances/JMPIInstanceProvider.mof | 200 +++ .../Instances/JMPIInstanceProviderR.mof | 73 + .../jmpi/tests/Providers/Instances/Makefile | 187 +++ .../Properties/JMPIPropertyProvider.java | 776 +++++++++ .../Properties/JMPIPropertyProvider.mof | 61 + .../Properties/JMPIPropertyProviderR.mof | 59 + .../jmpi/tests/Providers/Properties/Makefile | 97 ++ .../CreateInstance/CreateInstance53000.xml | 81 + .../CreateInstance53000rspgood.xml | 10 + .../CreateInstance/CreateInstance53001.xml | 81 + .../CreateInstance53001rspgood.xml | 10 + .../CreateInstance/CreateInstance53002.xml | 81 + .../CreateInstance53002rspgood.xml | 10 + .../CreateInstance/CreateInstance53003.xml | 81 + .../CreateInstance53003rspgood.xml | 10 + .../CreateInstance/CreateInstance53004.xml | 81 + .../CreateInstance53004rspgood.xml | 10 + .../CreateInstance/CreateInstance53005.xml | 81 + .../CreateInstance53005rspgood.xml | 10 + .../CreateInstance/CreateInstance53006.xml | 81 + .../CreateInstance53006rspgood.xml | 10 + .../CreateInstance/CreateInstance53007.xml | 81 + .../CreateInstance53007rspgood.xml | 10 + .../CreateInstance/CreateInstance53008.xml | 81 + .../CreateInstance53008rspgood.xml | 10 + .../CreateInstance/CreateInstance53009.xml | 81 + .../CreateInstance53009rspgood.xml | 10 + .../CreateInstance/CreateInstance53010.xml | 81 + .../CreateInstance53010rspgood.xml | 10 + .../CreateInstance/CreateInstance53011.xml | 81 + .../CreateInstance53011rspgood.xml | 10 + .../CreateInstance/CreateInstance53012.xml | 81 + .../CreateInstance53012rspgood.xml | 10 + .../CreateInstance/CreateInstance53013.xml | 81 + .../CreateInstance53013rspgood.xml | 10 + .../CreateInstance/CreateInstance53014.xml | 81 + .../CreateInstance53014rspgood.xml | 10 + .../CreateInstance/CreateInstance53015.xml | 81 + .../CreateInstance53015rspgood.xml | 4 + .../CreateInstance/CreateInstance53016.xml | 81 + .../CreateInstance53016rspgood.xml | 10 + .../CreateInstance/CreateInstance53017.xml | 81 + .../CreateInstance53017rspgood.xml | 4 + .../CreateInstance/CreateInstance53018.xml | 81 + .../CreateInstance53018rspgood.xml | 4 + .../CreateInstance/CreateInstance53019.xml | 81 + .../CreateInstance53019rspgood.xml | 4 + .../CreateInstance/CreateInstance53020.xml | 81 + .../CreateInstance53020rspgood.xml | 4 + .../CreateInstance/CreateInstance53021.xml | 81 + .../CreateInstance53021rspgood.xml | 4 + .../CreateInstance/CreateInstance53022.xml | 81 + .../CreateInstance53022rspgood.xml | 4 + .../CreateInstance/CreateInstance53023.xml | 81 + .../CreateInstance53023rspgood.xml | 4 + .../CreateInstance/CreateInstance53024.xml | 81 + .../CreateInstance53024rspgood.xml | 4 + .../CreateInstance/CreateInstance53025.xml | 81 + .../CreateInstance53025rspgood.xml | 4 + .../CreateInstance/CreateInstance53026.xml | 81 + .../CreateInstance53026rspgood.xml | 4 + .../CreateInstance/CreateInstance53027.xml | 81 + .../CreateInstance53027rspgood.xml | 4 + .../CreateInstance/CreateInstance53028.xml | 81 + .../CreateInstance53028rspgood.xml | 10 + .../CreateInstance/CreateInstance53029.xml | 81 + .../CreateInstance53029rspgood.xml | 4 + .../CreateInstance/CreateInstance53030.xml | 81 + .../CreateInstance53030rspgood.xml | 4 + .../CreateInstance/CreateInstance53031.xml | 81 + .../CreateInstance53031rspgood.xml | 4 + .../CreateInstance/CreateInstance53032.xml | 81 + .../CreateInstance53032rspgood.xml | 4 + .../CreateInstance/CreateInstance53033.xml | 81 + .../CreateInstance53033rspgood.xml | 4 + .../CreateInstance/CreateInstance53034.xml | 81 + .../CreateInstance53034rspgood.xml | 4 + .../CreateInstance/CreateInstance53035.xml | 81 + .../CreateInstance53035rspgood.xml | 4 + .../CreateInstance/CreateInstance53036.xml | 81 + .../CreateInstance53036rspgood.xml | 10 + .../CreateInstance/CreateInstance53037.xml | 81 + .../CreateInstance53037rspgood.xml | 4 + .../CreateInstance/CreateInstance53038.xml | 81 + .../CreateInstance53038rspgood.xml | 4 + .../CreateInstance/CreateInstance53039.xml | 81 + .../CreateInstance53039rspgood.xml | 4 + .../CreateInstance/CreateInstance53040.xml | 81 + .../CreateInstance53040rspgood.xml | 4 + .../CreateInstance/CreateInstance53041.xml | 81 + .../CreateInstance53041rspgood.xml | 4 + .../CreateInstance/CreateInstance53042.xml | 81 + .../CreateInstance53042rspgood.xml | 4 + .../CreateInstance/CreateInstance53043.xml | 81 + .../CreateInstance53043rspgood.xml | 4 + .../CreateInstance/CreateInstance53044.xml | 81 + .../CreateInstance53044rspgood.xml | 4 + .../CreateInstance/CreateInstance53045.xml | 81 + .../CreateInstance53045rspgood.xml | 10 + .../CreateInstance/CreateInstance53046.xml | 81 + .../CreateInstance53046rspgood.xml | 4 + .../CreateInstance/CreateInstance53047.xml | 81 + .../CreateInstance53047rspgood.xml | 4 + .../CreateInstance/CreateInstance53048.xml | 81 + .../CreateInstance53048rspgood.xml | 4 + .../CreateInstance/CreateInstance53049.xml | 81 + .../CreateInstance53049rspgood.xml | 4 + .../CreateInstance/CreateInstance53050.xml | 81 + .../CreateInstance53050rspgood.xml | 4 + .../CreateInstance/CreateInstance53051.xml | 81 + .../CreateInstance53051rspgood.xml | 4 + .../CreateInstance/CreateInstance53052.xml | 81 + .../CreateInstance53052rspgood.xml | 4 + .../CreateInstance/CreateInstance53053.xml | 81 + .../CreateInstance53053rspgood.xml | 4 + .../CreateInstance/CreateInstance53054.xml | 81 + .../CreateInstance53054rspgood.xml | 4 + .../jmpi/tests/Static/CreateInstance/Makefile | 101 ++ .../DeleteInstance/DeleteInstance55000.xml | 27 + .../DeleteInstance55000rspgood.xml | 10 + .../DeleteInstance/DeleteInstance55001.xml | 27 + .../DeleteInstance55001rspgood.xml | 10 + .../DeleteInstance/DeleteInstance55002.xml | 27 + .../DeleteInstance55002rspgood.xml | 10 + .../DeleteInstance/DeleteInstance55003.xml | 27 + .../DeleteInstance55003rspgood.xml | 10 + .../jmpi/tests/Static/DeleteInstance/Makefile | 51 + .../EnumerateInstanceNames50000.xml | 16 + .../EnumerateInstanceNames50000rspgood.xml | 35 + .../EnumerateInstanceNames50001.xml | 16 + .../EnumerateInstanceNames50001rspgood.xml | 10 + .../EnumerateInstanceNames50002.xml | 16 + .../EnumerateInstanceNames50002rspgood.xml | 10 + .../Static/EnumerateInstanceNames/Makefile | 49 + .../EnumerateInstances/DeepLocalFF51007.xml | 37 + .../DeepLocalFF51007rspgood.xml | 193 +++ .../DeepLocalFFAlt51007.xml | 37 + .../DeepLocalFFAlt51007rspgood.xml | 193 +++ .../EnumerateInstances/DeepLocalFT51006.xml | 37 + .../EnumerateInstances/DeepLocalTF51005.xml | 37 + .../DeepLocalTF51005rspgood.xml | 193 +++ .../EnumerateInstances/DeepLocalTF51008.xml | 44 + .../DeepLocalTF51008rspgood.xml | 193 +++ .../DeepLocalTFAlt51005.xml | 37 + .../DeepLocalTFAlt51005rspgood.xml | 193 +++ .../DeepLocalTFAlt51008.xml | 44 + .../DeepLocalTFAlt51008rspgood.xml | 193 +++ .../EnumerateInstances/DeepLocalTT51004.xml | 37 + .../EnumerateInstances51000.xml | 16 + .../EnumerateInstances51000rspgood.xml | 193 +++ .../EnumerateInstances51001.xml | 15 + .../EnumerateInstances51001rspgood.xml | 10 + .../EnumerateInstances51002.xml | 16 + .../EnumerateInstances51002rspgood.xml | 10 + .../EnumerateInstances51003.xml | 16 + .../EnumerateInstances51003rspgood.xml | 10 + .../EnumerateInstancesAlt51000.xml | 16 + .../EnumerateInstancesAlt51000rspgood.xml | 193 +++ .../tests/Static/EnumerateInstances/Makefile | 73 + .../Static/ErrorXml/BadAttributeName01.xml | 21 + .../ErrorXml/BadAttributeName01rspgood.xml | 4 + .../Static/ErrorXml/BadBooleanValue01.xml | 21 + .../ErrorXml/BadBooleanValue01rspgood.xml | 4 + .../Static/ErrorXml/BadChar16Value01.xml | 81 + .../ErrorXml/BadChar16Value01rspgood.xml | 4 + .../ErrorXml/BadCharacterReference01.xml | 27 + .../BadCharacterReference01rspgood.xml | 4 + .../ErrorXml/BadCharacterReference02.xml | 27 + .../BadCharacterReference02rspgood.xml | 4 + .../ErrorXml/BadCharacterReference03.xml | 27 + .../BadCharacterReference03rspgood.xml | 4 + .../ErrorXml/BadCharacterReference04.xml | 27 + .../BadCharacterReference04rspgood.xml | 4 + .../ErrorXml/BadCharacterReference05.xml | 27 + .../BadCharacterReference05rspgood.xml | 4 + .../ErrorXml/BadCharacterReference06.xml | 27 + .../BadCharacterReference06rspgood.xml | 4 + .../ErrorXml/BadCharacterReference07.xml | 27 + .../BadCharacterReference07rspgood.xml | 4 + .../Static/ErrorXml/BadDateTimeValue01.xml | 81 + .../ErrorXml/BadDateTimeValue01rspgood.xml | 4 + .../Static/ErrorXml/BadEntityReference01.xml | 27 + .../ErrorXml/BadEntityReference01rspgood.xml | 4 + .../Static/ErrorXml/BadEntityReference02.xml | 27 + .../ErrorXml/BadEntityReference02rspgood.xml | 4 + .../Static/ErrorXml/BadEntityReference03.xml | 27 + .../ErrorXml/BadEntityReference03rspgood.xml | 4 + .../ErrorXml/BadInstanceClassName01.xml | 81 + .../BadInstanceClassName01rspgood.xml | 4 + .../tests/Static/ErrorXml/BadMethodName01.xml | 21 + .../ErrorXml/BadMethodName01rspgood.xml | 10 + .../Static/ErrorXml/BadOpeningElement01.xml | 21 + .../ErrorXml/BadOpeningElement01rspgood.xml | 4 + .../tests/Static/ErrorXml/BadQualDecl01.xml | 17 + .../Static/ErrorXml/BadQualDecl01rspgood.xml | 4 + .../Static/ErrorXml/BadQualDeclType01.xml | 16 + .../ErrorXml/BadQualDeclType01rspgood.xml | 4 + .../Static/ErrorXml/BadQualValueElement01.xml | 80 + .../ErrorXml/BadQualValueElement01rspgood.xml | 10 + .../Static/ErrorXml/BadReal32Value01.xml | 81 + .../ErrorXml/BadReal32Value01rspgood.xml | 4 + .../Static/ErrorXml/BadReal64Value01.xml | 81 + .../ErrorXml/BadReal64Value01rspgood.xml | 4 + .../Static/ErrorXml/DuplicateProperty01.xml | 101 ++ .../ErrorXml/DuplicateProperty01rspgood.xml | 4 + .../Static/ErrorXml/DuplicateQualifier01.xml | 85 + .../ErrorXml/DuplicateQualifier01rspgood.xml | 4 + .../ErrorXml/GoodCharacterReference01.xml | 27 + .../GoodCharacterReference01rspgood.xml | 10 + .../ErrorXml/GoodCharacterReference02.xml | 27 + .../GoodCharacterReference02rspgood.xml | 10 + .../ErrorXml/GoodCharacterReference03.xml | 27 + .../GoodCharacterReference03rspgood.xml | 10 + .../ErrorXml/GoodCharacterReference04.xml | 27 + .../GoodCharacterReference04rspgood.xml | 10 + .../Static/ErrorXml/GoodEntityReference01.xml | 27 + .../ErrorXml/GoodEntityReference01rspgood.xml | 10 + .../ErrorXml/IllegalValueClassName01.xml | 21 + .../IllegalValueClassName01rspgood.xml | 4 + .../jmpi/tests/Static/ErrorXml/Makefile | 90 + .../Static/ErrorXml/MissingBooleanValue01.xml | 18 + .../ErrorXml/MissingBooleanValue01rspgood.xml | 4 + .../Static/ErrorXml/MissingCIMEndTag01.xml | 21 + .../ErrorXml/MissingCIMEndTag01rspgood.xml | 4 + .../Static/ErrorXml/MissingClassName01.xml | 21 + .../ErrorXml/MissingClassName01rspgood.xml | 4 + .../ErrorXml/MissingClassNameStartTag01.xml | 21 + .../MissingClassNameStartTag01rspgood.xml | 4 + .../ErrorXml/MissingIParamvalueEndTag01.xml | 21 + .../MissingIParamvalueEndTag01rspgood.xml | 4 + .../ErrorXml/MissingIParamvalueStartTag01.xml | 21 + .../MissingIParamvalueStartTag01rspgood.xml | 4 + .../MissingInstanceNameClassName01.xml | 74 + .../MissingInstanceNameClassName01rspgood.xml | 4 + .../Static/ErrorXml/MissingKeyValue01.xml | 49 + .../ErrorXml/MissingKeyValue01rspgood.xml | 4 + .../ErrorXml/MissingKeyValueEndTag01.xml | 49 + .../MissingKeyValueEndTag01rspgood.xml | 4 + .../ErrorXml/MissingMessageEndTag01.xml | 21 + .../MissingMessageEndTag01rspgood.xml | 4 + .../ErrorXml/MissingMethodCallEndTag01.xml | 21 + .../MissingMethodCallEndTag01rspgood.xml | 4 + .../ErrorXml/MissingParamValueName01.xml | 22 + .../MissingParamValueName01rspgood.xml | 4 + .../MissingPropertyReferenceEndTag01.xml | 73 + ...issingPropertyReferenceEndTag01rspgood.xml | 4 + .../Static/ErrorXml/MissingReqEndTag01.xml | 21 + .../ErrorXml/MissingReqEndTag01rspgood.xml | 4 + .../Static/ErrorXml/MissingValueArray01.xml | 49 + .../ErrorXml/MissingValueArray01rspgood.xml | 4 + .../ErrorXml/MissingValueElementEndTag01.xml | 81 + .../MissingValueElementEndTag01rspgood.xml | 4 + .../Static/ErrorXml/MissingXmlVersion01.xml | 21 + .../ErrorXml/MissingXmlVersion01rspgood.xml | 4 + .../Static/GetInstance/GetInstance52000.xml | 27 + .../GetInstance/GetInstance52000rspgood.xml | 10 + .../Static/GetInstance/GetInstance52001.xml | 27 + .../GetInstance/GetInstance52001rspgood.xml | 10 + .../Static/GetInstance/GetInstance52002.xml | 27 + .../GetInstance/GetInstance52002rspgood.xml | 10 + .../Static/GetInstance/GetInstance52003.xml | 27 + .../GetInstance/GetInstance52003rspgood.xml | 10 + .../Static/GetInstance/GetInstance52004.xml | 27 + .../GetInstance/GetInstance52004rspgood.xml | 88 + .../Static/GetInstance/GetInstance52005.xml | 27 + .../GetInstance/GetInstance52005rspgood.xml | 10 + .../Static/GetInstance/GetInstance52006.xml | 29 + .../GetInstance/GetInstance52006rspgood.xml | 10 + .../GetInstance/GetInstanceAlt52004.xml | 27 + .../GetInstanceAlt52004rspgood.xml | 88 + .../jmpi/tests/Static/GetInstance/Makefile | 57 + .../Static/Headers/BadCIMMethodValue01.xml | 31 + .../Headers/BadCIMMethodValue01rspgood.xml | 4 + .../Static/Headers/BadCIMMethodValue02.xml | 27 + .../Headers/BadCIMMethodValue02rspgood.xml | 4 + .../Static/Headers/BadCIMMethodValue03.xml | 27 + .../Headers/BadCIMMethodValue03rspgood.xml | 10 + .../Headers/BadCIMMethodValueEncoding01.xml | 37 + .../BadCIMMethodValueEncoding01rspgood.xml | 4 + .../Static/Headers/BadCIMObjectValue01.xml | 31 + .../Headers/BadCIMObjectValue01rspgood.xml | 4 + .../Static/Headers/BadCIMObjectValue02.xml | 31 + .../Headers/BadCIMObjectValue02rspgood.xml | 4 + .../Static/Headers/BadCIMObjectValue03.xml | 27 + .../Headers/BadCIMObjectValue03rspgood.xml | 4 + .../Static/Headers/BadCIMObjectValue04.xml | 31 + .../Headers/BadCIMObjectValue04rspgood.xml | 4 + .../Headers/BadCIMObjectValueEncoding01.xml | 37 + .../BadCIMObjectValueEncoding01rspgood.xml | 4 + .../Headers/BadCIMObjectValueEncoding02.xml | 37 + .../BadCIMObjectValueEncoding02rspgood.xml | 4 + .../Headers/BadCIMObjectValueEncoding03.xml | 37 + .../BadCIMObjectValueEncoding03rspgood.xml | 4 + .../Static/Headers/BadCIMOperationValue01.xml | 31 + .../Headers/BadCIMOperationValue01rspgood.xml | 4 + .../Headers/BadCIMProtocolVersionValue01.xml | 27 + .../BadCIMProtocolVersionValue01rspgood.xml | 4 + .../Static/Headers/ExtraCIMBatchTag01.xml | 32 + .../Headers/ExtraCIMBatchTag01rspgood.xml | 3 + .../Static/Headers/ExtraCIMBatchTag02.xml | 28 + .../Headers/ExtraCIMBatchTag02rspgood.xml | 3 + .../Headers/GoodCIMObjectValueEncoding01.xml | 37 + .../GoodCIMObjectValueEncoding01rspgood.xml | 10 + .../jmpi/tests/Static/Headers/Makefile | 73 + .../Static/Headers/MissingCIMBatchTag01.xml | 29 + .../Headers/MissingCIMBatchTag01rspgood.xml | 4 + .../Static/Headers/MissingCIMMethodTag01.xml | 30 + .../Headers/MissingCIMMethodTag01rspgood.xml | 4 + .../Static/Headers/MissingCIMMethodTag02.xml | 26 + .../Headers/MissingCIMMethodTag02rspgood.xml | 4 + .../Headers/MissingCIMMethodValue01.xml | 31 + .../MissingCIMMethodValue01rspgood.xml | 4 + .../Static/Headers/MissingCIMObjectTag01.xml | 30 + .../Headers/MissingCIMObjectTag01rspgood.xml | 4 + .../Static/Headers/MissingCIMObjectTag02.xml | 26 + .../Headers/MissingCIMObjectTag02rspgood.xml | 4 + .../Headers/MissingCIMOperationTag01.xml | 30 + .../MissingCIMOperationTag01rspgood.xml | 2 + .../Headers/MissingCIMOperationTag02.xml | 26 + .../MissingCIMOperationTag02rspgood.xml | 2 + .../Headers/MissingCIMProtocolVersion01.xml | 26 + .../MissingCIMProtocolVersion01rspgood.xml | 4 + .../tests/Static/Headers/MissingMessage01.xml | 24 + .../Headers/MissingMessage01rspgood.xml | 4 + .../UnsupportedCIMProtocolVersionValue01.xml | 27 + ...portedCIMProtocolVersionValue01rspgood.xml | 4 + .../Headers/UnsupportedCIMVersionValue01.xml | 17 + .../UnsupportedCIMVersionValue01rspgood.xml | 4 + .../Headers/UnsupportedDTDVersionValue01.xml | 17 + .../UnsupportedDTDVersionValue01rspgood.xml | 4 + .../Headers/UnsupportedHTTPMethod01.xml | 27 + .../UnsupportedHTTPMethod01rspgood.xml | 2 + .../jmpi/tests/Static/InvokeMethod/Makefile | 49 + .../Static/InvokeMethod/MethodCall1000.xml | 28 + .../InvokeMethod/MethodCall1000rspgood.xml | 14 + .../org/pegasus/jmpi/tests/Static/Makefile | 56 + .../jmpi/tests/Static/ModifyClass/Makefile | 44 + .../Static/ModifyClass/ModifyClass43006.xml | 18 + .../ModifyClass/ModifyClass43006rspgood.xml | 10 + .../jmpi/tests/Static/ModifyInstance/Makefile | 54 + .../ModifyInstance/ModifyInstance54000.xml | 95 ++ .../ModifyInstance54000rspgood.xml | 9 + .../ModifyInstance/ModifyInstance54001.xml | 95 ++ .../ModifyInstance54001rspgood.xml | 10 + .../ModifyInstance/ModifyInstance54002.xml | 95 ++ .../ModifyInstance54002rspgood.xml | 10 + .../ModifyInstance/ModifyInstance54003.xml | 95 ++ .../ModifyInstance54003rspgood.xml | 10 + .../ModifyInstance/ModifyInstance54004.xml | 95 ++ .../ModifyInstance54004rspgood.xml | 10 + .../ModifyInstance/ModifyInstance54005.xml | 95 ++ .../ModifyInstance54005rspgood.xml | 10 + .../ModifyInstance/ModifyInstance54006.xml | 95 ++ .../ModifyInstance54006rspgood.xml | 10 + .../Static/Property/GetProperty82000.xml | 32 + .../Property/GetProperty82000rspgood.xml | 10 + .../Static/Property/GetProperty82100.xml | 32 + .../Property/GetProperty82100rspgood.xml | 14 + .../jmpi/tests/Static/Property/Makefile | 47 + .../Static/Property/SetProperty82200.xml | 33 + .../Property/SetProperty82200rspgood.xml | 10 + .../Static/Property/SetProperty82300.xml | 32 + .../Property/SetProperty82300rspgood.xml | 10 + 383 files changed, 18998 insertions(+) create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/CommonInstanceProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProviderR.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.cpp create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.cpp create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/CommonInstanceProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2ProviderR.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProviderR.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProviderR.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProviderR.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.java create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProviderR.mof create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFT51006.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTT51004.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/Makefile create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200rspgood.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300.xml create mode 100644 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300rspgood.xml diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/CommonInstanceProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/CommonInstanceProvider.java new file mode 100644 index 000000000..02cb158e2 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/CommonInstanceProvider.java @@ -0,0 +1,1149 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Mark Hamzy, hamzy@us.ibm.com +// +// Modified By: Mark Hamzy, hamzy@us.ibm.com +// +// +// This code is based on TestPropertyTypes.cpp +// +// Original Author: Yi Zhou (yi_zhou@hp.com) +// +// Original Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) +// Sushma Fernandes, Hewlett-Packard Company +// (sushma_fernandes@hp.com) +// Carol Ann Krug Graves, Hewlett-Packard Company +// (carolann_graves@hp.com) +// +//%///////////////////////////////////////////////////////////////////////////// +package Indications; + +import java.util.Vector; +import java.util.HashMap; +import java.util.Iterator; +import org.pegasus.jmpi.CIMArgument; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMDataType; +import org.pegasus.jmpi.CIMDateTime; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMProperty; +import org.pegasus.jmpi.CIMQualifier; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.InstanceProvider; +import org.pegasus.jmpi.MethodProvider; +import org.pegasus.jmpi.OperationContext; +import org.pegasus.jmpi.SelectExp; +import org.pegasus.jmpi.SelectList; +import org.pegasus.jmpi.NonJoinExp; +import org.pegasus.jmpi.QueryExp; +import org.pegasus.jmpi.UnsignedInt16; +import org.pegasus.jmpi.UnsignedInt32; +import org.pegasus.jmpi.UnsignedInt64; +import org.pegasus.jmpi.UnsignedInt8; + +public class CommonInstanceProvider +{ + protected CommonInstanceProvider (String providerName, + String namespace, + String instanceClassname) + { + this.providerName = providerName; + this.namespace = namespace; + this.instanceClassname = instanceClassname; + } + + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::initialize: ch = " + ch); + } + + this.ch = ch; + } + + public void cleanup () + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::cleanup"); + } + } + + public CIMObjectPath createInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::createInstance: oc = " + oc); + System.err.println (providerName + "::createInstance: cop = " + cop); + System.err.println (providerName + "::createInstance: cimInstance = " + cimInstance); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + +//////if (DEBUG) +//////{ +////// System.err.println (providerName + "::createInstance: cop2 = " + cimInstance.getObjectPath ()); +////// Vector vectorKeyValuePairs = cimInstance.getKeyValuePairs (); +////// CIMObjectPath cop3 = new CIMObjectPath (cimInstance.getClassName (), +////// vectorKeyValuePairs); +////// System.err.println (providerName + "::createInstance: cop3 = " + cop3); +////// System.err.println (providerName + "::createInstance: vectorKeyValuePairs = " + vectorKeyValuePairs); +////// CIMClass cc = ch.getClass (cop, true); +////// Vector ccQualifiers = cc.getQualifiers (); +////// System.err.print (providerName + "::createInstance: cc.getQualifiers = "); +////// for (int i = 0; i < ccQualifiers.size (); i++) +////// { +////// System.err.print (((CIMQualifier)ccQualifiers.elementAt (i)).getName () + ", " + ((CIMQualifier)ccQualifiers.elementAt (i)).getValue ()); +////// if (i < ccQualifiers.size () - 1) +////// { +////// System.err.print (", "); +////// } +////// } +////// System.err.println ("}"); +////// +////// CIMObjectPath cop4 = validatePropertyTypeInstance (cimInstance, false); +////// System.err.println (providerName + "::createInstance: cop4 = " + cop4); +//////} + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + // Ensure that the instance contains the required keys + cop = validatePropertyTypeInstance (cimInstance, false); + + if (cop == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the property values are valid + testPropertyTypeInstance (cimInstance); + + // Ensure that the requested object does not exist + if (findCOPInPropertyTypes (cop) >= 0) + { + throw new CIMException (CIMException.CIM_ERR_ALREADY_EXISTS); + } + + if (fEnableModifications) + { + paths.addElement (cop); + instances.addElement (cimInstance); + + paths.sort (); + instances.sort (); + + return cop; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public CIMInstance getInstance (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + boolean localOnly, + String propertyList[]) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::getInstance: oc = " + oc); + System.err.println (providerName + "::getInstance: cop = " + cop); + System.err.println (providerName + "::getInstance: cimClass = " + cimClass); + System.err.println (providerName + "::getInstance: includeQualifiers = " + includeQualifiers); + System.err.println (providerName + "::getInstance: includeClassOrigin = " + includeClassOrigin); + System.err.println (providerName + "::getInstance: localOnly = " + localOnly); + System.err.println (providerName + "::getInstance: propertyList = " + propertyList); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + // Ensure that the keys are valid + if (!validatePropertyTypePath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInPropertyTypes (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + return (CIMInstance)instances.elementAt (index); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public void setInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance, + boolean includeQualifiers, + String[] propertyList) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::setInstance: oc = " + oc); + System.err.println (providerName + "::setInstance: cop = " + cop); + System.err.println (providerName + "::setInstance: cimInstance = " + cimInstance); + System.err.println (providerName + "::setInstance: includeQualifiers = " + includeQualifiers); + System.err.println (providerName + "::setInstance: propertyList = " + propertyList); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + // Ensure that the property values are valid + testPropertyTypeInstance (cimInstance); + + // Ensure that the keys are valid + if (!validatePropertyTypePath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInPropertyTypes (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + if (fEnableModifications) + { + paths.removeElementAt (index); + instances.removeElementAt (index); + + paths.addElement (cop); + instances.addElement (cimInstance); + + paths.sort (); + instances.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + } + + public void deleteInstance (OperationContext oc, + CIMObjectPath cop) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::deleteInstance: oc = " + oc); + System.err.println (providerName + "::deleteInstance: cop = " + cop); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + // Ensure that the keys are valid + if (!validatePropertyTypePath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInPropertyTypes (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + if (fEnableModifications) + { + paths.removeElementAt (index); + instances.removeElementAt (index); + + paths.sort (); + instances.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public Vector enumerateInstanceNames (OperationContext oc, + CIMObjectPath cop, + boolean deepInheritance, + CIMClass cimClass) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::enumerateInstanceNames: oc = " + oc); + System.err.println (providerName + "::enumerateInstanceNames: cop = " + cop); + System.err.println (providerName + "::enumerateInstanceNames: deepInheritance = " + deepInheritance); + System.err.println (providerName + "::enumerateInstanceNames: cimClass = " + cimClass); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + return paths; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public Vector enumerateInstances (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean deepInheritance, + boolean localOnly, + boolean includeQualifiers, + boolean includeClassOrigin, + String propertyList[]) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::enumerateInstances: oc = " + oc); + System.err.println (providerName + "::enumerateInstances: cop = " + cop); + System.err.println (providerName + "::enumerateInstances: cimClass = " + cimClass); + System.err.println (providerName + "::enumerateInstances: deepInheritance = " + deepInheritance); + System.err.println (providerName + "::enumerateInstances: localOnly = " + localOnly); + System.err.println (providerName + "::enumerateInstances: includeQualifiers = " + includeQualifiers); + System.err.println (providerName + "::enumerateInstances: includeClassOrigin = " + includeClassOrigin); + System.err.println (providerName + "::enumerateInstances: propertyList = " + propertyList); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + return instances; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public Vector execQuery (OperationContext oc, + CIMObjectPath cop, + String queryStatement, + String queryLanguage, + CIMClass cimClass) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::execQuery: oc = " + oc); + System.err.println (providerName + "::execQuery: cop = " + cop); + System.err.println (providerName + "::execQuery: queryStatement = " + queryStatement); + System.err.println (providerName + "::execQuery: queryLanguage = " + queryLanguage); + System.err.println (providerName + "::execQuery: cimClass = " + cimClass); + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + if (!queryLanguage.equals ("WQL")) + { + throw new CIMException (CIMException.CIM_ERR_NOT_SUPPORTED); + } + + SelectExp q = new SelectExp (queryStatement); + SelectList attrs = q.getSelectList (); + NonJoinExp from = (NonJoinExp)q.getFromClause (); + QueryExp where = q.getWhereClause (); + Vector instances = enumerateInstances (oc, + cop, + cimClass, + false, // deepInheritance, + true, // localOnly, + true, // includeQualifiers, + true, // includeClassOrigin, + null); + Vector ret = new Vector (); + + // filter the instances + for (int i = 0; i < instances.size (); i++) + { + if ( where == null + || where.apply ((CIMInstance)instances.elementAt (i)) + ) + { + ret.addElement (attrs.apply ((CIMInstance)instances.elementAt (i))); + } + } + + return ret; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public CIMValue invokeMethod (OperationContext oc, + CIMObjectPath cop, + String methodName, + Vector in, + Vector out) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: oc = " + oc); + System.err.println (providerName + "::invokeMethod: cop = " + cop); + System.err.println (providerName + "::invokeMethod: methodName = " + methodName); + System.err.print (providerName + "::invokeMethod: in = "); + if (in != null) + { + System.err.print ("{"); + for (int i = 0; i < in.size (); i++) + { + System.err.print (in.elementAt (i)); + if (i < in.size () - 1) + { + System.err.print (","); + } + } + System.err.println ("}"); + } + else + { + System.err.println ("null"); + } + System.err.print (providerName + "::invokeMethod: out = "); + if (out != null) + { + System.err.print ("{"); + for (int i = 0; i < out.size (); i++) + { + System.err.print (out.elementAt (i)); + if (i < out.size () - 1) + { + System.err.print (","); + } + } + System.err.println ("}"); + } + else + { + System.err.println ("null"); + } + } + + // Esure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (instanceClassname)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + + if (methodName.equalsIgnoreCase ("SendTestIndicationNormal")) + { + if (in == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else if (in.size () != 1) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + CIMProperty cp = (CIMProperty)in.elementAt (0); + + if (!cp.getName ().equalsIgnoreCase ("indicationSendCount")) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else if (cp.getType ().getType () != CIMDataType.UINT64) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + CIMValue cvIndicationSendCount = cp.getValue (); + UnsignedInt64 uiIndicationSendCount = (UnsignedInt64)cvIndicationSendCount.getValue (); + + if (DEBUG) + { + System.err.println ("JMPIExpIndicationProvider::invokeMethod: uiIndicationSendCount = " + uiIndicationSendCount); + } + + CIMClass ccIndication; + CIMInstance ciIndication; + CIMObjectPath copIndication; + + ccIndication = ch.getClass (cop, + true, + true, + true, + null); + ciIndication = ccIndication.newInstance (); + + ciIndication.setProperty ("InstanceId", new CIMValue (uiIndicationSendCount)); + ciIndication.setProperty ("PropertyString", new CIMValue ("Hello")); + + copIndication = createInstance (oc, + cop, + ciIndication); + + if (DEBUG) + { + System.err.println ("JMPIExpIndicationProvider::invokeMethod: deliverEvent: copIndication = " + copIndication); + System.err.println ("JMPIExpIndicationProvider::invokeMethod: deliverEvent: ciIndication = " + ciIndication); + } + + ch.deliverEvent (copIndication.getNameSpace (), + ciIndication); + + return new CIMValue (new UnsignedInt32 ("0")); + } + else if (methodName.equalsIgnoreCase ("enableModifications")) + { + if (in == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else if (in.size () != 1) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else + { + String name = null; + CIMValue value = null; + CIMDataType type = null; + Object o0 = in.elementAt (0); + + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: o0 class = " + o0.getClass ()); + } + if (o0 instanceof CIMArgument) + { + CIMArgument ca = (CIMArgument)in.elementAt (0); + + name = ca.getName (); + value = ca.getValue (); + type = ca.getType (); + } + else if (o0 instanceof CIMProperty) + { + CIMProperty cp = (CIMProperty)in.elementAt (0); + + name = cp.getName (); + value = cp.getValue (); + type = cp.getType (); + } + + if (!name.equalsIgnoreCase ("fState")) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else if (type.getType () != CIMDataType.BOOLEAN) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + Boolean fNewState = (Boolean)value.getValue (); + + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: Setting fEnableModifications to " + fNewState); + } + + fEnableModifications = fNewState.booleanValue (); + + return new CIMValue (new Boolean (true)); + } + } + else if (methodName.equalsIgnoreCase ("resetProvider")) + { + if ( in == null + || in.size () == 0 + ) + { + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: resetting the provider's state!"); + } + + paths = new SortableVector (new CIMObjectPathComparer ()); + instances = new SortableVector (new CIMInstanceComparer ()); + fEnableModifications = false; + + initialize (ch); + + return new CIMValue (new Boolean (true)); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_METHOD_NOT_AVAILABLE); + } + } + + private boolean validatePropertyTypePath (CIMObjectPath cop) + { + Vector keys = cop.getKeys (); + + if (keys.size () != INDICATION_KEYS.length) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypePath: Bad1: " + keys.size () + " != " + INDICATION_KEYS.length); + } + + return false; + } + for (int i = 0, is = INDICATION_KEYS.length; i < is; i++) + { + boolean fFound = false; + + for (int j = 0, js = keys.size (); j < js; j++) + { + CIMProperty cp = (CIMProperty)keys.elementAt (j); + + if (INDICATION_KEYS[i].equalsIgnoreCase (cp.getName ())) + { + fFound = true; + } + } + + if (!fFound) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypePath: Bad2: " + INDICATION_KEYS[i] + " not in " + keys); + } + + return false; + } + } + + return true; + } + + private CIMObjectPath validatePropertyTypeInstance (CIMInstance cimInstance, + boolean fStrict) + { + if (cimInstance.getPropertyCount () != INDICATION_PROPS.length) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypeInstance: Bad1: " + cimInstance.getPropertyCount () + " != " + INDICATION_PROPS.length); + } + + if (fStrict) + { + return null; + } + } + for (int i = 0, is = INDICATION_PROPS.length; i < is; i++) + { + CIMProperty cp = cimInstance.getProperty (INDICATION_PROPS[i]); + if (cp == null) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypeInstance: Bad2: " + INDICATION_PROPS[i]); + } + + if (fStrict) + { + return null; + } + } + } + + CIMObjectPath ret = new CIMObjectPath (instanceClassname, + namespace); + + for (int i = 0, is = INDICATION_KEYS.length; i < is; i++) + { + CIMProperty cp = cimInstance.getProperty (INDICATION_KEYS[i]); + + if (cp != null) + { + ret.addKey (INDICATION_KEYS[i], + cp.getValue ()); + } + else + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypeInstance: Bad3: " + INDICATION_KEYS[i]); + } + + return null; + } + } + + return ret; + } + + private int findCOPInPropertyTypes (CIMObjectPath cop1) + { + String path1 = cop1.toString (); + + for (int i = 0; i < paths.size (); i++) + { + CIMObjectPath cop2 = (CIMObjectPath)paths.elementAt (i); + String path2 = cop2.toString (); + + if (DEBUG) + { + System.err.println (providerName + "::findCOPInPropertyTypes: \"" + path1 + "\" == \"" + path2 + "\""); + } + + if (path2.equalsIgnoreCase (path1)) + { + if (DEBUG) + { + System.err.println (providerName + "::findCOPInPropertyTypes: found!"); + } + + return i; + } + } + + return -1; + } + + private int findCOPInPropertyTypesNew (CIMObjectPath cop1) + { + HashMap hashPaths = new HashMap (); + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: comparing \"" + cop1 + "\""); + } + + // Iterate through each ObjectPath in our ObjectPaths + for (int i = 0; i < paths.size (); i++) + { + CIMObjectPath cop2 = (CIMObjectPath)paths.elementAt (i); + Vector keysCop1 = cop1.getKeys (); + HashMap hashCop1 = new HashMap (); + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: to \"" + cop2 + "\""); + } + + // Iterate though each property in the ObjectPath + for (int idxPath = 0; idxPath < keysCop1.size (); idxPath++) + { + CIMProperty cp = (CIMProperty)keysCop1.elementAt (idxPath); + String cpKeyValue = cp.getValue ().toString (); + String copKeyValue = cop2.getKeyValue (cp.getName ()); + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: cpKeyValue \"" + cpKeyValue + "\""); + System.out.println (providerName + "::findCOPInPropertyTypesNew: copKeyValue \"" + copKeyValue + "\""); + } + + // Compare the property values and save it for later + hashCop1.put (cp.toString (), new Boolean (cpKeyValue.equals (copKeyValue))); + } + + // Save the result of all of the property comparisons + hashPaths.put (cop2, hashCop1); + } + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: hashPaths = " + hashPaths); + } + + Iterator itrHashPaths = hashPaths.keySet ().iterator (); + + // Iterate through all of our results + while (itrHashPaths.hasNext ()) + { + Object key = itrHashPaths.next (); + HashMap hash = (HashMap)hashPaths.get (key); + boolean found = true; + Iterator itrHash = hash.values ().iterator (); + + while (itrHash.hasNext ()) + { + if (!((Boolean)itrHash.next ()).booleanValue ()) + { + found = false; + } + } + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: found = " + found + ", key = " + key); + } + + // Were they all equal? + if (found) + { + // Return the index of it + return paths.indexOf (key); + } + } + + return -1; + } + + private void testPropertyTypeInstance (CIMInstance instanceObject) + throws CIMException + { + Vector properties = instanceObject.getProperties (); + int iPropertyCount = properties.size (); + + for (int j = 0; j < iPropertyCount; j++) + { + CIMProperty property = (CIMProperty)properties.elementAt (j); + String propertyName = property.getName (); + CIMValue propertyValue = property.getValue (); + Object value = propertyValue.getValue (); + int type = property.getType ().getType (); + + switch (type) + { + case CIMDataType.UINT8: + { + if (!(value instanceof UnsignedInt8)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt8)value).intValue () >= 255) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.UINT16: + { + if (!(value instanceof UnsignedInt16)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt16)value).intValue () >= 10000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.UINT32: + { + if (!(value instanceof UnsignedInt32)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt32)value).intValue () >= 10000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.UINT64: + { + if (!(value instanceof UnsignedInt64)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt64)value).longValue () >= 1000000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT8: + { + if (!(value instanceof Byte)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Byte)value).intValue () <= -120) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT16: + { + if (!(value instanceof Short)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Short)value).intValue () < -10000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT32: + { + if (!(value instanceof Integer)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Integer)value).intValue () <= -10000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT64: + { + if (!(value instanceof Long)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Long)value).intValue () <= -1000000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.REAL32: + { + if (!(value instanceof Float)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Float)value).floatValue () >= 10000000.32) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.REAL64: + { + if (!(value instanceof Double)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Double)value).doubleValue () >= 1000000000.64) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + default: + { + break; + } + } + } + } + + private interface Compare + { + abstract boolean lessThan (Object lhs, Object rhs); + abstract boolean lessThanOrEqual (Object lhs, Object rhs); + } + + private class SortableVector + extends Vector + { + private Compare compare; + + public SortableVector (Compare compare) + { + this.compare = compare; + } + + public void sort () + { + quickSort (0, size() - 1); + } + + private void quickSort (int left, int right) + { + if (right > left) + { + Object o1 = elementAt (right); + int i = left - 1; + int j = right; + + while (true) + { + while (compare.lessThan (elementAt (++i), o1)) + ; + + while (j > 0) + if(compare.lessThanOrEqual (elementAt (--j), o1)) + break; + + if (i >= j) + break; + + swap (i, j); + } + + swap (i , right); + quickSort (left, i - 1); + quickSort (i + 1, right); + } + } + + private void swap (int loc1, int loc2) + { + Object tmp = elementAt(loc1); + + setElementAt (elementAt (loc2), loc1); + setElementAt (tmp, loc2); + } + } + + private class CIMInstanceComparer + implements Compare + { + private int getInstanceId (Object o) + { + try + { + CIMInstance ci = (CIMInstance)o; + CIMProperty cp = ci.getProperty ("InstanceId"); + UnsignedInt64 id = (UnsignedInt64)cp.getValue ().getValue (); + + return id.intValue (); + } + catch (Exception e) + { + return 0; + } + } + + public boolean lessThan (Object lhs, Object rhs) + { + return getInstanceId (lhs) < getInstanceId (rhs); + } + + public boolean lessThanOrEqual (Object lhs, Object rhs) + { + return getInstanceId (lhs) <= getInstanceId (rhs); + } + } + + private class CIMObjectPathComparer + implements Compare + { + private int getInstanceId (Object o) + { + try + { + CIMObjectPath cop = (CIMObjectPath)o; + String value = cop.getKeyValue ("InstanceId"); + UnsignedInt64 id = new UnsignedInt64 (value); + + return id.intValue (); + } + catch (Exception e) + { + return 0; + } + } + + public boolean lessThan (Object lhs, Object rhs) + { + return getInstanceId (lhs) < getInstanceId (rhs); + } + + public boolean lessThanOrEqual (Object lhs, Object rhs) + { + return getInstanceId (lhs) <= getInstanceId (rhs); + } + } + + // + private String providerName = ""; + private String namespace = ""; + private String instanceClassname = ""; + private CIMOMHandle ch = null; + private SortableVector paths = new SortableVector (new CIMObjectPathComparer ()); + private SortableVector instances = new SortableVector (new CIMInstanceComparer ()); + private boolean fEnableModifications = true; + private final boolean DEBUG = true; + + private final String[] INDICATION_KEYS = { + "InstanceId" + }; + private final String[] INDICATION_PROPS = { + "InstanceId", + "PropertyString", + }; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.java new file mode 100644 index 000000000..4ee2e3a37 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.java @@ -0,0 +1,336 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Mark Hamzy, IBM (hamzy@us.ibm.com) +// +// Modified By: Mark Hamzy, IBM (hamzy@us.ibm.com) +// +//%///////////////////////////////////////////////////////////////////////////// +package Indications; + +import java.util.Vector; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.EventProvider2; +import org.pegasus.jmpi.InstanceProvider2; +import org.pegasus.jmpi.MethodProvider2; +import org.pegasus.jmpi.OperationContext; +import org.pegasus.jmpi.SelectExp; + +public class JMPIExpIndicationProvider + implements InstanceProvider2, + MethodProvider2, + EventProvider2 +{ + private CommonInstanceProvider cip = null; + private final boolean DEBUG = true; + + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + } + + cip = new CommonInstanceProvider ("JMPIExpIndicationProvider", + "root/SampleProvider", + "JMPIExpIndication"); + + if (cip != null) + { + cip.initialize (ch); + } + } + + public void cleanup () + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + + cip = null; + } + } + + public CIMObjectPath createInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + return cip.createInstance (oc, + cop, + cimInstance); + } + else + { + return null; + } + } + + public CIMInstance getInstance (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + String propertyList[]) + throws CIMException + { + if (cip != null) + { + return cip.getInstance (oc, + cop, + cimClass, + includeQualifiers, + includeClassOrigin, + true, // localOnly + propertyList); + } + else + { + return null; + } + } + + public void setInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + cip.setInstance (oc, + cop, + cimInstance, + true, // includeQualifiers, + null); // propertyList); + } + } + + public void deleteInstance (OperationContext oc, + CIMObjectPath cop) + throws CIMException + { + if (cip != null) + { + cip.deleteInstance (oc, + cop); + } + } + + public Vector enumerateInstanceNames (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + return cip.enumerateInstanceNames (oc, + cop, + false, // deepInheritance, + cimClass); + } + else + { + return null; + } + } + + public Vector enumerateInstances (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + String propertyList[]) + throws CIMException + { + if (cip != null) + { + return cip.enumerateInstances (oc, + cop, + cimClass, + false, // deepInheritance, + true, // localOnly, + includeQualifiers, + includeClassOrigin, + propertyList); + } + else + { + return null; + } + } + + public Vector execQuery (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + String queryStatement, + String queryLanguage) + throws CIMException + { + if (cip != null) + { + return cip.execQuery (oc, + cop, + queryStatement, + queryLanguage, + cimClass); + } + else + { + return null; + } + } + + public CIMValue invokeMethod (OperationContext oc, + CIMObjectPath cop, + String methodName, + Vector in, + Vector out) + throws CIMException + { + if (cip != null) + { + return cip.invokeMethod (oc, + cop, + methodName, + in, + out); + } + else + { + return null; + } + } + + public void authorizeFilter (OperationContext oc, + SelectExp filter, + String eventType, + CIMObjectPath classPath, + String owner) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIExpIndicationProvider::authorizeFilter: oc = " + oc); + System.err.println ("JMPIExpIndicationProvider::authorizeFilter: filter = " + filter); + System.err.println ("JMPIExpIndicationProvider::authorizeFilter: eventType = " + eventType); + System.err.println ("JMPIExpIndicationProvider::authorizeFilter: classPath = " + classPath); + System.err.println ("JMPIExpIndicationProvider::authorizeFilter: owner = " + owner); + if (filter != null) + { + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectString () = " + filter.getSelectString ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getWhereClause () = " + filter.getWhereClause ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectList () = " + filter.getSelectList ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getFromClause () = " + filter.getFromClause ()); + } + } + } + + public boolean mustPoll (OperationContext oc, + SelectExp filter, + String eventType, + CIMObjectPath classPath) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIExpIndicationProvider::mustPoll: oc = " + oc); + System.err.println ("JMPIExpIndicationProvider::mustPoll: filter = " + filter); + System.err.println ("JMPIExpIndicationProvider::mustPoll: eventType = " + eventType); + System.err.println ("JMPIExpIndicationProvider::mustPoll: classPath = " + classPath); + if (filter != null) + { + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectString () = " + filter.getSelectString ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getWhereClause () = " + filter.getWhereClause ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectList () = " + filter.getSelectList ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getFromClause () = " + filter.getFromClause ()); + } + } + + return false; + } + + public void activateFilter (OperationContext oc, + SelectExp filter, + String eventType, + CIMObjectPath classPath, + boolean firstActivation) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIExpIndicationProvider::activateFilter: oc = " + oc); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter = " + filter); + System.err.println ("JMPIExpIndicationProvider::activateFilter: eventType = " + eventType); + System.err.println ("JMPIExpIndicationProvider::activateFilter: classPath = " + classPath); + System.err.println ("JMPIExpIndicationProvider::activateFilter: firstActivation = " + firstActivation); + if (filter != null) + { + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectString () = " + filter.getSelectString ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getWhereClause () = " + filter.getWhereClause ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectList () = " + filter.getSelectList ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getFromClause () = " + filter.getFromClause ()); + } + } + } + + public void deActivateFilter (OperationContext oc, + SelectExp filter, + String eventType, + CIMObjectPath classPath, + boolean lastActivation) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIExpIndicationProvider::deActivateFilter: oc = " + oc); + System.err.println ("JMPIExpIndicationProvider::deActivateFilter: filter = " + filter); + System.err.println ("JMPIExpIndicationProvider::deActivateFilter: eventType = " + eventType); + System.err.println ("JMPIExpIndicationProvider::deActivateFilter: classPath = " + classPath); + System.err.println ("JMPIExpIndicationProvider::deActivateFilter: lastActivation = " + lastActivation); + if (filter != null) + { + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectString () = " + filter.getSelectString ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getWhereClause () = " + filter.getWhereClause ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getSelectList () = " + filter.getSelectList ()); + System.err.println ("JMPIExpIndicationProvider::activateFilter: filter.getFromClause () = " + filter.getFromClause ()); + } + } + } +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.mof new file mode 100644 index 000000000..813b7f458 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProvider.mof @@ -0,0 +1,52 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +// ================================================================== +// JMPIExpIndication +// ================================================================== +[ Version ("2.2.0"), + Description ("A sample indication"), + provider("JMPIExpIndicationProvider") +] +class JMPIExpIndication : CIM_Indication +{ + [ Key, + Description ("An identifier that uniquely identifies each instance of the JMPIExpIndication hierarchy.") + ] + uint64 InstanceId; + + [ Maxlen (256), + Description ("a string property of JMPIExpIndication") + ] + string PropertyString; + + uint32 SendTestIndicationNormal (uint64 indicationSendCount); +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProviderR.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProviderR.mof new file mode 100644 index 000000000..5478d01a3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/JMPIExpIndicationProviderR.mof @@ -0,0 +1,60 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +instance of PG_ProviderModule +{ + Name = "JMPIExpIndicationProviderModule"; + Location = "JMPIExpIndicationProvider.jar:Indications/JMPIExpIndicationProvider"; + Vendor = "OpenPegasus"; + Version = "2.0.0"; + InterfaceType = "JMPIExperimental"; + InterfaceVersion = "0.0.1"; +}; + +instance of PG_Provider +{ + ProviderModuleName = "JMPIExpIndicationProviderModule"; + Name = "JMPIExpIndicationProvider"; +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPIExpIndicationProviderModule"; + ProviderName = "JMPIExpIndicationProvider"; + CapabilityID = "JMPIExpIndicationProvider"; + ClassName = "JMPIExpIndication"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2, 4, 5 }; + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/Makefile new file mode 100644 index 000000000..76e5ab47f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/Makefile @@ -0,0 +1,99 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/mak/configschema.mak +include $(PEGASUS_ROOT)/test/config.mak + +.SUFFIXES: .java .class .jar + +.java.class: +# Note: .. included in path to compile package helper classes if necessary + javac -classpath $(PEGASUS_HOME)/lib/JMPIImpl.jar:.. $*.java + +NAMESPACE = root/SampleProvider +PACKAGEDIR = Indications/ +JAR1 = JMPIExpIndicationProvider.jar +JAR1CLASSES = \ + JMPIExpIndicationProvider.class +EXTRAJAR1CLASSES = \ + CommonInstanceProvider.class \ + CommonInstanceProvider\$$1.class \ + CommonInstanceProvider\$$CIMInstanceComparer.class \ + CommonInstanceProvider\$$CIMObjectPathComparer.class \ + CommonInstanceProvider\$$Compare.class \ + CommonInstanceProvider\$$SortableVector.class +JARS = $(JAR1) + +LOCAL_CLEAN_TARGET = \ + $(JAR1CLASSES) $(EXTRAJAR1CLASSES) $(addprefix $(PEGASUS_HOME)/lib/,$(JAR1)) + +all build: $(addprefix $(PEGASUS_HOME)/lib/,$(JARS)) + $(MAKE) -f TestIndicationsListener.Makefile + +depend: + +clean: + $(RM) $(LOCAL_CLEAN_TARGET) + $(MAKE) -f TestIndicationsListener.Makefile clean + +repository: cimmofl_repository + +cimmofl_repository: + @$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR1)) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR1)).mof + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR1))R.mof + +cimmof_repository: + @$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR1)) into $(NAMESPACE) namespace ... + @cimmof -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR1)).mof + @cimmof -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR1))R.mof + +poststarttests: + +$(PEGASUS_HOME)/lib/$(JAR1): $(JAR1CLASSES) CommonInstanceProvider.class + jar -cf $@ $(addprefix -C .. $(PACKAGEDIR),$^) $(addprefix -C .. $(PACKAGEDIR),$(EXTRAJAR1CLASSES)) + +#include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.Makefile new file mode 100644 index 000000000..f74996ed6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.Makefile @@ -0,0 +1,51 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ROOT = $(PEGASUS_ROOT) +DIR = Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Indication + +include $(ROOT)/mak/config.mak + +PROGRAM = TestIndicationsListener +SOURCES = TestIndicationsListener.cpp +EXTRA_CXX_FLAGS = +LOCAL_DEFINES = +SYS_INCLUDES = +EXTRA_INCLUDES = +EXTRA_LINK_FLAGS = +LIBRARIES = \ + peglistener \ + pegclient \ + pegexportserver \ + pegcommon +LOCAL_CLEAN_TARGET = + +include $(ROOT)/mak/program.mak +include $(ROOT)/mak/test.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.cpp b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.cpp new file mode 100644 index 000000000..da6a44369 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestIndicationsListener.cpp @@ -0,0 +1,89 @@ +#include +#include + +PEGASUS_USING_PEGASUS; +PEGASUS_USING_STD; + +class MyIndicationConsumer : public CIMIndicationConsumer +{ +public: + MyIndicationConsumer () + { + } + + ~MyIndicationConsumer () + { + } + + void consumeIndication (const OperationContext& context, + const String& url, + const CIMInstance& indicationInstance) + { + Uint32 ui32Index = indicationInstance.findProperty ("InstanceId"); + Uint64 ui64Number = 0; + + if (ui32Index != PEG_NOT_FOUND) + { + try + { + indicationInstance.getProperty (ui32Index).getValue ().get (ui64Number); + } + catch (Exception& e) + { + } + } + + cout << "! " + << url + << " ! " + << indicationInstance.getClassName ().getString () + << " ! " + << ui64Number + << endl; + } + +private: +}; + +int main (int argc, char *argv[]) +{ + Uint32 portNumber = 2005; + CIMListener listener (portNumber); + MyIndicationConsumer *consumer = new MyIndicationConsumer (); + + // Add our consumer + listener.addConsumer (consumer); + + // Finish starting the CIMListener + try + { + cout << "+++++ Starting the CIMListener at destination\n" + << " http://localhost:2005/TestIndicationStressTest" + << endl; + + // Start the listener + listener.start (); + } + catch (BindFailedException &bfe) + { + // Got a bind error. The port is probably already in use. + // Put out a message and fail. + cerr << endl + << "==>WARNING: unable to bind to listener port 2005" + << endl; + cerr << "The listener port may be in use." << endl; + + throw; + } + + cout << "Press any key to terminate..." << endl; + + cin.get (); + + listener.stop (); + listener.removeConsumer (consumer); + + delete consumer; + + return 0; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.Makefile new file mode 100644 index 000000000..e97abe729 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.Makefile @@ -0,0 +1,50 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ROOT = $(PEGASUS_ROOT) +DIR = Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Indication + +include $(ROOT)/mak/config.mak + +PROGRAM = TestWQL +SOURCES = TestWQL.cpp +EXTRA_CXX_FLAGS = +LOCAL_DEFINES = +SYS_INCLUDES = +EXTRA_INCLUDES = +EXTRA_LINK_FLAGS = +LIBRARIES = \ + pegwql \ + pegclient \ + pegcommon +LOCAL_CLEAN_TARGET = + +include $(ROOT)/mak/program.mak +include $(ROOT)/mak/test.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.cpp b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.cpp new file mode 100644 index 000000000..e6b666b90 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Indications/TestWQL.cpp @@ -0,0 +1,108 @@ +#include +#include +#include + +#include + +PEGASUS_USING_PEGASUS; +PEGASUS_USING_STD; + +int +main (int argc, char *argv[]) +{ + CIMClient client; + + try + { + client.connectLocal (); + } + catch (const Exception &e) + { + cerr << "Caught: " << e.getMessage () << endl; + } + + Array instances; + + try + { + instances = client.enumerateInstances (CIMNamespaceName ("root/cimv2"), + CIMName ("PG_UnixProcess"), + true, // deepInheritance + false, // localOnly + false, // includeQualifiers + true); // includeClassOrigin + + cout << "instances.size () = " << instances.size () << endl; + } + catch (const Exception &e) + { + cerr << "Caught: " << e.getMessage () << endl; + } + + String queryLanguage = "WQL"; + String query = "SELECT CSName, OSName FROM PG_UnixProcess WHERE Handle = \"2037\""; + WQLSelectStatement *stmt = new WQLSelectStatement (queryLanguage, query); + + try + { + WQLParser::parse (query, *stmt); + } + catch (const Exception &e) + { + cerr << "Caught: " << e.getMessage () << endl; + } + + cout << "stmt->getQueryLanguage () " << stmt->getQueryLanguage () << endl; + cout << "stmt->getQuery () " << stmt->getQuery () << endl; + cout << "stmt->getAllProperties () " << stmt->getAllProperties () << endl; + + // public String getSelectString () + + CIMPropertyList cplSelect = stmt->getSelectPropertyList (); + + cout << "cplSelect.size () = " << cplSelect.size () << endl; + + for (Uint32 i = 0; i < cplSelect.size (); i++) + { + cout << "cplSelect[" << i << "] = " << cplSelect[i].getString () << endl; + } + + // public SelectList getSelectList () + // public FromExp getFromClause () + // public QueryExp getWhereClause () + + CIMPropertyList cplWhere = stmt->getWherePropertyList (); + + cout << "cplWhere.size () = " << cplWhere.size () << endl; + + for (Uint32 i = 0; i < cplWhere.size (); i++) + { + cout << "cplWhere[" << i << "] = " << cplWhere[i].getString () << endl; + } + + for (Uint32 i = 0; i < instances.size (); i++) + { +//////cout << "evaluate (" +////// << instances[i].getPath ().toString () +////// << ") = " +////// << stmt->evaluate (instances[i]) +////// << endl; + + if (stmt->evaluate (instances[i])) + { + CIMInstance selectedInstance = instances[i].clone (); + + stmt->applyProjection (selectedInstance, false); + + cout << selectedInstance.getPath ().toString () << endl; + } + } + + stmt->print (); + + delete stmt; + + client.disconnect (); + + return 0; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/CommonInstanceProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/CommonInstanceProvider.java new file mode 100644 index 000000000..36fb9b586 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/CommonInstanceProvider.java @@ -0,0 +1,1486 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Mark Hamzy, hamzy@us.ibm.com +// +// Modified By: Mark Hamzy, hamzy@us.ibm.com +// +// +// This code is based on TestPropertyTypes.cpp +// +// Original Author: Yi Zhou (yi_zhou@hp.com) +// +// Original Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) +// Sushma Fernandes, Hewlett-Packard Company +// (sushma_fernandes@hp.com) +// Carol Ann Krug Graves, Hewlett-Packard Company +// (carolann_graves@hp.com) +// +//%///////////////////////////////////////////////////////////////////////////// +package Instances; + +import java.util.Vector; +import java.util.HashMap; +import java.util.Iterator; +import org.pegasus.jmpi.CIMArgument; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMDataType; +import org.pegasus.jmpi.CIMDateTime; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMProperty; +import org.pegasus.jmpi.CIMQualifier; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.InstanceProvider; +import org.pegasus.jmpi.MethodProvider; +import org.pegasus.jmpi.OperationContext; +import org.pegasus.jmpi.SelectExp; +import org.pegasus.jmpi.SelectList; +import org.pegasus.jmpi.NonJoinExp; +import org.pegasus.jmpi.QueryExp; +import org.pegasus.jmpi.UnsignedInt16; +import org.pegasus.jmpi.UnsignedInt32; +import org.pegasus.jmpi.UnsignedInt64; +import org.pegasus.jmpi.UnsignedInt8; + +public class CommonInstanceProvider +{ + protected CommonInstanceProvider (String providerName, + String namespace, + String testElementClassname, + String propertyTypesClassname) + { + this.providerName = providerName; + this.namespace = namespace; + this.testElementClassname = testElementClassname; + this.propertyTypesClassname = propertyTypesClassname; + } + + public void initialize (CIMOMHandle handle) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::initialize: handle = " + handle); + } + + this.handle = handle; + + CIMInstance instance1 = new CIMInstance (propertyTypesClassname); + CIMObjectPath cop1 = new CIMObjectPath (propertyTypesClassname, + namespace); + + instance1.setProperty ("CreationClassName", + new CIMValue (new String (propertyTypesClassname))); + cop1.addKey ("CreationClassName", + new CIMValue (new String (propertyTypesClassname))); + instance1.setProperty ("InstanceId", + new CIMValue (new UnsignedInt64 ("1"))); + cop1.addKey ("InstanceId", + new CIMValue (new UnsignedInt64 ("1"))); + instance1.setProperty ("PropertyString", + new CIMValue (new String (providerName + "_Instance1"))); + instance1.setProperty ("PropertyUint8", + new CIMValue (new UnsignedInt8 ((short)120))); + instance1.setProperty ("PropertyUint16", + new CIMValue (new UnsignedInt16 ((int)1600))); + instance1.setProperty ("PropertyUint32", + new CIMValue (new UnsignedInt32 ((long)3200))); + instance1.setProperty ("PropertyUint64", + new CIMValue (new UnsignedInt64 ("6400"))); + instance1.setProperty ("PropertySint8", + new CIMValue (new Byte ((byte)-119))); + instance1.setProperty ("PropertySint16", + new CIMValue (new Short ((short)-1600))); + instance1.setProperty ("PropertySint32", + new CIMValue (new Integer (-3200))); + instance1.setProperty ("PropertySint64", + new CIMValue (new Long (-6400))); + instance1.setProperty ("PropertyBoolean", + new CIMValue (new Boolean (true))); + instance1.setProperty ("PropertyReal32", + new CIMValue (new Float (1.12345670123))); + instance1.setProperty ("PropertyReal64", + new CIMValue (new Double (1.12345678906543210123))); + instance1.setProperty ("PropertyDatetime", + new CIMValue (new CIMDateTime ("20010515104354.000000:000"))); + + instancesPropertyTypes.addElement (instance1); + pathsPropertyTypes.addElement (cop1); + + CIMInstance instance2 = new CIMInstance (propertyTypesClassname); + CIMObjectPath cop2 = new CIMObjectPath (propertyTypesClassname, + namespace); + + instance2.setProperty ("CreationClassName", + new CIMValue (new String (propertyTypesClassname))); + cop2.addKey ("CreationClassName", + new CIMValue (new String (propertyTypesClassname))); + instance2.setProperty ("InstanceId", + new CIMValue (new UnsignedInt64 ("2"))); + cop2.addKey ("InstanceId", + new CIMValue (new UnsignedInt64 ("2"))); + instance2.setProperty ("PropertyString", + new CIMValue (new String (providerName + "_Instance2"))); + instance2.setProperty ("PropertyUint8", + new CIMValue (new UnsignedInt8 ((short)122))); + instance2.setProperty ("PropertyUint16", + new CIMValue (new UnsignedInt16 ((int)1602))); + instance2.setProperty ("PropertyUint32", + new CIMValue (new UnsignedInt32 ((long)3202))); + instance2.setProperty ("PropertyUint64", + new CIMValue (new UnsignedInt64 ("6402"))); + instance2.setProperty ("PropertySint8", + new CIMValue (new Byte ((byte)-117))); + instance2.setProperty ("PropertySint16", + new CIMValue (new Short ((short)-1602))); + instance2.setProperty ("PropertySint32", + new CIMValue (new Integer (-3202))); + instance2.setProperty ("PropertySint64", + new CIMValue (new Long (-6402))); + instance2.setProperty ("PropertyBoolean", + new CIMValue (new Boolean (false))); + instance2.setProperty ("PropertyReal32", + new CIMValue (new Float (2.12345670123))); + instance2.setProperty ("PropertyReal64", + new CIMValue (new Double (2.12345678906543210123))); + instance2.setProperty ("PropertyDatetime", + new CIMValue (new CIMDateTime ("20010515104354.000000:000"))); + + instancesPropertyTypes.addElement (instance2); + pathsPropertyTypes.addElement (cop2); + + pathsPropertyTypes.sort (); + instancesPropertyTypes.sort (); + } + + public void cleanup () + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::cleanup"); + } + } + + public CIMObjectPath createInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::createInstance: oc = " + oc); + System.err.println (providerName + "::createInstance: cop = " + cop); + System.err.println (providerName + "::createInstance: cimInstance = " + cimInstance); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + +//////if (DEBUG) +//////{ +////// System.err.println (providerName + "::createInstance: cop2 = " + cimInstance.getObjectPath ()); +////// Vector vectorKeyValuePairs = cimInstance.getKeyValuePairs (); +////// CIMObjectPath cop3 = new CIMObjectPath (cimInstance.getClassName (), +////// vectorKeyValuePairs); +////// System.err.println (providerName + "::createInstance: cop3 = " + cop3); +////// System.err.println (providerName + "::createInstance: vectorKeyValuePairs = " + vectorKeyValuePairs); +////// CIMClass cc = handle.getClass (cop, true); +////// Vector ccQualifiers = cc.getQualifiers (); +////// System.err.print (providerName + "::createInstance: cc.getQualifiers = "); +////// for (int i = 0; i < ccQualifiers.size (); i++) +////// { +////// System.err.print (((CIMQualifier)ccQualifiers.elementAt (i)).getName () + ", " + ((CIMQualifier)ccQualifiers.elementAt (i)).getValue ()); +////// if (i < ccQualifiers.size () - 1) +////// { +////// System.err.print (", "); +////// } +////// } +////// System.err.println ("}"); +////// +////// CIMObjectPath cop4 = validatePropertyTypeInstance (cimInstance, false); +////// System.err.println (providerName + "::createInstance: cop4 = " + cop4); +//////} + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + // Ensure that the instance contains the required keys + cop = validateTestElementInstance (cimInstance, false); + + if (cop == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the property values are valid + testTestElementInstance (cimInstance); + + // Determine if a property exists in the class + if (cimInstance.getProperty ("PropertyUint8") == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the requested object does not exist + if (findCOPInTestElements (cop) >= 0) + { + throw new CIMException (CIMException.CIM_ERR_ALREADY_EXISTS); + } + + if (fEnableModifications) + { + pathsTestElements.addElement (cop); + instancesTestElements.addElement (cimInstance); + + pathsTestElements.sort (); + instancesTestElements.sort (); + + return cop; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + // Ensure that the instance contains the required keys + cop = validatePropertyTypeInstance (cimInstance, false); + + if (cop == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the property values are valid + testPropertyTypeInstance (cimInstance); + + // Determine if a property exists in the class + if (cimInstance.getProperty ("PropertyUint8") == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the requested object does not exist + if (findCOPInPropertyTypes (cop) >= 0) + { + throw new CIMException (CIMException.CIM_ERR_ALREADY_EXISTS); + } + + if (fEnableModifications) + { + pathsPropertyTypes.addElement (cop); + instancesPropertyTypes.addElement (cimInstance); + + pathsPropertyTypes.sort (); + instancesPropertyTypes.sort (); + + return cop; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public CIMInstance getInstance (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + boolean localOnly, + String propertyList[]) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::getInstance: oc = " + oc); + System.err.println (providerName + "::getInstance: cop = " + cop); + System.err.println (providerName + "::getInstance: cimClass = " + cimClass); + System.err.println (providerName + "::getInstance: includeQualifiers = " + includeQualifiers); + System.err.println (providerName + "::getInstance: includeClassOrigin = " + includeClassOrigin); + System.err.println (providerName + "::getInstance: localOnly = " + localOnly); + System.err.println (providerName + "::getInstance: propertyList = " + propertyList); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + // Ensure that the keys are valid + if (!validateTestElementPath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInTestElements (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + return (CIMInstance)instancesTestElements.elementAt (index); + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + // Ensure that the keys are valid + if (!validatePropertyTypePath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInPropertyTypes (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + return (CIMInstance)instancesPropertyTypes.elementAt (index); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public void setInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance, + boolean includeQualifiers, + String[] propertyList) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::setInstance: oc = " + oc); + System.err.println (providerName + "::setInstance: cop = " + cop); + System.err.println (providerName + "::setInstance: cimInstance = " + cimInstance); + System.err.println (providerName + "::setInstance: includeQualifiers = " + includeQualifiers); + System.err.println (providerName + "::setInstance: propertyList = " + propertyList); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + // Ensure that the property values are valid + testTestElementInstance (cimInstance); + + // Ensure that the keys are valid + if (!validateTestElementPath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInTestElements (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + if (fEnableModifications) + { + pathsTestElements.removeElementAt (index); + instancesTestElements.removeElementAt (index); + + pathsTestElements.addElement (cop); + instancesTestElements.addElement (cimInstance); + + pathsTestElements.sort (); + instancesTestElements.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + // Ensure that the property values are valid + testPropertyTypeInstance (cimInstance); + + // Ensure that the keys are valid + if (!validatePropertyTypePath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInPropertyTypes (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + if (fEnableModifications) + { + pathsPropertyTypes.removeElementAt (index); + instancesPropertyTypes.removeElementAt (index); + + pathsPropertyTypes.addElement (cop); + instancesPropertyTypes.addElement (cimInstance); + + pathsPropertyTypes.sort (); + instancesPropertyTypes.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + } + + public void deleteInstance (OperationContext oc, + CIMObjectPath cop) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::deleteInstance: oc = " + oc); + System.err.println (providerName + "::deleteInstance: cop = " + cop); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + // Ensure that the keys are valid + if (!validateTestElementPath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInTestElements (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + if (fEnableModifications) + { + pathsTestElements.removeElementAt (index); + instancesTestElements.removeElementAt (index); + + pathsTestElements.sort (); + instancesTestElements.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + // Ensure that the keys are valid + if (!validatePropertyTypePath (cop)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + // Ensure that the request object exists + int index = findCOPInPropertyTypes (cop); + + if (index < 0) + { + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + } + + if (fEnableModifications) + { + pathsPropertyTypes.removeElementAt (index); + instancesPropertyTypes.removeElementAt (index); + + pathsPropertyTypes.sort (); + instancesPropertyTypes.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public Vector enumerateInstanceNames (OperationContext oc, + CIMObjectPath cop, + boolean deepInheritance, + CIMClass cimClass) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::enumerateInstanceNames: oc = " + oc); + System.err.println (providerName + "::enumerateInstanceNames: cop = " + cop); + System.err.println (providerName + "::enumerateInstanceNames: deepInheritance = " + deepInheritance); + System.err.println (providerName + "::enumerateInstanceNames: cimClass = " + cimClass); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + return pathsTestElements; + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + return pathsPropertyTypes; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public Vector enumerateInstances (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean deepInheritance, + boolean localOnly, + boolean includeQualifiers, + boolean includeClassOrigin, + String propertyList[]) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::enumerateInstances: oc = " + oc); + System.err.println (providerName + "::enumerateInstances: cop = " + cop); + System.err.println (providerName + "::enumerateInstances: cimClass = " + cimClass); + System.err.println (providerName + "::enumerateInstances: deepInheritance = " + deepInheritance); + System.err.println (providerName + "::enumerateInstances: localOnly = " + localOnly); + System.err.println (providerName + "::enumerateInstances: includeQualifiers = " + includeQualifiers); + System.err.println (providerName + "::enumerateInstances: includeClassOrigin = " + includeClassOrigin); + System.err.println (providerName + "::enumerateInstances: propertyList = " + propertyList); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + return instancesTestElements; + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + return instancesPropertyTypes; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public Vector execQuery (OperationContext oc, + CIMObjectPath cop, + String queryStatement, + String queryLanguage, + CIMClass cimClass) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::execQuery: oc = " + oc); + System.err.println (providerName + "::execQuery: cop = " + cop); + System.err.println (providerName + "::execQuery: queryStatement = " + queryStatement); + System.err.println (providerName + "::execQuery: queryLanguage = " + queryLanguage); + System.err.println (providerName + "::execQuery: cimClass = " + cimClass); + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (cop.getObjectName ().equalsIgnoreCase (testElementClassname)) + { + throw new CIMException (CIMException.CIM_ERR_NOT_SUPPORTED); + } + else if (cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + if (!queryLanguage.equals ("WQL")) + { + throw new CIMException (CIMException.CIM_ERR_NOT_SUPPORTED); + } + + SelectExp q = new SelectExp (queryStatement); + SelectList attrs = q.getSelectList (); + NonJoinExp from = (NonJoinExp)q.getFromClause (); + QueryExp where = q.getWhereClause (); + Vector instances = enumerateInstances (oc, + cop, + cimClass, + false, // deepInheritance, + true, // localOnly, + true, // includeQualifiers, + true, // includeClassOrigin, + null); + Vector ret = new Vector (); + + if (DEBUG) + { + System.err.println (providerName + "::execQuery: q = " + q); + System.err.println (providerName + "::execQuery: attrs = " + attrs); + System.err.println (providerName + "::execQuery: from = " + from); + System.err.println (providerName + "::execQuery: where = " + where); + System.err.println (providerName + "::execQuery: instances.size () = " + instances.size ()); + } + + // filter the instances + for (int i = 0; i < instances.size (); i++) + { + if ( where == null + || where.apply ((CIMInstance)instances.elementAt (i)) + ) + { + if (DEBUG) + { + System.err.println (providerName + "::execQuery: adding instance " + instances.elementAt (i)); + } + +if (true) +{ + ret.addElement (attrs.apply ((CIMInstance)instances.elementAt (i))); +} +else +{ + ret.addElement (instances.elementAt (i)); +} + } + } + + return ret; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + } + + public CIMValue invokeMethod (OperationContext oc, + CIMObjectPath cop, + String methodName, + Vector inArgs, + Vector outArgs) + throws CIMException + { + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: oc = " + oc); + System.err.println (providerName + "::invokeMethod: cop = " + cop); + System.err.println (providerName + "::invokeMethod: methodName = " + methodName); + System.err.print (providerName + "::invokeMethod: inArgs = "); + if (inArgs != null) + { + System.err.print ("{"); + for (int i = 0; i < inArgs.size (); i++) + { + System.err.print (inArgs.elementAt (i)); + if (i < inArgs.size () - 1) + { + System.err.print (","); + } + } + System.err.println ("}"); + } + else + { + System.err.println ("null"); + } + System.err.print (providerName + "::invokeMethod: outArgs = "); + if (outArgs != null) + { + System.err.print ("{"); + for (int i = 0; i < outArgs.size (); i++) + { + System.err.print (outArgs.elementAt (i)); + if (i < outArgs.size () - 1) + { + System.err.print (","); + } + } + System.err.println ("}"); + } + else + { + System.err.println ("null"); + } + } + + // Ensure that the namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (namespace)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + } + + // Ensure that the class exists in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (propertyTypesClassname)) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + } + + if (methodName.equalsIgnoreCase ("sayHello")) + { + return new CIMValue (new String ("hello")); + } + else if (methodName.equalsIgnoreCase ("enableModifications")) + { + if (inArgs == null) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else if (inArgs.size () != 1) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else + { + String name = null; + CIMValue value = null; + CIMDataType type = null; + Object o0 = inArgs.elementAt (0); + + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: o0 class = " + o0.getClass ()); + } + if (o0 instanceof CIMArgument) + { + CIMArgument ca = (CIMArgument)inArgs.elementAt (0); + + name = ca.getName (); + value = ca.getValue (); + type = ca.getType (); + } + else if (o0 instanceof CIMProperty) + { + CIMProperty cp = (CIMProperty)inArgs.elementAt (0); + + name = cp.getName (); + value = cp.getValue (); + type = cp.getType (); + } + + if (!name.equalsIgnoreCase ("fState")) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + else if (type.getType () != CIMDataType.BOOLEAN) + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + + Boolean fNewState = (Boolean)value.getValue (); + + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: Setting fEnableModifications to " + fNewState); + } + + fEnableModifications = fNewState.booleanValue (); + + return new CIMValue (new Boolean (true)); + } + } + else if (methodName.equalsIgnoreCase ("resetProvider")) + { + if ( inArgs == null + || inArgs.size () == 0 + ) + { + if (DEBUG) + { + System.err.println (providerName + "::invokeMethod: resetting the provider's state!"); + } + + pathsTestElements = new SortableVector (new CIMObjectPathComparer ()); + instancesTestElements = new SortableVector (new CIMInstanceComparer ()); + pathsPropertyTypes = new SortableVector (new CIMObjectPathComparer ()); + instancesPropertyTypes = new SortableVector (new CIMInstanceComparer ()); + fEnableModifications = false; + + initialize (handle); + + return new CIMValue (new Boolean (true)); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + else + { + throw new CIMException (CIMException.CIM_ERR_METHOD_NOT_AVAILABLE); + } + } + + private boolean validateTestElementPath (CIMObjectPath cop) + { + return false; + } + + private boolean validatePropertyTypePath (CIMObjectPath cop) + { + Vector keys = cop.getKeys (); + + if (keys.size () != PROPERTYTYPES_KEYS.length) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypePath: Bad1: " + keys.size () + " != " + PROPERTYTYPES_KEYS.length); + } + + return false; + } + for (int i = 0, is = PROPERTYTYPES_KEYS.length; i < is; i++) + { + boolean fFound = false; + + for (int j = 0, js = keys.size (); j < js; j++) + { + CIMProperty cp = (CIMProperty)keys.elementAt (j); + + if (PROPERTYTYPES_KEYS[i].equalsIgnoreCase (cp.getName ())) + { + fFound = true; + } + } + + if (!fFound) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypePath: Bad2: " + PROPERTYTYPES_KEYS[i] + " not in " + keys); + } + + return false; + } + } + + return true; + } + + private CIMObjectPath validateTestElementInstance (CIMInstance cimInstance, + boolean fStrict) + { + if (cimInstance.getPropertyCount () != TESTELEMENT_PROPS.length) + { + if (DEBUG) + { + System.err.println (providerName + "::validateTestElementInstance: Bad1: " + cimInstance.getPropertyCount () + " != " + TESTELEMENT_PROPS.length); + } + + if (fStrict) + { + return null; + } + } + for (int i = 0, is = TESTELEMENT_PROPS.length; i < is; i++) + { + CIMProperty cp = cimInstance.getProperty (TESTELEMENT_PROPS[i]); + if (cp == null) + { + if (DEBUG) + { + System.err.println (providerName + "::validateTestElementInstance: Bad2: " + TESTELEMENT_PROPS[i]); + } + + if (fStrict) + { + return null; + } + } + } + + CIMObjectPath ret = new CIMObjectPath (propertyTypesClassname, + namespace); + + for (int i = 0, is = TESTELEMENT_KEYS.length; i < is; i++) + { + CIMProperty cp = cimInstance.getProperty (TESTELEMENT_KEYS[i]); + + if (cp != null) + { + ret.addKey (TESTELEMENT_KEYS[i], + cp.getValue ()); + } + else + { + if (DEBUG) + { + System.err.println (providerName + "::validateTestElementInstance: Bad3: " + TESTELEMENT_KEYS[i]); + } + + return null; + } + } + + return ret; + } + + private CIMObjectPath validatePropertyTypeInstance (CIMInstance cimInstance, + boolean fStrict) + { + if (cimInstance.getPropertyCount () != PROPERTYTYPES_PROPS.length) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypeInstance: Bad1: " + cimInstance.getPropertyCount () + " != " + PROPERTYTYPES_PROPS.length); + } + + if (fStrict) + { + return null; + } + } + for (int i = 0, is = PROPERTYTYPES_PROPS.length; i < is; i++) + { + CIMProperty cp = cimInstance.getProperty (PROPERTYTYPES_PROPS[i]); + if (cp == null) + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypeInstance: Bad2: " + PROPERTYTYPES_PROPS[i]); + } + + if (fStrict) + { + return null; + } + } + } + + CIMObjectPath ret = new CIMObjectPath (propertyTypesClassname, + namespace); + + for (int i = 0, is = PROPERTYTYPES_KEYS.length; i < is; i++) + { + CIMProperty cp = cimInstance.getProperty (PROPERTYTYPES_KEYS[i]); + + if (cp != null) + { + ret.addKey (PROPERTYTYPES_KEYS[i], + cp.getValue ()); + } + else + { + if (DEBUG) + { + System.err.println (providerName + "::validatePropertyTypeInstance: Bad3: " + PROPERTYTYPES_KEYS[i]); + } + + return null; + } + } + + return ret; + } + + private int findCOPInTestElements (CIMObjectPath cop1) + { + String path1 = cop1.toString (); + + for (int i = 0; i < pathsTestElements.size (); i++) + { + CIMObjectPath cop2 = (CIMObjectPath)pathsTestElements.elementAt (i); + String path2 = cop2.toString (); + + if (DEBUG) + { + System.err.println (providerName + "::findCOPInTestElements: \"" + path1 + "\" == \"" + path2 + "\""); + } + + if (path2.equalsIgnoreCase (path1)) + { + if (DEBUG) + { + System.err.println (providerName + "::findCOPInTestElements: found!"); + } + + return i; + } + } + + return -1; + } + + private int findCOPInPropertyTypes (CIMObjectPath cop1) + { + String path1 = cop1.toString (); + + for (int i = 0; i < pathsPropertyTypes.size (); i++) + { + CIMObjectPath cop2 = (CIMObjectPath)pathsPropertyTypes.elementAt (i); + String path2 = cop2.toString (); + + if (DEBUG) + { + System.err.println (providerName + "::findCOPInPropertyTypes: \"" + path1 + "\" == \"" + path2 + "\""); + } + + if (path2.equalsIgnoreCase (path1)) + { + if (DEBUG) + { + System.err.println (providerName + "::findCOPInPropertyTypes: found!"); + } + + return i; + } + } + + return -1; + } + + private int findCOPInPropertyTypesNew (CIMObjectPath cop1) + { + HashMap hashPaths = new HashMap (); + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: comparing \"" + cop1 + "\""); + } + + // Iterate through each ObjectPath in our ObjectPaths + for (int i = 0; i < pathsPropertyTypes.size (); i++) + { + CIMObjectPath cop2 = (CIMObjectPath)pathsPropertyTypes.elementAt (i); + Vector keysCop1 = cop1.getKeys (); + HashMap hashCop1 = new HashMap (); + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: to \"" + cop2 + "\""); + } + + // Iterate though each property in the ObjectPath + for (int idxPath = 0; idxPath < keysCop1.size (); idxPath++) + { + CIMProperty cp = (CIMProperty)keysCop1.elementAt (idxPath); + String cpKeyValue = cp.getValue ().toString (); + String copKeyValue = cop2.getKeyValue (cp.getName ()); + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: cpKeyValue \"" + cpKeyValue + "\""); + System.out.println (providerName + "::findCOPInPropertyTypesNew: copKeyValue \"" + copKeyValue + "\""); + } + + // Compare the property values and save it for later + hashCop1.put (cp.toString (), new Boolean (cpKeyValue.equals (copKeyValue))); + } + + // Save the result of all of the property comparisons + hashPaths.put (cop2, hashCop1); + } + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: hashPaths = " + hashPaths); + } + + Iterator itrHashPaths = hashPaths.keySet ().iterator (); + + // Iterate through all of our results + while (itrHashPaths.hasNext ()) + { + Object key = itrHashPaths.next (); + HashMap hash = (HashMap)hashPaths.get (key); + boolean found = true; + Iterator itrHash = hash.values ().iterator (); + + while (itrHash.hasNext ()) + { + if (!((Boolean)itrHash.next ()).booleanValue ()) + { + found = false; + } + } + + if (DEBUG) + { + System.out.println (providerName + "::findCOPInPropertyTypesNew: found = " + found + ", key = " + key); + } + + // Were they all equal? + if (found) + { + // Return the index of it + return pathsPropertyTypes.indexOf (key); + } + } + + return -1; + } + + private void testTestElementInstance (CIMInstance instanceObject) + throws CIMException + { + } + + private void testPropertyTypeInstance (CIMInstance instanceObject) + throws CIMException + { + Vector properties = instanceObject.getProperties (); + int iPropertyCount = properties.size (); + + for (int j = 0; j < iPropertyCount; j++) + { + CIMProperty property = (CIMProperty)properties.elementAt (j); + String propertyName = property.getName (); + CIMValue propertyValue = property.getValue (); + Object value = propertyValue.getValue (); + int type = property.getType ().getType (); + + switch (type) + { + case CIMDataType.UINT8: + { + if (!(value instanceof UnsignedInt8)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt8)value).intValue () >= 255) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.UINT16: + { + if (!(value instanceof UnsignedInt16)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt16)value).intValue () >= 10000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.UINT32: + { + if (!(value instanceof UnsignedInt32)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt32)value).intValue () >= 10000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.UINT64: + { + if (!(value instanceof UnsignedInt64)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt64)value).longValue () >= 1000000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT8: + { + if (!(value instanceof Byte)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Byte)value).intValue () <= -120) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT16: + { + if (!(value instanceof Short)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Short)value).intValue () < -10000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT32: + { + if (!(value instanceof Integer)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Integer)value).intValue () <= -10000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.SINT64: + { + if (!(value instanceof Long)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Long)value).intValue () <= -1000000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.REAL32: + { + if (!(value instanceof Float)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Float)value).floatValue () >= 10000000.32) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + case CIMDataType.REAL64: + { + if (!(value instanceof Double)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((Double)value).doubleValue () >= 1000000000.64) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + } + default: + { + break; + } + } + } + } + + private interface Compare + { + abstract boolean lessThan (Object lhs, Object rhs); + abstract boolean lessThanOrEqual (Object lhs, Object rhs); + } + + private class SortableVector + extends Vector + { + private Compare compare; + + public SortableVector (Compare compare) + { + this.compare = compare; + } + + public void sort () + { + quickSort (0, size() - 1); + } + + private void quickSort (int left, int right) + { + if (right > left) + { + Object o1 = elementAt (right); + int i = left - 1; + int j = right; + + while (true) + { + while (compare.lessThan (elementAt (++i), o1)) + ; + + while (j > 0) + if(compare.lessThanOrEqual (elementAt (--j), o1)) + break; + + if (i >= j) + break; + + swap (i, j); + } + + swap (i , right); + quickSort (left, i - 1); + quickSort (i + 1, right); + } + } + + private void swap (int loc1, int loc2) + { + Object tmp = elementAt(loc1); + + setElementAt (elementAt (loc2), loc1); + setElementAt (tmp, loc2); + } + } + + private class CIMInstanceComparer + implements Compare + { + private int getInstanceId (Object o) + { + try + { + CIMInstance ci = (CIMInstance)o; + CIMProperty cp = ci.getProperty ("InstanceId"); + UnsignedInt64 id = (UnsignedInt64)cp.getValue ().getValue (); + + return id.intValue (); + } + catch (Exception e) + { + return 0; + } + } + + public boolean lessThan (Object lhs, Object rhs) + { + return getInstanceId (lhs) < getInstanceId (rhs); + } + + public boolean lessThanOrEqual (Object lhs, Object rhs) + { + return getInstanceId (lhs) <= getInstanceId (rhs); + } + } + + private class CIMObjectPathComparer + implements Compare + { + private int getInstanceId (Object o) + { + try + { + CIMObjectPath cop = (CIMObjectPath)o; + String value = cop.getKeyValue ("InstanceId"); + UnsignedInt64 id = new UnsignedInt64 (value); + + return id.intValue (); + } + catch (Exception e) + { + return 0; + } + } + + public boolean lessThan (Object lhs, Object rhs) + { + return getInstanceId (lhs) < getInstanceId (rhs); + } + + public boolean lessThanOrEqual (Object lhs, Object rhs) + { + return getInstanceId (lhs) <= getInstanceId (rhs); + } + } + + // + private String providerName = ""; + private String testElementClassname = ""; + private String propertyTypesClassname = ""; + + // + private String namespace = ""; + private CIMOMHandle handle = null; + private SortableVector pathsTestElements = new SortableVector (new CIMObjectPathComparer ()); + private SortableVector instancesTestElements = new SortableVector (new CIMInstanceComparer ()); + private SortableVector pathsPropertyTypes = new SortableVector (new CIMObjectPathComparer ()); + private SortableVector instancesPropertyTypes = new SortableVector (new CIMInstanceComparer ()); + private boolean fEnableModifications = true; + private final boolean DEBUG = true; + + private final String[] TESTELEMENT_KEYS = { + "CreationClassName", + "InstanceId" + }; + private final String[] TESTELEMENT_PROPS = { + "CreationClassName", + "InstanceId" + }; + private final String[] PROPERTYTYPES_KEYS = { + "CreationClassName", + "InstanceId" + }; + private final String[] PROPERTYTYPES_PROPS = { + "CreationClassName", + "InstanceId", + "PropertyString", + "PropertyUint8", + "PropertyUint16", + "PropertyUint32", + "PropertyUint64", + "PropertySint8", + "PropertySint16", + "PropertySint32", + "PropertySint64", + "PropertyBoolean", + "PropertyReal32", + "PropertyReal64", + "PropertyDatetime", + "PropertyChar16", + "PropertyObject", + "PropertyReference", + "PropertyArrayUint8", + "PropertyArrayUint16", + "PropertyArrayUint32", + "PropertyArrayUint64", + "PropertyArraySint8", + "PropertyArraySint16", + "PropertyArraySint32", + "PropertyArraySint64", + "PropertyArrayBoolean", + "PropertyArrayReal32", + "PropertyArrayReal64", + "PropertyArrayDatetime", + "PropertyArrayChar16", + "PropertyArrayObject" + }; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.java new file mode 100644 index 000000000..355a5deac --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.java @@ -0,0 +1,269 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Mark Hamzy, hamzy@us.ibm.com +// +// Modified By: Mark Hamzy, hamzy@us.ibm.com +// +//%///////////////////////////////////////////////////////////////////////////// +package Instances; + +import java.util.Vector; +import java.util.Arrays; +import org.pegasus.jmpi.CIMArgument; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.CIMInstanceProvider2; +import org.pegasus.jmpi.CIMMethodProvider2; +import org.pegasus.jmpi.OperationContext; + +public class JMPICIMInstance2Provider + implements CIMInstanceProvider2, + CIMMethodProvider2 +{ + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + } + + cip = new CommonInstanceProvider ("JMPICIMInstance2Provider", + "root/SampleProvider", + "JMPICIMInstance2_TestElement", + "JMPICIMInstance2_TestPropertyTypes"); + + if (cip != null) + { + cip.initialize (ch); + } + } + + public void cleanup () + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + + cip = null; + } + } + + public CIMObjectPath createInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + return cip.createInstance (oc, + cop, + cimInstance); + } + else + { + return null; + } + } + + public CIMInstance getInstance (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + String[] propertyList) + throws CIMException + { + if (cip != null) + { + return cip.getInstance (oc, + cop, + cimClass, + includeQualifiers, + includeClassOrigin, + true, // localOnly, + propertyList); + } + else + { + return null; + } + } + + public void setInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + cip.setInstance (oc, + cop, + cimInstance, + true, // includeQualifiers, + null); // propertyList); + } + } + + public void deleteInstance (OperationContext oc, + CIMObjectPath cop) + throws CIMException + { + if (cip != null) + { + cip.deleteInstance (oc, + cop); + } + } + + public CIMObjectPath[] enumerateInstanceNames (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + Vector retVector = null; + CIMObjectPath[] retArray = null; + + retVector = cip.enumerateInstanceNames (oc, + cop, + false, // deepInheritance, + cimClass); + + retArray = new CIMObjectPath [retVector.size ()]; + + System.arraycopy (retVector.toArray (), 0, retArray, 0, retVector.size ()); + + return retArray; + } + else + { + return null; + } + } + + public CIMInstance[] enumerateInstances (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + String[] propertyList) + throws CIMException + { + if (cip != null) + { + Vector retVector = null; + CIMInstance[] retArray = null; + + retVector = cip.enumerateInstances (oc, + cop, + cimClass, + false, // deepInheritance, + true, // localOnly, + includeQualifiers, + includeClassOrigin, + propertyList); + + retArray = new CIMInstance [retVector.size ()]; + + System.arraycopy (retVector.toArray (), 0, retArray, 0, retVector.size ()); + + return retArray; + } + else + { + return null; + } + } + + public CIMInstance[] execQuery (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + String queryStatement, + String queryLanguage) + throws CIMException + { + if (cip != null) + { + Vector retVector = null; + CIMInstance[] retArray = null; + + retVector = cip.execQuery (oc, + cop, + queryStatement, + queryLanguage, + cimClass); + + retArray = new CIMInstance [retVector.size ()]; + + System.arraycopy (retVector.toArray (), 0, retArray, 0, retVector.size ()); + + return retArray; + } + else + { + return null; + } + } + + public CIMValue invokeMethod (OperationContext oc, + CIMObjectPath cop, + String methodName, + CIMArgument[] inArgs, + CIMArgument[] outArgs) + throws CIMException + { + if (cip != null) + { + Vector in = new Vector (Arrays.asList (inArgs)); + Vector out = new Vector (Arrays.asList (outArgs)); + + return cip.invokeMethod (oc, + cop, + methodName, + in, + out); + } + else + { + return null; + } + } + + private CommonInstanceProvider cip = null; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.mof new file mode 100644 index 000000000..e04a76126 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2Provider.mof @@ -0,0 +1,200 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +// ================================================================== +// JMPICIMInstance2_TestElement +// ================================================================== +[ Abstract, + Version ("2.2.0"), + Description ("JMPICIMInstance2_TestElement is an abstract class that provides a common " + "superclass (or top of the inheritance tree) for the " + "non-association classes in the test Schema.") +] +class JMPICIMInstance2_TestElement +{ + [ Key, + MaxLen (256), + Description ("CreationClassName indicates the name of the class or the " + "subclass used in the creation of an instance. When used " + "with the other key properties of this class, this property " + "allows all instances of this class and its subclasses to " + "be uniquely identified.") + ] + string CreationClassName; + + [ Key, + Description ("An identifier that uniquely identifies each instance " + "of the JMPICIMInstance2_TestElement hierarchy.") + ] + uint64 InstanceId; +}; + +// =================================================================== +// JMPICIMInstance2_TestPropertyTypes +// =================================================================== +[ Version ("2.2.0"), + Description ("JMPICIMInstance2_TestPropertyTypes is a concrete class derived from " + "JMPICIMInstance2_TestElement"), + provider ("JMPICIMInstance2_TestPropertyTypes") +] +class JMPICIMInstance2_TestPropertyTypes : JMPICIMInstance2_TestElement +{ + [ Maxlen (256), + Description ("a string property of JMPICIMInstance2_TestPropertyTypes") + ] + string PropertyString; + + [ Description ("a uint8 property of JMPICIMInstance2_TestPropertyTypes") + ] + uint8 PropertyUint8; + + [ Description ("a uint16 property of JMPICIMInstance2_TestPropertyTypes") + ] + uint16 PropertyUint16; + + [ Description ("a uint32 property of JMPICIMInstance2_TestPropertyTypes") + ] + uint32 PropertyUint32; + + [ Description ("a uint64 property of JMPICIMInstance2_TestPropertyTypes") + ] + uint64 PropertyUint64; + + [ Description ("a sint8 property of JMPICIMInstance2_TestPropertyTypes") + ] + sint8 PropertySint8; + + [ Description ("a sint16 property of JMPICIMInstance2_TestPropertyTypes") + ] + sint16 PropertySint16; + + [ Description ("a sint32 property of JMPICIMInstance2_TestPropertyTypes") + ] + sint32 PropertySint32; + + [ Description ("a sint64 property of JMPICIMInstance2_TestPropertyTypes") + ] + sint64 PropertySint64; + + [ Description ("a boolean property of JMPICIMInstance2_TestPropertyTypes") + ] + boolean PropertyBoolean; + + [ Description ("a real32 property of JMPICIMInstance2_TestPropertyTypes") + ] + real32 PropertyReal32; + + [ Description ("a real64 property of JMPICIMInstance2_TestPropertyTypes") + ] + real64 PropertyReal64; + + [ Description ("a datetime property of JMPICIMInstance2_TestPropertyTypes") + ] + datetime PropertyDatetime; + + [ Description ("a char16 property of JMPICIMInstance2_TestPropertyTypes") + ] + char16 PropertyChar16; + + [ Description ("an object property of JMPICIMInstance2_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyObject; + +// [ Description ("a reference property of JMPICIMInstance2_TestPropertyTypes") +// ] +// ref PropertyReference; + + [ Description ("an array of uint8s property of JMPICIMInstance2_TestPropertyTypes") + ] + uint8 PropertyArrayUint8[]; + + [ Description ("an array of uint16s property of JMPICIMInstance2_TestPropertyTypes") + ] + uint16 PropertyArrayUint16[]; + + [ Description ("an array of uint32s property of JMPICIMInstance2_TestPropertyTypes") + ] + uint32 PropertyArrayUint32[]; + + [ Description ("an array of uint64s property of JMPICIMInstance2_TestPropertyTypes") + ] + uint64 PropertyArrayUint64[]; + + [ Description ("an array of sint8s property of JMPICIMInstance2_TestPropertyTypes") + ] + sint8 PropertyArraySint8[]; + + [ Description ("an array of sint16s property of JMPICIMInstance2_TestPropertyTypes") + ] + sint16 PropertyArraySint16[]; + + [ Description ("an array of sint32s property of JMPICIMInstance2_TestPropertyTypes") + ] + sint32 PropertyArraySint32[]; + + [ Description ("an array of sint64s property of JMPICIMInstance2_TestPropertyTypes") + ] + sint64 PropertyArraySint64[]; + + [ Description ("an array of booleans property of JMPICIMInstance2_TestPropertyTypes") + ] + boolean PropertyArrayBoolean[]; + + [ Description ("an array of real32s property of JMPICIMInstance2_TestPropertyTypes") + ] + real32 PropertyArrayReal32[]; + + [ Description ("an array of real64s property of JMPICIMInstance2_TestPropertyTypes") + ] + real64 PropertyArrayReal64[]; + + [ Description ("an array of datetimes property of JMPICIMInstance2_TestPropertyTypes") + ] + datetime PropertyArrayDatetime[]; + + [ Description ("an array of char16s property of JMPICIMInstance2_TestPropertyTypes") + ] + char16 PropertyArrayChar16[]; + + [ Description ("an object property of JMPICIMInstance2_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyArrayObject[]; + + [ Description ("a function that returns a string which says hello") + ] + String sayHello (); + + [ Description ("a function which tells the provider to allow modifications") + ] + boolean enableModifications (boolean fState); +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2ProviderR.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2ProviderR.mof new file mode 100644 index 000000000..dc2ea1c4e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstance2ProviderR.mof @@ -0,0 +1,73 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +instance of PG_ProviderModule +{ + Name = "JMPICIMInstance2ProviderModule"; + Location = "JMPICIMInstance2Provider.jar:Instances/JMPICIMInstance2Provider"; + Vendor = "OpenPegasus"; + Version = "2.0.0"; + InterfaceType = "JMPIExperimental"; + InterfaceVersion = "0.0.1"; +}; + +instance of PG_Provider +{ + ProviderModuleName = "JMPICIMInstance2ProviderModule"; + Name = "JMPICIMInstance2Provider"; +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPICIMInstance2ProviderModule"; + ProviderName = "JMPICIMInstance2Provider"; + CapabilityID = "JMPICIMInstance2_TestElement"; + ClassName = "JMPICIMInstance2_TestElement"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2 }; // Instance + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPICIMInstance2ProviderModule"; + ProviderName = "JMPICIMInstance2Provider"; + CapabilityID = "JMPICIMInstance2_TestPropertyTypes"; + ClassName = "JMPICIMInstance2_TestPropertyTypes"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2, 5, 7 }; // Instance, Method, and InstanceQuery + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.java new file mode 100644 index 000000000..459846f9c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.java @@ -0,0 +1,264 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Mark Hamzy, hamzy@us.ibm.com +// +// Modified By: Mark Hamzy, hamzy@us.ibm.com +// +//%///////////////////////////////////////////////////////////////////////////// +package Instances; + +import java.util.Vector; +import java.util.Arrays; +import org.pegasus.jmpi.CIMArgument; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.CIMInstanceProvider; +import org.pegasus.jmpi.CIMMethodProvider; + +public class JMPICIMInstanceProvider + implements CIMInstanceProvider, + CIMMethodProvider +{ + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + } + + cip = new CommonInstanceProvider ("JMPICIMInstanceProvider", + "root/SampleProvider", + "JMPICIMInstance_TestElement", + "JMPICIMInstance_TestPropertyTypes"); + + if (cip != null) + { + cip.initialize (ch); + } + } + + public void cleanup () + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + + cip = null; + } + } + + public CIMObjectPath createInstance (CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + return cip.createInstance (null, // oc, + cop, + cimInstance); + } + else + { + return null; + } + } + + public CIMInstance getInstance (CIMObjectPath cop, + boolean localOnly, + boolean includeQualifiers, + boolean includeClassOrigin, + String[] propertyList, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + return cip.getInstance (null, // oc, + cop, + cimClass, + includeQualifiers, + includeClassOrigin, + localOnly, + propertyList); + } + else + { + return null; + } + } + + public void setInstance (CIMObjectPath cop, + CIMInstance cimInstance, + boolean includeQualifiers, + String[] propertyList) + throws CIMException + { + if (cip != null) + { + cip.setInstance (null, // oc, + cop, + cimInstance, + includeQualifiers, + propertyList); + } + } + + public void deleteInstance (CIMObjectPath cop) + throws CIMException + { + if (cip != null) + { + cip.deleteInstance (null, // oc, + cop); + } + } + + public CIMObjectPath[] enumerateInstanceNames (CIMObjectPath cop, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + Vector retVector = null; + CIMObjectPath[] retArray = null; + + retVector = cip.enumerateInstanceNames (null, // oc, + cop, + false, // deepInheritance, + cimClass); + + retArray = new CIMObjectPath [retVector.size ()]; + + System.arraycopy (retVector.toArray (), 0, retArray, 0, retVector.size ()); + + return retArray; + } + else + { + return null; + } + } + + public CIMInstance[] enumerateInstances (CIMObjectPath cop, + boolean localOnly, + boolean includeQualifiers, + boolean includeClassOrigin, + String[] propertyList, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + Vector retVector = null; + CIMInstance[] retArray = null; + + retVector = cip.enumerateInstances (null, // oc, + cop, + cimClass, + false, // deepInheritance, + localOnly, + includeQualifiers, + includeClassOrigin, + propertyList); + + retArray = new CIMInstance [retVector.size ()]; + + System.arraycopy (retVector.toArray (), 0, retArray, 0, retVector.size ()); + + return retArray; + } + else + { + return null; + } + } + + public CIMInstance[] execQuery (CIMObjectPath cop, + String queryStatement, + String queryLanguage, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + Vector retVector = null; + CIMInstance[] retArray = null; + + retVector = cip.execQuery (null, // oc, + cop, + queryStatement, + queryLanguage, + cimClass); + + retArray = new CIMInstance [retVector.size ()]; + + System.arraycopy (retVector.toArray (), 0, retArray, 0, retVector.size ()); + + return retArray; + } + else + { + return null; + } + } + + public CIMValue invokeMethod (CIMObjectPath cop, + String methodName, + CIMArgument[] inArgs, + CIMArgument[] outArgs) + throws CIMException + { + if (cip != null) + { + Vector in = new Vector (Arrays.asList (inArgs)); + Vector out = new Vector (Arrays.asList (outArgs)); + + return cip.invokeMethod (null, // oc, + cop, + methodName, + in, + out); + } + else + { + return null; + } + } + + private CommonInstanceProvider cip = null; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.mof new file mode 100644 index 000000000..089ecdad6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProvider.mof @@ -0,0 +1,200 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +// ================================================================== +// JMPICIMInstance_TestElement +// ================================================================== +[ Abstract, + Version ("2.2.0"), + Description ("JMPICIMInstance_TestElement is an abstract class that provides a common " + "superclass (or top of the inheritance tree) for the " + "non-association classes in the test Schema.") +] +class JMPICIMInstance_TestElement +{ + [ Key, + MaxLen (256), + Description ("CreationClassName indicates the name of the class or the " + "subclass used in the creation of an instance. When used " + "with the other key properties of this class, this property " + "allows all instances of this class and its subclasses to " + "be uniquely identified.") + ] + string CreationClassName; + + [ Key, + Description ("An identifier that uniquely identifies each instance " + "of the JMPICIMInstance_TestElement hierarchy.") + ] + uint64 InstanceId; +}; + +// =================================================================== +// JMPICIMInstance_TestPropertyTypes +// =================================================================== +[ Version ("2.2.0"), + Description ("JMPICIMInstance_TestPropertyTypes is a concrete class derived from " + "JMPICIMInstance_TestElement"), + provider ("JMPICIMInstance_TestPropertyTypes") +] +class JMPICIMInstance_TestPropertyTypes : JMPICIMInstance_TestElement +{ + [ Maxlen (256), + Description ("a string property of JMPICIMInstance_TestPropertyTypes") + ] + string PropertyString; + + [ Description ("a uint8 property of JMPICIMInstance_TestPropertyTypes") + ] + uint8 PropertyUint8; + + [ Description ("a uint16 property of JMPICIMInstance_TestPropertyTypes") + ] + uint16 PropertyUint16; + + [ Description ("a uint32 property of JMPICIMInstance_TestPropertyTypes") + ] + uint32 PropertyUint32; + + [ Description ("a uint64 property of JMPICIMInstance_TestPropertyTypes") + ] + uint64 PropertyUint64; + + [ Description ("a sint8 property of JMPICIMInstance_TestPropertyTypes") + ] + sint8 PropertySint8; + + [ Description ("a sint16 property of JMPICIMInstance_TestPropertyTypes") + ] + sint16 PropertySint16; + + [ Description ("a sint32 property of JMPICIMInstance_TestPropertyTypes") + ] + sint32 PropertySint32; + + [ Description ("a sint64 property of JMPICIMInstance_TestPropertyTypes") + ] + sint64 PropertySint64; + + [ Description ("a boolean property of JMPICIMInstance_TestPropertyTypes") + ] + boolean PropertyBoolean; + + [ Description ("a real32 property of JMPICIMInstance_TestPropertyTypes") + ] + real32 PropertyReal32; + + [ Description ("a real64 property of JMPICIMInstance_TestPropertyTypes") + ] + real64 PropertyReal64; + + [ Description ("a datetime property of JMPICIMInstance_TestPropertyTypes") + ] + datetime PropertyDatetime; + + [ Description ("a char16 property of JMPICIMInstance_TestPropertyTypes") + ] + char16 PropertyChar16; + + [ Description ("an object property of JMPICIMInstance_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyObject; + +// [ Description ("a reference property of JMPICIMInstance_TestPropertyTypes") +// ] +// ref PropertyReference; + + [ Description ("an array of uint8s property of JMPICIMInstance_TestPropertyTypes") + ] + uint8 PropertyArrayUint8[]; + + [ Description ("an array of uint16s property of JMPICIMInstance_TestPropertyTypes") + ] + uint16 PropertyArrayUint16[]; + + [ Description ("an array of uint32s property of JMPICIMInstance_TestPropertyTypes") + ] + uint32 PropertyArrayUint32[]; + + [ Description ("an array of uint64s property of JMPICIMInstance_TestPropertyTypes") + ] + uint64 PropertyArrayUint64[]; + + [ Description ("an array of sint8s property of JMPICIMInstance_TestPropertyTypes") + ] + sint8 PropertyArraySint8[]; + + [ Description ("an array of sint16s property of JMPICIMInstance_TestPropertyTypes") + ] + sint16 PropertyArraySint16[]; + + [ Description ("an array of sint32s property of JMPICIMInstance_TestPropertyTypes") + ] + sint32 PropertyArraySint32[]; + + [ Description ("an array of sint64s property of JMPICIMInstance_TestPropertyTypes") + ] + sint64 PropertyArraySint64[]; + + [ Description ("an array of booleans property of JMPICIMInstance_TestPropertyTypes") + ] + boolean PropertyArrayBoolean[]; + + [ Description ("an array of real32s property of JMPICIMInstance_TestPropertyTypes") + ] + real32 PropertyArrayReal32[]; + + [ Description ("an array of real64s property of JMPICIMInstance_TestPropertyTypes") + ] + real64 PropertyArrayReal64[]; + + [ Description ("an array of datetimes property of JMPICIMInstance_TestPropertyTypes") + ] + datetime PropertyArrayDatetime[]; + + [ Description ("an array of char16s property of JMPICIMInstance_TestPropertyTypes") + ] + char16 PropertyArrayChar16[]; + + [ Description ("an object property of JMPICIMInstance_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyArrayObject[]; + + [ Description ("a function that returns a string which says hello") + ] + String sayHello (); + + [ Description ("a function which tells the provider to allow modifications") + ] + boolean enableModifications (boolean fState); +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProviderR.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProviderR.mof new file mode 100644 index 000000000..86fcf519c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPICIMInstanceProviderR.mof @@ -0,0 +1,73 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +instance of PG_ProviderModule +{ + Name = "JMPICIMInstanceProviderModule"; + Location = "JMPICIMInstanceProvider.jar:Instances/JMPICIMInstanceProvider"; + Vendor = "OpenPegasus"; + Version = "2.0.0"; + InterfaceType = "JMPI"; + InterfaceVersion = "1.0.0"; +}; + +instance of PG_Provider +{ + ProviderModuleName = "JMPICIMInstanceProviderModule"; + Name = "JMPICIMInstanceProvider"; +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPICIMInstanceProviderModule"; + ProviderName = "JMPICIMInstanceProvider"; + CapabilityID = "JMPICIMInstance_TestElement"; + ClassName = "JMPICIMInstance_TestElement"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2 }; // Instance + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPICIMInstanceProviderModule"; + ProviderName = "JMPICIMInstanceProvider"; + CapabilityID = "JMPICIMInstance_TestPropertyTypes"; + ClassName = "JMPICIMInstance_TestPropertyTypes"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2, 5, 7 }; // Instance, Method, and InstanceQuery + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.java new file mode 100644 index 000000000..7ac4d50d7 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.java @@ -0,0 +1,248 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Adrian Schuur schuur@deibm.com +// +// Modified By: Mark Hamzy, hamzy@us.ibm.com +// +// +// This code is based on TestPropertyTypes.cpp +// +// Original Author: Yi Zhou (yi_zhou@hp.com) +// +// Original Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) +// Sushma Fernandes, Hewlett-Packard Company +// (sushma_fernandes@hp.com) +// Carol Ann Krug Graves, Hewlett-Packard Company +// (carolann_graves@hp.com) +// +//%///////////////////////////////////////////////////////////////////////////// +package Instances; + +import java.util.Vector; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.InstanceProvider2; +import org.pegasus.jmpi.MethodProvider2; +import org.pegasus.jmpi.OperationContext; + +public class JMPIExpInstanceProvider + implements InstanceProvider2, + MethodProvider2 +{ + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + } + + cip = new CommonInstanceProvider ("JMPIExpInstanceProvider", + "root/SampleProvider", + "JMPIExpInstance_TestElement", + "JMPIExpInstance_TestPropertyTypes"); + + if (cip != null) + { + cip.initialize (ch); + } + } + + public void cleanup () + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + + cip = null; + } + } + + public CIMObjectPath createInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + return cip.createInstance (oc, + cop, + cimInstance); + } + else + { + return null; + } + } + + public CIMInstance getInstance (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + String propertyList[]) + throws CIMException + { + if (cip != null) + { + return cip.getInstance (oc, + cop, + cimClass, + includeQualifiers, + includeClassOrigin, + true, // localOnly + propertyList); + } + else + { + return null; + } + } + + public void setInstance (OperationContext oc, + CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + cip.setInstance (oc, + cop, + cimInstance, + true, // includeQualifiers, + null); // propertyList); + } + } + + public void deleteInstance (OperationContext oc, + CIMObjectPath cop) + throws CIMException + { + if (cip != null) + { + cip.deleteInstance (oc, + cop); + } + } + + public Vector enumerateInstanceNames (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + return cip.enumerateInstanceNames (oc, + cop, + false, // deepInheritance, + cimClass); + } + else + { + return null; + } + } + + public Vector enumerateInstances (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + boolean includeQualifiers, + boolean includeClassOrigin, + String propertyList[]) + throws CIMException + { + if (cip != null) + { + return cip.enumerateInstances (oc, + cop, + cimClass, + false, // deepInheritance, + true, // localOnly, + includeQualifiers, + includeClassOrigin, + propertyList); + } + else + { + return null; + } + } + + public Vector execQuery (OperationContext oc, + CIMObjectPath cop, + CIMClass cimClass, + String queryStatement, + String queryLanguage) + throws CIMException + { + if (cip != null) + { + return cip.execQuery (oc, + cop, + queryStatement, + queryLanguage, + cimClass); + } + else + { + return null; + } + } + + public CIMValue invokeMethod (OperationContext oc, + CIMObjectPath cop, + String methodName, + Vector in, + Vector out) + throws CIMException + { + if (cip != null) + { + return cip.invokeMethod (oc, + cop, + methodName, + in, + out); + } + else + { + return null; + } + } + + private CommonInstanceProvider cip = null; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.mof new file mode 100644 index 000000000..7a50504cf --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProvider.mof @@ -0,0 +1,200 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +// ================================================================== +// JMPIExpInstance_TestElement +// ================================================================== +[ Abstract, + Version ("2.2.0"), + Description ("JMPIExpInstance_TestElement is an abstract class that provides a common " + "superclass (or top of the inheritance tree) for the " + "non-association classes in the test Schema.") +] +class JMPIExpInstance_TestElement +{ + [ Key, + MaxLen (256), + Description ("CreationClassName indicates the name of the class or the " + "subclass used in the creation of an instance. When used " + "with the other key properties of this class, this property " + "allows all instances of this class and its subclasses to " + "be uniquely identified.") + ] + string CreationClassName; + + [ Key, + Description ("An identifier that uniquely identifies each instance " + "of the JMPIExpInstance_TestElement hierarchy.") + ] + uint64 InstanceId; +}; + +// =================================================================== +// JMPIExpInstance_TestPropertyTypes +// =================================================================== +[ Version ("2.2.0"), + Description ("JMPIExpInstance_TestPropertyTypes is a concrete class derived from " + "JMPIExpInstance_TestElement"), + provider ("JMPIExpInstance_TestPropertyTypes") +] +class JMPIExpInstance_TestPropertyTypes : JMPIExpInstance_TestElement +{ + [ Maxlen (256), + Description ("a string property of JMPIExpInstance_TestPropertyTypes") + ] + string PropertyString; + + [ Description ("a uint8 property of JMPIExpInstance_TestPropertyTypes") + ] + uint8 PropertyUint8; + + [ Description ("a uint16 property of JMPIExpInstance_TestPropertyTypes") + ] + uint16 PropertyUint16; + + [ Description ("a uint32 property of JMPIExpInstance_TestPropertyTypes") + ] + uint32 PropertyUint32; + + [ Description ("a uint64 property of JMPIExpInstance_TestPropertyTypes") + ] + uint64 PropertyUint64; + + [ Description ("a sint8 property of JMPIExpInstance_TestPropertyTypes") + ] + sint8 PropertySint8; + + [ Description ("a sint16 property of JMPIExpInstance_TestPropertyTypes") + ] + sint16 PropertySint16; + + [ Description ("a sint32 property of JMPIExpInstance_TestPropertyTypes") + ] + sint32 PropertySint32; + + [ Description ("a sint64 property of JMPIExpInstance_TestPropertyTypes") + ] + sint64 PropertySint64; + + [ Description ("a boolean property of JMPIExpInstance_TestPropertyTypes") + ] + boolean PropertyBoolean; + + [ Description ("a real32 property of JMPIExpInstance_TestPropertyTypes") + ] + real32 PropertyReal32; + + [ Description ("a real64 property of JMPIExpInstance_TestPropertyTypes") + ] + real64 PropertyReal64; + + [ Description ("a datetime property of JMPIExpInstance_TestPropertyTypes") + ] + datetime PropertyDatetime; + + [ Description ("a char16 property of JMPIExpInstance_TestPropertyTypes") + ] + char16 PropertyChar16; + + [ Description ("an object property of JMPIExpInstance_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyObject; + +// [ Description ("a reference property of JMPIExpInstance_TestPropertyTypes") +// ] +// ref PropertyReference; + + [ Description ("an array of uint8s property of JMPIExpInstance_TestPropertyTypes") + ] + uint8 PropertyArrayUint8[]; + + [ Description ("an array of uint16s property of JMPIExpInstance_TestPropertyTypes") + ] + uint16 PropertyArrayUint16[]; + + [ Description ("an array of uint32s property of JMPIExpInstance_TestPropertyTypes") + ] + uint32 PropertyArrayUint32[]; + + [ Description ("an array of uint64s property of JMPIExpInstance_TestPropertyTypes") + ] + uint64 PropertyArrayUint64[]; + + [ Description ("an array of sint8s property of JMPIExpInstance_TestPropertyTypes") + ] + sint8 PropertyArraySint8[]; + + [ Description ("an array of sint16s property of JMPIExpInstance_TestPropertyTypes") + ] + sint16 PropertyArraySint16[]; + + [ Description ("an array of sint32s property of JMPIExpInstance_TestPropertyTypes") + ] + sint32 PropertyArraySint32[]; + + [ Description ("an array of sint64s property of JMPIExpInstance_TestPropertyTypes") + ] + sint64 PropertyArraySint64[]; + + [ Description ("an array of booleans property of JMPIExpInstance_TestPropertyTypes") + ] + boolean PropertyArrayBoolean[]; + + [ Description ("an array of real32s property of JMPIExpInstance_TestPropertyTypes") + ] + real32 PropertyArrayReal32[]; + + [ Description ("an array of real64s property of JMPIExpInstance_TestPropertyTypes") + ] + real64 PropertyArrayReal64[]; + + [ Description ("an array of datetimes property of JMPIExpInstance_TestPropertyTypes") + ] + datetime PropertyArrayDatetime[]; + + [ Description ("an array of char16s property of JMPIExpInstance_TestPropertyTypes") + ] + char16 PropertyArrayChar16[]; + + [ Description ("an object property of JMPIExpInstance_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyArrayObject[]; + + [ Description ("a function that returns a string which says hello") + ] + String sayHello (); + + [ Description ("a function which tells the provider to allow modifications") + ] + boolean enableModifications (boolean fState); +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProviderR.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProviderR.mof new file mode 100644 index 000000000..7da397f49 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIExpInstanceProviderR.mof @@ -0,0 +1,73 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +instance of PG_ProviderModule +{ + Name = "JMPIExpInstanceProviderModule"; + Location = "JMPIExpInstanceProvider.jar:Instances/JMPIExpInstanceProvider"; + Vendor = "OpenPegasus"; + Version = "2.0.0"; + InterfaceType = "JMPIExperimental"; + InterfaceVersion = "0.0.1"; +}; + +instance of PG_Provider +{ + ProviderModuleName = "JMPIExpInstanceProviderModule"; + Name = "JMPIExpInstanceProvider"; +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPIExpInstanceProviderModule"; + ProviderName = "JMPIExpInstanceProvider"; + CapabilityID = "JMPIExpInstance_TestElement"; + ClassName = "JMPIExpInstance_TestElement"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2 }; // Instance + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPIExpInstanceProviderModule"; + ProviderName = "JMPIExpInstanceProvider"; + CapabilityID = "JMPIExpInstance_TestPropertyTypes"; + ClassName = "JMPIExpInstance_TestPropertyTypes"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2, 5, 7 }; // Instance, Method, and InstanceQuery + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.java new file mode 100644 index 000000000..a8cc8aa51 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.java @@ -0,0 +1,241 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Adrian Schuur schuur@deibm.com +// +// Modified By: Mark Hamzy, hamzy@us.ibm.com +// +// +// This code is based on TestPropertyTypes.cpp +// +// Original Author: Yi Zhou (yi_zhou@hp.com) +// +// Original Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) +// Sushma Fernandes, Hewlett-Packard Company +// (sushma_fernandes@hp.com) +// Carol Ann Krug Graves, Hewlett-Packard Company +// (carolann_graves@hp.com) +// +//%///////////////////////////////////////////////////////////////////////////// +package Instances; + +import java.util.Vector; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.InstanceProvider; +import org.pegasus.jmpi.MethodProvider; + +public class JMPIInstanceProvider + implements InstanceProvider, + MethodProvider +{ + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + } + + cip = new CommonInstanceProvider ("JMPIInstanceProvider", + "root/SampleProvider", + "JMPIInstance_TestElement", + "JMPIInstance_TestPropertyTypes"); + + if (cip != null) + { + cip.initialize (ch); + } + } + + public void cleanup () + throws CIMException + { + if (cip != null) + { + cip.cleanup (); + + cip = null; + } + } + + public CIMObjectPath createInstance (CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + return cip.createInstance (null, // oc, + cop, + cimInstance); + } + else + { + return null; + } + } + + public CIMInstance getInstance (CIMObjectPath cop, + CIMClass cimClass, + boolean localOnly) + throws CIMException + { + if (cip != null) + { + return cip.getInstance (null, // oc, + cop, + cimClass, + true, // includeQualifiers, + true, // includeClassOrigin, + localOnly, + null); // propertyList); + } + else + { + return null; + } + } + + public void setInstance (CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (cip != null) + { + cip.setInstance (null, // oc, + cop, + cimInstance, + true, // includeQualifiers, + null); // propertyList); + } + } + + public void deleteInstance (CIMObjectPath cop) + throws CIMException + { + if (cip != null) + { + cip.deleteInstance (null, // oc, + cop); + } + } + + // enumerateInstanceNames + public Vector enumInstances (CIMObjectPath cop, + boolean deepInheritance, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + return cip.enumerateInstanceNames (null, // oc, + cop, + deepInheritance, + cimClass); + } + else + { + return null; + } + } + + // enumerateInstances + public Vector enumInstances (CIMObjectPath cop, + boolean deepInheritance, + CIMClass cimClass, + boolean localOnly) + throws CIMException + { + if (cip != null) + { + return cip.enumerateInstances (null, // oc, + cop, + cimClass, + deepInheritance, + localOnly, + true, // includeQualifiers, + true, // includeClassOrigin, + null); // propertyList); + } + else + { + return null; + } + } + + public Vector execQuery (CIMObjectPath cop, + String queryStatement, + int queryLanguage, + CIMClass cimClass) + throws CIMException + { + if (cip != null) + { + String queryLanguageString = "WQL"; // @TBD + + return cip.execQuery (null, // oc, + cop, + queryStatement, + queryLanguageString, + cimClass); + } + else + { + return null; + } + } + + public CIMValue invokeMethod (CIMObjectPath cop, + String methodName, + Vector in, + Vector out) + throws CIMException + { + if (cip != null) + { + return cip.invokeMethod (null, // oc, + cop, + methodName, + in, + out); + } + else + { + return null; + } + } + + private CommonInstanceProvider cip = null; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.mof new file mode 100644 index 000000000..3add3db44 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProvider.mof @@ -0,0 +1,200 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +// ================================================================== +// JMPIInstance_TestElement +// ================================================================== +[ Abstract, + Version ("2.2.0"), + Description ("JMPIInstance_TestElement is an abstract class that provides a common " + "superclass (or top of the inheritance tree) for the " + "non-association classes in the test Schema.") +] +class JMPIInstance_TestElement +{ + [ Key, + MaxLen (256), + Description ("CreationClassName indicates the name of the class or the " + "subclass used in the creation of an instance. When used " + "with the other key properties of this class, this property " + "allows all instances of this class and its subclasses to " + "be uniquely identified.") + ] + string CreationClassName; + + [ Key, + Description ("An identifier that uniquely identifies each instance " + "of the JMPIInstance_TestElement hierarchy.") + ] + uint64 InstanceId; +}; + +// =================================================================== +// JMPIInstance_TestPropertyTypes +// =================================================================== +[ Version ("2.2.0"), + Description ("JMPIInstance_TestPropertyTypes is a concrete class derived from " + "JMPIInstance_TestElement"), + provider ("JMPIInstance_TestPropertyTypes") +] +class JMPIInstance_TestPropertyTypes : JMPIInstance_TestElement +{ + [ Maxlen (256), + Description ("a string property of JMPIInstance_TestPropertyTypes") + ] + string PropertyString; + + [ Description ("a uint8 property of JMPIInstance_TestPropertyTypes") + ] + uint8 PropertyUint8; + + [ Description ("a uint16 property of JMPIInstance_TestPropertyTypes") + ] + uint16 PropertyUint16; + + [ Description ("a uint32 property of JMPIInstance_TestPropertyTypes") + ] + uint32 PropertyUint32; + + [ Description ("a uint64 property of JMPIInstance_TestPropertyTypes") + ] + uint64 PropertyUint64; + + [ Description ("a sint8 property of JMPIInstance_TestPropertyTypes") + ] + sint8 PropertySint8; + + [ Description ("a sint16 property of JMPIInstance_TestPropertyTypes") + ] + sint16 PropertySint16; + + [ Description ("a sint32 property of JMPIInstance_TestPropertyTypes") + ] + sint32 PropertySint32; + + [ Description ("a sint64 property of JMPIInstance_TestPropertyTypes") + ] + sint64 PropertySint64; + + [ Description ("a boolean property of JMPIInstance_TestPropertyTypes") + ] + boolean PropertyBoolean; + + [ Description ("a real32 property of JMPIInstance_TestPropertyTypes") + ] + real32 PropertyReal32; + + [ Description ("a real64 property of JMPIInstance_TestPropertyTypes") + ] + real64 PropertyReal64; + + [ Description ("a datetime property of JMPIInstance_TestPropertyTypes") + ] + datetime PropertyDatetime; + + [ Description ("a char16 property of JMPIInstance_TestPropertyTypes") + ] + char16 PropertyChar16; + + [ Description ("an object property of JMPIInstance_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyObject; + +// [ Description ("a reference property of JMPIInstance_TestPropertyTypes") +// ] +// ref PropertyReference; + + [ Description ("an array of uint8s property of JMPIInstance_TestPropertyTypes") + ] + uint8 PropertyArrayUint8[]; + + [ Description ("an array of uint16s property of JMPIInstance_TestPropertyTypes") + ] + uint16 PropertyArrayUint16[]; + + [ Description ("an array of uint32s property of JMPIInstance_TestPropertyTypes") + ] + uint32 PropertyArrayUint32[]; + + [ Description ("an array of uint64s property of JMPIInstance_TestPropertyTypes") + ] + uint64 PropertyArrayUint64[]; + + [ Description ("an array of sint8s property of JMPIInstance_TestPropertyTypes") + ] + sint8 PropertyArraySint8[]; + + [ Description ("an array of sint16s property of JMPIInstance_TestPropertyTypes") + ] + sint16 PropertyArraySint16[]; + + [ Description ("an array of sint32s property of JMPIInstance_TestPropertyTypes") + ] + sint32 PropertyArraySint32[]; + + [ Description ("an array of sint64s property of JMPIInstance_TestPropertyTypes") + ] + sint64 PropertyArraySint64[]; + + [ Description ("an array of booleans property of JMPIInstance_TestPropertyTypes") + ] + boolean PropertyArrayBoolean[]; + + [ Description ("an array of real32s property of JMPIInstance_TestPropertyTypes") + ] + real32 PropertyArrayReal32[]; + + [ Description ("an array of real64s property of JMPIInstance_TestPropertyTypes") + ] + real64 PropertyArrayReal64[]; + + [ Description ("an array of datetimes property of JMPIInstance_TestPropertyTypes") + ] + datetime PropertyArrayDatetime[]; + + [ Description ("an array of char16s property of JMPIInstance_TestPropertyTypes") + ] + char16 PropertyArrayChar16[]; + + [ Description ("an object property of JMPIInstance_TestPropertyTypes"), + EmbeddedObject + ] + string PropertyArrayObject[]; + + [ Description ("a function that returns a string which says hello") + ] + String sayHello (); + + [ Description ("a function which tells the provider to allow modifications") + ] + boolean enableModifications (boolean fState); +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProviderR.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProviderR.mof new file mode 100644 index 000000000..a770ea12f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/JMPIInstanceProviderR.mof @@ -0,0 +1,73 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +instance of PG_ProviderModule +{ + Name = "JMPIInstanceProviderModule"; + Location = "JMPIInstanceProvider.jar:Instances/JMPIInstanceProvider"; + Vendor = "OpenPegasus"; + Version = "2.0.0"; + InterfaceType = "JMPI"; + InterfaceVersion = "1.0.0"; +}; + +instance of PG_Provider +{ + ProviderModuleName = "JMPIInstanceProviderModule"; + Name = "JMPIInstanceProvider"; +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPIInstanceProviderModule"; + ProviderName = "JMPIInstanceProvider"; + CapabilityID = "JMPIInstance_TestElement"; + ClassName = "JMPIInstance_TestElement"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2 }; // Instance + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPIInstanceProviderModule"; + ProviderName = "JMPIInstanceProvider"; + CapabilityID = "JMPIInstance_TestPropertyTypes"; + ClassName = "JMPIInstance_TestPropertyTypes"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2, 5, 7 }; // Instance, Method, and InstanceQuery + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/Makefile new file mode 100644 index 000000000..2e5a78613 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Instances/Makefile @@ -0,0 +1,187 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/mak/configschema.mak +include $(PEGASUS_ROOT)/test/config.mak + +.SUFFIXES: .java .class .jar + +.java.class: +# Note: .. included in path to compile package helper classes if necessary + javac -classpath $(PEGASUS_HOME)/lib/JMPIImpl.jar:.. $*.java + +NAMESPACE = root/SampleProvider +PACKAGEDIR = Instances/ +JAR1 = JMPIExpInstanceProvider.jar +JAR1CLASSES = \ + JMPIExpInstanceProvider.class +EXTRAJAR1CLASSES = \ + CommonInstanceProvider.class \ + CommonInstanceProvider\$$1.class \ + CommonInstanceProvider\$$CIMInstanceComparer.class \ + CommonInstanceProvider\$$CIMObjectPathComparer.class \ + CommonInstanceProvider\$$Compare.class \ + CommonInstanceProvider\$$SortableVector.class +JAR2 = JMPIInstanceProvider.jar +JAR2CLASSES = \ + JMPIInstanceProvider.class +EXTRAJAR2CLASSES = \ + CommonInstanceProvider.class \ + CommonInstanceProvider\$$1.class \ + CommonInstanceProvider\$$CIMInstanceComparer.class \ + CommonInstanceProvider\$$CIMObjectPathComparer.class \ + CommonInstanceProvider\$$Compare.class \ + CommonInstanceProvider\$$SortableVector.class +JAR3 = JMPICIMInstanceProvider.jar +JAR3CLASSES = \ + JMPICIMInstanceProvider.class +EXTRAJAR3CLASSES = \ + CommonInstanceProvider.class \ + CommonInstanceProvider\$$1.class \ + CommonInstanceProvider\$$CIMInstanceComparer.class \ + CommonInstanceProvider\$$CIMObjectPathComparer.class \ + CommonInstanceProvider\$$Compare.class \ + CommonInstanceProvider\$$SortableVector.class +JAR4 = JMPICIMInstance2Provider.jar +JAR4CLASSES = \ + JMPICIMInstance2Provider.class +EXTRAJAR4CLASSES = \ + CommonInstanceProvider.class \ + CommonInstanceProvider\$$1.class \ + CommonInstanceProvider\$$CIMInstanceComparer.class \ + CommonInstanceProvider\$$CIMObjectPathComparer.class \ + CommonInstanceProvider\$$Compare.class \ + CommonInstanceProvider\$$SortableVector.class +JARS = $(JAR1) $(JAR2) $(JAR3) $(JAR4) + +LOCAL_CLEAN_TARGET = \ + $(JAR1CLASSES) $(EXTRAJAR1CLASSES) $(addprefix $(PEGASUS_HOME)/lib/,$(JAR1)) \ + $(JAR2CLASSES) $(EXTRAJAR2CLASSES) $(addprefix $(PEGASUS_HOME)/lib/,$(JAR2)) \ + $(JAR3CLASSES) $(EXTRAJAR3CLASSES) $(addprefix $(PEGASUS_HOME)/lib/,$(JAR3)) \ + $(JAR4CLASSES) $(EXTRAJAR4CLASSES) $(addprefix $(PEGASUS_HOME)/lib/,$(JAR4)) + +all build: $(addprefix $(PEGASUS_HOME)/lib/,$(JARS)) + +depend: + +clean: + $(RM) $(LOCAL_CLEAN_TARGET) + +repository: cimmofl_repository + +cimmofl_repository: + @$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR1)) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR1)).mof + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR1))R.mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR2)) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR2)).mof + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR2))R.mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR3)) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR3)).mof + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR3))R.mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR4)) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR4)).mof + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR4))R.mof + +cimmof_repository: + @$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR1)) into $(NAMESPACE) namespace ... + @cimmof -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR1)).mof + @cimmof -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR1))R.mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR2)) into $(NAMESPACE) namespace ... + @cimmof -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR2)).mof + @cimmof -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR2))R.mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR3)) into $(NAMESPACE) namespace ... + @cimmof -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR3)).mof + @cimmof -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR3))R.mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR4)) into $(NAMESPACE) namespace ... + @cimmof -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR4)).mof + @cimmof -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR4))R.mof + +poststarttests: $(addprefix $(PEGASUS_HOME)/lib/,$(JARS)) + CLI im -n $(NAMESPACE) 'JMPIExpInstance_TestPropertyTypes' 'resetProvider' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPIExpInstance_TestPropertyTypes.CreationClassName="JMPIExpInstance_TestPropertyTypes",InstanceId=1' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPIExpInstance_TestPropertyTypes.CreationClassName="JMPIExpInstance_TestPropertyTypes",InstanceId=2' + CLI ni --sum -count 2 -n $(NAMESPACE) 'JMPIExpInstance_TestPropertyTypes' + CLI ei --sum -count 2 -n $(NAMESPACE) 'JMPIExpInstance_TestPropertyTypes' + CLI im -n $(NAMESPACE) 'JMPIExpInstance_TestPropertyTypes' 'enableModifications' 'fState=true' + + CLI im -n $(NAMESPACE) 'JMPIInstance_TestPropertyTypes' 'resetProvider' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPIInstance_TestPropertyTypes.CreationClassName="JMPIInstance_TestPropertyTypes",InstanceId=1' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPIInstance_TestPropertyTypes.CreationClassName="JMPIInstance_TestPropertyTypes",InstanceId=2' + CLI ni --sum -count 2 -n $(NAMESPACE) 'JMPIInstance_TestPropertyTypes' + CLI ei --sum -count 2 -n $(NAMESPACE) 'JMPIInstance_TestPropertyTypes' + CLI im -n $(NAMESPACE) 'JMPIInstance_TestPropertyTypes' 'enableModifications' 'fState=true' + + CLI im -n $(NAMESPACE) 'JMPICIMInstance_TestPropertyTypes' 'resetProvider' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPICIMInstance_TestPropertyTypes.CreationClassName="JMPICIMInstance_TestPropertyTypes",InstanceId=1' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPICIMInstance_TestPropertyTypes.CreationClassName="JMPICIMInstance_TestPropertyTypes",InstanceId=2' + CLI ni --sum -count 2 -n $(NAMESPACE) 'JMPICIMInstance_TestPropertyTypes' + CLI ei --sum -count 2 -n $(NAMESPACE) 'JMPICIMInstance_TestPropertyTypes' + CLI im -n $(NAMESPACE) 'JMPICIMInstance_TestPropertyTypes' 'enableModifications' 'fState=true' + + CLI im -n $(NAMESPACE) 'JMPICIMInstance2_TestPropertyTypes' 'resetProvider' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPICIMInstance2_TestPropertyTypes.CreationClassName="JMPICIMInstance2_TestPropertyTypes",InstanceId=1' + CLI gi --sum -count 1 -n $(NAMESPACE) 'JMPICIMInstance2_TestPropertyTypes.CreationClassName="JMPICIMInstance2_TestPropertyTypes",InstanceId=2' + CLI ni --sum -count 2 -n $(NAMESPACE) 'JMPICIMInstance2_TestPropertyTypes' + CLI ei --sum -count 2 -n $(NAMESPACE) 'JMPICIMInstance2_TestPropertyTypes' + CLI im -n $(NAMESPACE) 'JMPICIMInstance2_TestPropertyTypes' 'enableModifications' 'fState=true' + +poststarttests2: + CLI xq -n $(NAMESPACE) 'SELECT InstanceId FROM JMPIExpInstance_TestPropertyTypes WHERE InstanceId = 1' 'WQL' + +$(PEGASUS_HOME)/lib/$(JAR1): $(JAR1CLASSES) CommonInstanceProvider.class + jar -cf $@ $(addprefix -C .. $(PACKAGEDIR),$^) $(addprefix -C .. $(PACKAGEDIR),$(EXTRAJAR1CLASSES)) + +$(PEGASUS_HOME)/lib/$(JAR2): $(JAR2CLASSES) CommonInstanceProvider.class + jar -cf $@ $(addprefix -C .. $(PACKAGEDIR),$^) $(addprefix -C .. $(PACKAGEDIR),$(EXTRAJAR2CLASSES)) + +$(PEGASUS_HOME)/lib/$(JAR3): $(JAR3CLASSES) CommonInstanceProvider.class + jar -cf $@ $(addprefix -C .. $(PACKAGEDIR),$^) $(addprefix -C .. $(PACKAGEDIR),$(EXTRAJAR3CLASSES)) + +$(PEGASUS_HOME)/lib/$(JAR4): $(JAR4CLASSES) CommonInstanceProvider.class + jar -cf $@ $(addprefix -C .. $(PACKAGEDIR),$^) $(addprefix -C .. $(PACKAGEDIR),$(EXTRAJAR4CLASSES)) + +#include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.java b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.java new file mode 100644 index 000000000..f87104538 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.java @@ -0,0 +1,776 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +// +// Author: Mark Hamzy, hamzy@us.ibm.com +// +// Modified By: +// +//%///////////////////////////////////////////////////////////////////////////// +package Properties; + +import java.util.Vector; +import java.util.HashMap; +import java.util.Iterator; +import org.pegasus.jmpi.CIMClass; +import org.pegasus.jmpi.CIMDataType; +import org.pegasus.jmpi.CIMException; +import org.pegasus.jmpi.CIMInstance; +import org.pegasus.jmpi.CIMObjectPath; +import org.pegasus.jmpi.CIMOMHandle; +import org.pegasus.jmpi.CIMProperty; +import org.pegasus.jmpi.CIMValue; +import org.pegasus.jmpi.InstanceProvider; +import org.pegasus.jmpi.PropertyProvider; +import org.pegasus.jmpi.UnsignedInt8; +import org.pegasus.jmpi.UnsignedInt16; +import org.pegasus.jmpi.UnsignedInt32; +import org.pegasus.jmpi.UnsignedInt64; + +public class JMPIPropertyProvider + implements InstanceProvider, + PropertyProvider +{ + private CIMOMHandle ch = null; + private SortableVector paths = new SortableVector (new CIMObjectPathComparer ()); + private SortableVector instances = new SortableVector (new CIMInstanceComparer ()); + private boolean fEnableModifications = true; + private final boolean DEBUG = true; + + public class ConvertibleVector extends Vector + { + public Object buildArray (Class type) + { + Object copy = java.lang.reflect.Array.newInstance (type, elementCount); + + System.arraycopy (elementData, 0, copy, 0, elementCount); + + return copy; + } + + // Assumes there's at least one element and it's not null! + public Object buildArray () + { + if (elementCount > 0 && elementData[0] != null) + { + return buildArray (elementData[0].getClass ()); + } + else + { + throw new IllegalArgumentException ("cannot convert to array"); + } + } + } + + private interface Compare + { + abstract boolean lessThan (Object lhs, Object rhs); + abstract boolean lessThanOrEqual (Object lhs, Object rhs); + } + + private class SortableVector + extends Vector + { + private Compare compare; + + public SortableVector (Compare compare) + { + this.compare = compare; + } + + public void sort () + { + quickSort (0, size() - 1); + } + + private void quickSort (int left, int right) + { + if (right > left) + { + Object o1 = elementAt (right); + int i = left - 1; + int j = right; + + while (true) + { + while (compare.lessThan (elementAt (++i), o1)) + ; + + while (j > 0) + if(compare.lessThanOrEqual (elementAt (--j), o1)) + break; + + if (i >= j) + break; + + swap (i, j); + } + + swap (i , right); + quickSort (left, i - 1); + quickSort (i + 1, right); + } + } + + private void swap (int loc1, int loc2) + { + Object tmp = elementAt(loc1); + + setElementAt (elementAt (loc2), loc1); + setElementAt (tmp, loc2); + } + } + + private class CIMInstanceComparer + implements Compare + { + private int getInstanceId (Object o) + { + try + { + CIMInstance ci = (CIMInstance)o; + CIMProperty cp = ci.getProperty ("InstanceId"); + UnsignedInt64 id = (UnsignedInt64)cp.getValue ().getValue (); + + return id.intValue (); + } + catch (Exception e) + { + return 0; + } + } + + public boolean lessThan (Object lhs, Object rhs) + { + return getInstanceId (lhs) < getInstanceId (rhs); + } + + public boolean lessThanOrEqual (Object lhs, Object rhs) + { + return getInstanceId (lhs) <= getInstanceId (rhs); + } + } + + private class CIMObjectPathComparer + implements Compare + { + private int getInstanceId (Object o) + { + try + { + CIMObjectPath cop = (CIMObjectPath)o; + String value = cop.getKeyValue ("InstanceId"); + UnsignedInt64 id = new UnsignedInt64 (value); + + return id.intValue (); + } + catch (Exception e) + { + return 0; + } + } + + public boolean lessThan (Object lhs, Object rhs) + { + return getInstanceId (lhs) < getInstanceId (rhs); + } + + public boolean lessThanOrEqual (Object lhs, Object rhs) + { + return getInstanceId (lhs) <= getInstanceId (rhs); + } + } + + public void initialize (CIMOMHandle ch) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::initialize: ch = " + ch); + } + + this.ch = ch; + + CIMInstance instance1 = new CIMInstance (CLASS_PROPERTYTYPES); + + instance1.setProperty ("CreationClassName", new CIMValue (new String (CLASS_PROPERTYTYPES))); + instance1.setProperty ("InstanceId", new CIMValue (new UnsignedInt64 ("1"))); + instance1.setProperty ("PropertyString", new CIMValue (new String ("A first property string."))); + + instances.addElement (instance1); + + CIMInstance instance2 = new CIMInstance (CLASS_PROPERTYTYPES); + + instance2.setProperty ("CreationClassName", new CIMValue (new String (CLASS_PROPERTYTYPES))); + instance2.setProperty ("InstanceId", new CIMValue (new UnsignedInt64 ("2"))); + instance2.setProperty ("PropertyString", new CIMValue (new String ("The second property string."))); + + instances.addElement (instance2); + + CIMObjectPath cop1 = new CIMObjectPath (CLASS_PROPERTYTYPES, NAMESPACE); + + cop1.addKey ("CreationClassName", new CIMValue (new String (CLASS_PROPERTYTYPES))); + cop1.addKey ("InstanceId", new CIMValue (new UnsignedInt64 ("1"))); + cop1.addKey ("PropertyString", new CIMValue (new String ("A first property string."))); + + paths.addElement (cop1); + + CIMObjectPath cop2 = new CIMObjectPath (CLASS_PROPERTYTYPES, NAMESPACE); + + cop2.addKey ("CreationClassName", new CIMValue (new String (CLASS_PROPERTYTYPES))); + cop2.addKey ("InstanceId", new CIMValue (new UnsignedInt64 ("2"))); + cop2.addKey ("PropertyString", new CIMValue (new String ("The second property string."))); + + paths.addElement (cop2); + } + + public void cleanup () + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::cleanup"); + } + } + + public CIMObjectPath createInstance (CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::createInstance: cop = " + cop); + System.err.println ("JMPIPropertyProvider::createInstance: cimInstance = " + cimInstance); + } + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + // Ensure that the instance contains the required keys + cop = validateInstance (cimInstance, false); + + if (cop == null) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + + // ensure the property values are valid + testPropertyTypesValue (cimInstance); + + // ensure the requested object does not exist + if (findObjectPath (cop) >= 0) + throw new CIMException (CIMException.CIM_ERR_ALREADY_EXISTS); + + if (fEnableModifications) + { + paths.addElement (cop); + instances.addElement (cimInstance); + + paths.sort (); + instances.sort (); + + return cop; + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + + public CIMInstance getInstance (CIMObjectPath cop, + CIMClass cimClass, + boolean localOnly) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::getInstance: cop = " + cop); + System.err.println ("JMPIPropertyProvider::getInstance: cimClass = " + cimClass); + System.err.println ("JMPIPropertyProvider::getInstance: localOnly = " + localOnly); + } + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + // ensure the InstanceId key is valid + Vector keys = cop.getKeys (); + int i; + + for (i = 0; + i < keys.size () + && !((CIMProperty)keys.elementAt (i)).getName ().equalsIgnoreCase ("InstanceId"); + i++) + { + } + + if (i == keys.size ()) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + + // ensure the request object exists + int index = findObjectPath (cop); + + if (index < 0) + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + + return (CIMInstance)instances.elementAt (index); + } + + public void setInstance (CIMObjectPath cop, + CIMInstance cimInstance) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setInstance: cop = " + cop); + System.err.println ("JMPIPropertyProvider::setInstance: cimInstance = " + cimInstance); + } + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + // ensure the property values are valid + testPropertyTypesValue (cimInstance); + + // ensure the request object exists + int index = findObjectPath (cop); + + if (index < 0) + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + + if (fEnableModifications) + { + paths.removeElementAt (index); + instances.removeElementAt (index); + + paths.addElement (cop); + instances.addElement (cimInstance); + + paths.sort (); + instances.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + + public void deleteInstance (CIMObjectPath cop) + throws CIMException + { + if (DEBUG) + System.err.println ("JMPIPropertyProvider::deleteInstance: cop = " + cop); + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + // ensure the request object exists + int index = findObjectPath (cop); + + if (index < 0) + throw new CIMException (CIMException.CIM_ERR_NOT_FOUND); + + if (fEnableModifications) + { + paths.removeElementAt (index); + instances.removeElementAt (index); + + paths.sort (); + instances.sort (); + } + else + { + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + } + } + + public Vector enumInstances (CIMObjectPath cop, + boolean deep, + CIMClass cimClass) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::enumInstances: cop = " + cop); + System.err.println ("JMPIPropertyProvider::enumInstances: deep = " + deep); + System.err.println ("JMPIPropertyProvider::enumInstances: cimClass = " + cimClass); + } + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + return paths; + } + + public Vector enumInstances (CIMObjectPath cop, + boolean deep, + CIMClass cimClass, + boolean localOnly) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::enumInstances: cop = " + cop); + System.err.println ("JMPIPropertyProvider::enumInstances: deep = " + deep); + System.err.println ("JMPIPropertyProvider::enumInstances: cimClass = " + cimClass); + System.err.println ("JMPIPropertyProvider::enumInstances: localOnly = " + localOnly); + } + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + return instances; + } + + public Vector execQuery (CIMObjectPath cop, + String queryStatement, + int queryLanguage, + CIMClass cimClass) + throws CIMException + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::execQuery: cop = " + cop); + System.err.println ("JMPIPropertyProvider::execQuery: queryStatement = " + queryStatement); + System.err.println ("JMPIPropertyProvider::execQuery: queryLanguage = " + queryLanguage); + System.err.println ("JMPIPropertyProvider::execQuery: cimClass = " + cimClass); + } + + // ensure the Namespace is valid + if (!cop.getNameSpace ().equalsIgnoreCase (NAMESPACE)) + throw new CIMException (CIMException.CIM_ERR_INVALID_NAMESPACE); + + // ensure the class existing in the specified namespace + if (!cop.getObjectName ().equalsIgnoreCase (CLASS_PROPERTYTYPES)) + throw new CIMException (CIMException.CIM_ERR_INVALID_CLASS); + + throw new CIMException (CIMException.CIM_ERR_NOT_SUPPORTED); + } + + public void setPropertyValue (CIMObjectPath cop, + String oclass, + String pName, + CIMValue val) + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cop = " + cop ); + System.err.println ("JMPIPropertyProvider::setPropertyValue: oclass = " + oclass); + System.err.println ("JMPIPropertyProvider::setPropertyValue: pName = " + pName ); + System.err.println ("JMPIPropertyProvider::setPropertyValue: val = " + val ); + } + + try + { + CIMInstance cimInstance = getInstance (cop, new CIMClass (oclass), true); + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cimInstance = " + cimInstance); + } + + CIMProperty cp = cimInstance.getProperty (pName); + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cp = " + cp); + } + + cp.setValue (val); + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cp = " + cp); + } + } + catch (Exception e) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: caught = " + e); + } + } + + public CIMValue getPropertyValue (CIMObjectPath cop, + String oclass, + String pName) + { + CIMValue cv = null; + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cop = " + cop ); + System.err.println ("JMPIPropertyProvider::setPropertyValue: oclass = " + oclass); + System.err.println ("JMPIPropertyProvider::setPropertyValue: pName = " + pName ); + } + + try + { + CIMInstance cimInstance = getInstance (cop, new CIMClass (oclass), true); + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cimInstance = " + cimInstance); + } + + CIMProperty cp = cimInstance.getProperty (pName); + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cp = " + cp); + } + + if (cp != null) + { + cv = cp.getValue (); + } + + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: cv = " + cv); + } + } + catch (Exception e) + { + System.err.println ("JMPIPropertyProvider::setPropertyValue: caught = " + e); + } + + return cv; + } + + private CIMObjectPath validateInstance (CIMInstance cimInstance, + boolean fStrict) + { + if (cimInstance.getPropertyCount () != PROPERTYTYPES_PROPS.length) + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::validateInstance: Bad1: " + cimInstance.getPropertyCount () + " != " + PROPERTYTYPES_PROPS.length); + } + + if (fStrict) + { + return null; + } + } + for (int i = 0, m = PROPERTYTYPES_PROPS.length; i < m; i++) + { + CIMProperty cp = cimInstance.getProperty (PROPERTYTYPES_PROPS[i]); + if (cp == null) + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::validateInstance: Bad2: " + PROPERTYTYPES_PROPS[i]); + } + + if (fStrict) + { + return null; + } + } + } + + CIMObjectPath ret = new CIMObjectPath (CLASS_PROPERTYTYPES, + NAMESPACE); + + for (int i = 0, m = PROPERTYTYPES_KEYS.length; i < m; i++) + { + CIMProperty cp = cimInstance.getProperty (PROPERTYTYPES_KEYS[i]); + + if (cp != null) + { + ret.addKey (PROPERTYTYPES_KEYS[i], + cp.getValue ()); + } + else + { + if (DEBUG) + { + System.err.println ("JMPIPropertyProvider::validateInstance: Bad3: " + PROPERTYTYPES_KEYS[i]); + } + + return null; + } + } + + return ret; + } + + private int findObjectPath (CIMObjectPath path) + { + HashMap hashPaths = new HashMap (); + String p = path.toString (); + + if (DEBUG) + { + System.out.println ("JMPIPropertyProvider::findObjectPath: comparing \"" + p + "\""); + } + + // Iterate through each ObjectPath in our ObjectPaths + for (int i = 0; i < paths.size (); i++) + { + HashMap hashCop = new HashMap (); + CIMObjectPath cop = (CIMObjectPath)paths.elementAt (i); + Vector keysPath = path.getKeys (); + + if (DEBUG) + { + System.out.println ("JMPIPropertyProvider::findObjectPath: to \"" + cop + "\""); + } + + // Iterate though each property in the ObjectPath + for (int idxPath = 0; idxPath < keysPath.size (); idxPath++) + { + CIMProperty cp = (CIMProperty)keysPath.elementAt (idxPath); + String cpKeyValue = cp.getValue ().toString (); + String copKeyValue = cop.getKeyValue (cp.getName ()); + + if (DEBUG) + { + System.out.println ("JMPIPropertyProvider::findObjectPath: cpKeyValue \"" + cpKeyValue + "\""); + System.out.println ("JMPIPropertyProvider::findObjectPath: copKeyValue \"" + copKeyValue + "\""); + } + + // Compare the property values and save it for later + hashCop.put (cp.toString (), new Boolean (cpKeyValue.equals (copKeyValue))); + } + + // Save the result of all of the property comparisons + hashPaths.put (cop, hashCop); + } + + if (DEBUG) + { + System.out.println ("JMPIPropertyProvider::findObjectPath: hashPaths = " + hashPaths); + } + + Iterator itrHashPaths = hashPaths.keySet ().iterator (); + + // Iterate through all of our results + while (itrHashPaths.hasNext ()) + { + Object key = itrHashPaths.next (); + HashMap hash = (HashMap)hashPaths.get (key); + boolean found = true; + Iterator itrHash = hash.values ().iterator (); + + while (itrHash.hasNext ()) + { + if (!((Boolean)itrHash.next ()).booleanValue ()) + { + found = false; + } + } + + if (DEBUG) + { + System.out.println ("JMPIPropertyProvider::findObjectPath: found = " + found + ", key = " + key); + } + + // Were they all equal? + if (found) + { + // Return the index of it + return paths.indexOf (key); + } + } + + return -1; + } + + private void testPropertyTypesValue (CIMInstance instanceObject) + throws CIMException + { + Vector properties = instanceObject.getProperties (); + int iPropertyCount = properties.size (); + + for (int j = 0; j < iPropertyCount; j++) + { + CIMProperty property = (CIMProperty)properties.elementAt (j); + String propertyName = property.getName (); + CIMValue propertyValue = property.getValue (); + Object value = propertyValue.getValue (); + int type = property.getType ().getType (); + + switch (type) + { + case CIMDataType.UINT64: + if (!(value instanceof UnsignedInt64)) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + if (((UnsignedInt64)value).longValue () >= 1000000000) + throw new CIMException (CIMException.CIM_ERR_INVALID_PARAMETER); + break; + default: + break; + } + } + } + + private static final String NAMESPACE = "root/SampleProvider"; + private static final String NAMESPACE_INTEROP = "root/PG_InterOp"; + + // Class names + private static final String CLASS_PROPERTYTYPES = "JMPIProperty_TestPropertyTypes"; + + private final String[] PROPERTYTYPES_KEYS = { + "CreationClassName", + "InstanceId" + }; + private final String[] PROPERTYTYPES_PROPS = { + "CreationClassName", + "InstanceId", + "PropertyString", + }; +} diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.mof new file mode 100644 index 000000000..5a9b2ba44 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.mof @@ -0,0 +1,61 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== + +// =================================================================== +// JMPIProperty_TestPropertyTypes +// =================================================================== +[ Version ("2.2.0"), + Description ("JMPIProperty_TestPropertyTypes is a class"), + provider ("JMPIProperty_TestPropertyTypes") +] +class JMPIProperty_TestPropertyTypes +{ + [ Key, + MaxLen (256), + Description ("CreationClassName indicates the name of the class or the " + "subclass used in the creation of an instance. When used " + "with the other key properties of this class, this property " + "allows all instances of this class and its subclasses to " + "be uniquely identified.") + ] + string CreationClassName; + + [ Key, + Description ("An identifier that uniquely identifies each instance " + "of the JMPIExpInstance_TestElement hierarchy.") + ] + uint64 InstanceId; + + [ Maxlen (256), + Description ("a string property of JMPIProperty_TestPropertyTypes") + ] + string PropertyString; +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProviderR.mof b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProviderR.mof new file mode 100644 index 000000000..542728d21 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProviderR.mof @@ -0,0 +1,59 @@ +//%2006//////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation, The Open Group. +// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; VERITAS Software Corporation; The Open Group. +// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +// EMC Corporation; Symantec Corporation; The Open Group. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to +// deal in the Software without restriction, including without limitation the +// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +// sell copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +//============================================================================== +instance of PG_ProviderModule +{ + Name = "JMPIPropertyProviderModule"; + Location = "JMPIPropertyProvider.jar:Properties/JMPIPropertyProvider"; + Vendor = "OpenPegasus"; + Version = "2.0.0"; + InterfaceType = "JMPI"; + InterfaceVersion = "1.0.0"; +}; + +instance of PG_Provider +{ + ProviderModuleName = "JMPIPropertyProviderModule"; + Name = "JMPIPropertyProvider"; +}; + +instance of PG_ProviderCapabilities +{ + ProviderModuleName = "JMPIPropertyProviderModule"; + ProviderName = "JMPIPropertyProvider"; + CapabilityID = "JMPIProperty_TestPropertyTypes"; + ClassName = "JMPIProperty_TestPropertyTypes"; + Namespaces = { "root/SampleProvider" }; + // ValueMap {"2", "3", "4" , "5" , "6" , "7"}, + // Values {"Instance", "Association", "Indication" , "Method", "IndicationConsumer", "InstanceQuery"}] + ProviderType = { 2, 7 }; // Instance and InstanceQuery + SupportedProperties = NULL; // All properties + SupportedMethods = NULL; // All methods +}; diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/Makefile new file mode 100644 index 000000000..cf341a98c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/Makefile @@ -0,0 +1,97 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/mak/configschema.mak +include $(PEGASUS_ROOT)/test/config.mak + +.SUFFIXES: .java .class .jar + +.java.class: + javac -classpath $(PEGASUS_HOME)/lib/JMPIImpl.jar $*.java + +NAMESPACE = root/SampleProvider +PACKAGEDIR = Properties/ +JAR1 = JMPIPropertyProvider.jar +JAR1CLASSES = \ + JMPIPropertyProvider.class +EXTRAJAR1CLASSES = \ + JMPIPropertyProvider\$$1.class \ + JMPIPropertyProvider\$$CIMInstanceComparer.class \ + JMPIPropertyProvider\$$CIMObjectPathComparer.class \ + JMPIPropertyProvider\$$Compare.class \ + JMPIPropertyProvider\$$SortableVector.class \ + JMPIPropertyProvider\$$ConvertibleVector.class +JARS = $(JAR1) + +LOCAL_CLEAN_TARGET = \ + $(JAR1CLASSES) $(EXTRAJAR1CLASSES) $(addprefix $(PEGASUS_HOME)/lib/,$(JAR1)) + +all build: $(addprefix $(PEGASUS_HOME)/lib/,$(JARS)) + +depend: + +clean: + $(RM) $(LOCAL_CLEAN_TARGET) + +repository: cimmofl_repository + +cimmofl_repository: + @$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR1)) into $(NAMESPACE) namespace ... + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR1)).mof + @cimmofl "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR1))R.mof + +cimmof_repository: + @$(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading CIM_Event$(CIM_SCHEMA_VER) into $(NAMESPACE) namespace ... + @cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Event$(CIM_SCHEMA_VER).mof + @$(ECHO) +++++ Loading $(subst .jar,,$(JAR1)) into $(NAMESPACE) namespace ... + @cimmof -I. "-n$(NAMESPACE)" $(subst .jar,,$(JAR1)).mof + @cimmof -I. "-n$(INTEROPNS)" $(subst .jar,,$(JAR1))R.mof + +poststarttests: +# CLI sp -n $(NAMESPACE) JMPIProperty_TestPropertyTypes.InstanceId=1 PropertyString "hello" + +$(PEGASUS_HOME)/lib/$(JAR1): $(JAR1CLASSES) + jar -cf $@ $(addprefix -C .. $(PACKAGEDIR),$^) $(addprefix -C .. $(PACKAGEDIR),$(EXTRAJAR1CLASSES)) + +#include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000.xml new file mode 100644 index 000000000..a3dfde735 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000rspgood.xml new file mode 100644 index 000000000..ffd639268 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53000rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001.xml new file mode 100644 index 000000000..3381ded11 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001rspgood.xml new file mode 100644 index 000000000..3985198ae --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53001rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002.xml new file mode 100644 index 000000000..263378d4d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002rspgood.xml new file mode 100644 index 000000000..8f22a4cac --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53002rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003.xml new file mode 100644 index 000000000..f6723acb3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003rspgood.xml new file mode 100644 index 000000000..e0b4d4d4d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53003rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004.xml new file mode 100644 index 000000000..4de6cd781 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -117 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004rspgood.xml new file mode 100644 index 000000000..0be69ebf3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53004rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005.xml new file mode 100644 index 000000000..513829e04 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 255 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005rspgood.xml new file mode 100644 index 000000000..9652fd419 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53005rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006.xml new file mode 100644 index 000000000..70c22a1b0 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 16000 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006rspgood.xml new file mode 100644 index 000000000..693182231 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53006rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007.xml new file mode 100644 index 000000000..726649ea4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13000000 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007rspgood.xml new file mode 100644 index 000000000..b314d08ed --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53007rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008.xml new file mode 100644 index 000000000..9e906bd8c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 1600000000 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008rspgood.xml new file mode 100644 index 000000000..e8b827fe4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53008rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009.xml new file mode 100644 index 000000000..6237b7dad --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -117 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009rspgood.xml new file mode 100644 index 000000000..9f8afc130 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53009rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010.xml new file mode 100644 index 000000000..eed9ed0de --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -16000 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010rspgood.xml new file mode 100644 index 000000000..3c5e2debd --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53010rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011.xml new file mode 100644 index 000000000..45d7c2c1b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13000000 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011rspgood.xml new file mode 100644 index 000000000..a2654d8b0 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53011rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012.xml new file mode 100644 index 000000000..aa815b506 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -1600000000 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012rspgood.xml new file mode 100644 index 000000000..0a342698c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53012rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013.xml new file mode 100644 index 000000000..164f62e3f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1000000000.6464 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013rspgood.xml new file mode 100644 index 000000000..949fc3841 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53013rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014.xml new file mode 100644 index 000000000..fb157c08d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 100000000.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014rspgood.xml new file mode 100644 index 000000000..8819edb96 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53014rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015.xml new file mode 100644 index 000000000..03c36b229 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -117 + + + -1600 + + + -13200 + + + -16400 + + + junk + + + 1000000.3245989 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015rspgood.xml new file mode 100644 index 000000000..8f156dd65 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53015rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2062%3A%20Invalid%20boolean%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016.xml new file mode 100644 index 000000000..f533150cf --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016rspgood.xml new file mode 100644 index 000000000..d4c1eeb10 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53016rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017.xml new file mode 100644 index 000000000..b64280844 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 256 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017rspgood.xml new file mode 100644 index 000000000..2abe746bf --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53017rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2030%3A%20Uint8%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018.xml new file mode 100644 index 000000000..e2d54739c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65536 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018rspgood.xml new file mode 100644 index 000000000..542b81887 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53018rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2034%3A%20Uint16%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019.xml new file mode 100644 index 000000000..9a8990cdb --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967296 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019rspgood.xml new file mode 100644 index 000000000..178223eba --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53019rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2038%3A%20Uint32%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020.xml new file mode 100644 index 000000000..bd20ddce1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551616 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020rspgood.xml new file mode 100644 index 000000000..e9e35b0a1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53020rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2042%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021.xml new file mode 100644 index 000000000..8bc701ea8 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551620 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021rspgood.xml new file mode 100644 index 000000000..e9e35b0a1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53021rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2042%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022.xml new file mode 100644 index 000000000..8a456d7f9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 128 + + + 32767 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022rspgood.xml new file mode 100644 index 000000000..50d86054d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53022rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2046%3A%20Sint8%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023.xml new file mode 100644 index 000000000..b2ad26c9d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32768 + + + 2147483647 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023rspgood.xml new file mode 100644 index 000000000..0b2da35dc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53023rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2050%3A%20Sint16%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024.xml new file mode 100644 index 000000000..d9fdb8dc6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483648 + + + 9223372036854775807 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024rspgood.xml new file mode 100644 index 000000000..1c035fb85 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53024rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2054%3A%20Sint32%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025.xml new file mode 100644 index 000000000..4fea6c7e1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775808 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53025rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026.xml new file mode 100644 index 000000000..c92089f2d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775810 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53026rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027.xml new file mode 100644 index 000000000..3b1b35960 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 255 + + + 65535 + + + 4294967295 + + + 18446744073709551615 + + + 127 + + + 32767 + + + 2147483647 + + + 9223372036854775810 + + + truefalse + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53027rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028.xml new file mode 100644 index 000000000..c341b60b3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -128 + + + -32768 + + + -2147483648 + + + -9223372036854775808 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028rspgood.xml new file mode 100644 index 000000000..5c18f26a7 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53028rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029.xml new file mode 100644 index 000000000..3dfb4a4e3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + -1 + + + -128 + + + -32768 + + + -2147483648 + + + -9223372036854775808 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029rspgood.xml new file mode 100644 index 000000000..e9e35b0a1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53029rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2042%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030.xml new file mode 100644 index 000000000..1fedd9625 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + a + + + 0 + + + 0 + + + 0 + + + -128 + + + -32768 + + + -2147483648 + + + -9223372036854775808 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030rspgood.xml new file mode 100644 index 000000000..4f53c7181 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53030rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2030%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031.xml new file mode 100644 index 000000000..e9a98b40b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -129 + + + -32768 + + + -2147483648 + + + -9223372036854775808 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031rspgood.xml new file mode 100644 index 000000000..50d86054d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53031rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2046%3A%20Sint8%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032.xml new file mode 100644 index 000000000..2fc92462c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -128 + + + -32769 + + + -2147483648 + + + -9223372036854775808 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032rspgood.xml new file mode 100644 index 000000000..0b2da35dc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53032rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2050%3A%20Sint16%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033.xml new file mode 100644 index 000000000..682ab239e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -128 + + + -32768 + + + -2147483649 + + + -9223372036854775808 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033rspgood.xml new file mode 100644 index 000000000..1c035fb85 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53033rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2054%3A%20Sint32%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034.xml new file mode 100644 index 000000000..91dd446b6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -128 + + + -32768 + + + -2147483648 + + + -9223372036854775809 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53034rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035.xml new file mode 100644 index 000000000..b87a4def7 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -128 + + + -32768 + + + -2147483648 + + + -9223372036854775810 + + + TRUE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53035rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036.xml new file mode 100644 index 000000000..043742707 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x7fff + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036rspgood.xml new file mode 100644 index 000000000..f7d0d7b1e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53036rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037.xml new file mode 100644 index 000000000..5a9873dd2 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0100 + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x7fff + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037rspgood.xml new file mode 100644 index 000000000..2abe746bf --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53037rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2030%3A%20Uint8%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038.xml new file mode 100644 index 000000000..b9b0bca9c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0X10000 + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x7fff + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038rspgood.xml new file mode 100644 index 000000000..542b81887 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53038rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2034%3A%20Uint16%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039.xml new file mode 100644 index 000000000..035b48adb --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000100000000 + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x7fff + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039rspgood.xml new file mode 100644 index 000000000..178223eba --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53039rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2038%3A%20Uint32%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040.xml new file mode 100644 index 000000000..b11dceebe --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0X10000000000000000 + + + 0X07F + + + 0x7fff + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040rspgood.xml new file mode 100644 index 000000000..e9e35b0a1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53040rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2042%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041.xml new file mode 100644 index 000000000..47d0b68b1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X080 + + + 0x7fff + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041rspgood.xml new file mode 100644 index 000000000..50d86054d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53041rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2046%3A%20Sint8%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042.xml new file mode 100644 index 000000000..76dcf060b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x8000 + + + 0x00007fffFFFF + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042rspgood.xml new file mode 100644 index 000000000..0b2da35dc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53042rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2050%3A%20Sint16%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043.xml new file mode 100644 index 000000000..03d6c000d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x7fff + + + 0x000080000000 + + + 0X7fffffffffffffff + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043rspgood.xml new file mode 100644 index 000000000..1c035fb85 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53043rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2054%3A%20Sint32%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044.xml new file mode 100644 index 000000000..2d959cabe --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0ff + + + 0Xffff + + + 0x0000fFfFfFfF + + + 0XFFFFFFFFFFFFFFFF + + + 0X07F + + + 0x7fff + + + 0x00007fffFFFF + + + 0X8000000000000000 + + + false + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53044rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045.xml new file mode 100644 index 000000000..98737c013 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X080 + + + -0x8000 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045rspgood.xml new file mode 100644 index 000000000..ec9930cac --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53045rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046.xml new file mode 100644 index 000000000..19aa2a8be --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + -0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X080 + + + -0x8000 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046rspgood.xml new file mode 100644 index 000000000..4f53c7181 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53046rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2030%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047.xml new file mode 100644 index 000000000..fbe326000 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X0g0 + + + 0x000 + + + 0X0000 + + + -0X080 + + + -0x8000 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047rspgood.xml new file mode 100644 index 000000000..dd75e2a18 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53047rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2034%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048.xml new file mode 100644 index 000000000..a677e8335 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x + + + 0X0000 + + + -0X080 + + + -0x8000 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048rspgood.xml new file mode 100644 index 000000000..747b774e1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53048rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2038%3A%20Invalid%20unsigned%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049.xml new file mode 100644 index 000000000..0c29a4af9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X081 + + + -0x8000 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049rspgood.xml new file mode 100644 index 000000000..50d86054d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53049rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2046%3A%20Sint8%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050.xml new file mode 100644 index 000000000..50224d66f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X080 + + + -0x8001 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050rspgood.xml new file mode 100644 index 000000000..0b2da35dc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53050rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2050%3A%20Sint16%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051.xml new file mode 100644 index 000000000..8fad2ed52 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X080 + + + -0x8000 + + + -0x000080000001 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051rspgood.xml new file mode 100644 index 000000000..1c035fb85 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53051rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2054%3A%20Sint32%20value%20out%20of%20range + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052.xml new file mode 100644 index 000000000..c1cfd5bb0 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X080 + + + -0x8000 + + + -0x000080000000 + + + -0X8000000000000001 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052rspgood.xml new file mode 100644 index 000000000..64c37bd3c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53052rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2058%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053.xml new file mode 100644 index 000000000..231a278c9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0X0000 + + + -0X000 + + + -0x80g00 + + + -0x000080000000 + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053rspgood.xml new file mode 100644 index 000000000..6ab01a556 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53053rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2050%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054.xml new file mode 100644 index 000000000..4862b24a0 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 10 + + + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%^*()-_=+[]{};:'",./?`~ + + + 0x0 + + + 0X00 + + + 0x000 + + + 0XabcdefABCDEF + + + +0X000 + + + -0x8000 + + + -0x + + + -0X8000000000000000 + + + FALSE + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054rspgood.xml new file mode 100644 index 000000000..359727119 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/CreateInstance53054rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2054%3A%20Invalid%20signed%20integer%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/Makefile new file mode 100644 index 000000000..400734827 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/CreateInstance/Makefile @@ -0,0 +1,101 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + CreateInstance53000 \ + CreateInstance53002 \ + CreateInstance53003 \ + CreateInstance53004 \ + CreateInstance53005 \ + CreateInstance53006 \ + CreateInstance53007 \ + CreateInstance53008 \ + CreateInstance53009 \ + CreateInstance53010 \ + CreateInstance53011 \ + CreateInstance53012 \ + CreateInstance53013 \ + CreateInstance53014 \ + CreateInstance53015 \ + CreateInstance53016 \ + CreateInstance53017 \ + CreateInstance53018 \ + CreateInstance53019 \ + CreateInstance53020 \ + CreateInstance53021 \ + CreateInstance53022 \ + CreateInstance53023 \ + CreateInstance53024 \ + CreateInstance53025 \ + CreateInstance53026 \ + CreateInstance53027 \ + CreateInstance53028 \ + CreateInstance53029 \ + CreateInstance53030 \ + CreateInstance53031 \ + CreateInstance53032 \ + CreateInstance53033 \ + CreateInstance53034 \ + CreateInstance53035 \ + CreateInstance53036 \ + CreateInstance53037 \ + CreateInstance53038 \ + CreateInstance53039 \ + CreateInstance53040 \ + CreateInstance53041 \ + CreateInstance53042 \ + CreateInstance53043 \ + CreateInstance53044 \ + CreateInstance53045 \ + CreateInstance53046 \ + CreateInstance53047 \ + CreateInstance53048 \ + CreateInstance53049 \ + CreateInstance53050 \ + CreateInstance53051 \ + CreateInstance53052 \ + CreateInstance53053 \ + CreateInstance53054 + +ifndef SECURITY_ENABLED +XMLSCRIPTS += CreateInstance53001 +endif + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000.xml new file mode 100644 index 000000000..80127295e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000rspgood.xml new file mode 100644 index 000000000..c04d66025 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55000rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001.xml new file mode 100644 index 000000000..98fc3c4d1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + Test_not_exist + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001rspgood.xml new file mode 100644 index 000000000..57c02c007 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55001rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002.xml new file mode 100644 index 000000000..8abef385e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002rspgood.xml new file mode 100644 index 000000000..43cc6527a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55002rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003.xml new file mode 100644 index 000000000..9c8e2c55f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003rspgood.xml new file mode 100644 index 000000000..f64a79f8f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/DeleteInstance55003rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/Makefile new file mode 100644 index 000000000..c47eb8cfc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/DeleteInstance/Makefile @@ -0,0 +1,51 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + DeleteInstance55000 \ + DeleteInstance55001 \ + DeleteInstance55003 + +ifndef SECURITY_ENABLED +XMLSCRIPTS += \ + DeleteInstance55002 +endif + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000.xml new file mode 100644 index 000000000..92bdf2909 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000rspgood.xml new file mode 100644 index 000000000..1b2d179b8 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50000rspgood.xml @@ -0,0 +1,35 @@ + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001.xml new file mode 100644 index 000000000..ff2fb5f55 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001rspgood.xml new file mode 100644 index 000000000..03b8ff3e7 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50001rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002.xml new file mode 100644 index 000000000..cd2080b79 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002rspgood.xml new file mode 100644 index 000000000..d3a1e680d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/EnumerateInstanceNames50002rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/Makefile new file mode 100644 index 000000000..7ed01baa6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstanceNames/Makefile @@ -0,0 +1,49 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + EnumerateInstanceNames50000 \ + EnumerateInstanceNames50002 + +ifndef SECURITY_ENABLED +XMLSCRIPTS += EnumerateInstanceNames50001 +endif + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007.xml new file mode 100644 index 000000000..4ad613fca --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007rspgood.xml new file mode 100644 index 000000000..46ec7a4cb --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFF51007rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstanceProvider_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+00 + + + + +1.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstanceProvider_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+00 + + + + +2.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007.xml new file mode 100644 index 000000000..4ad613fca --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007rspgood.xml new file mode 100644 index 000000000..22daf5b88 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFFAlt51007rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstance_TestPropertyTypes_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+000 + + + + +1.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstance_TestPropertyTypes_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+000 + + + + +2.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFT51006.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFT51006.xml new file mode 100644 index 000000000..3f792aca3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalFT51006.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + FALSE + + + + + TRUE + + + + + FALSE + + + + + FALSE + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005.xml new file mode 100644 index 000000000..f9a676aae --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + TRUE + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005rspgood.xml new file mode 100644 index 000000000..6c45f5ee1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51005rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstanceProvider_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+00 + + + + +1.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstanceProvider_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+00 + + + + +2.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008.xml new file mode 100644 index 000000000..52bfad02a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + TRUE + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + + PropertyString + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008rspgood.xml new file mode 100644 index 000000000..489092c21 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTF51008rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstanceProvider_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+00 + + + + +1.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstanceProvider_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+00 + + + + +2.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005.xml new file mode 100644 index 000000000..f9a676aae --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + TRUE + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005rspgood.xml new file mode 100644 index 000000000..90bb62576 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51005rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstance_TestPropertyTypes_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+000 + + + + +1.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstance_TestPropertyTypes_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+000 + + + + +2.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008.xml new file mode 100644 index 000000000..52bfad02a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + TRUE + + + + + FALSE + + + + + FALSE + + + + + FALSE + + + + + + PropertyString + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008rspgood.xml new file mode 100644 index 000000000..be70404f7 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTFAlt51008rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstance_TestPropertyTypes_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+000 + + + + +1.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstance_TestPropertyTypes_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+000 + + + + +2.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTT51004.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTT51004.xml new file mode 100644 index 000000000..cf2ac1c8b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/DeepLocalTT51004.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + TRUE + + + + + TRUE + + + + + FALSE + + + + + FALSE + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000.xml new file mode 100644 index 000000000..52cb63252 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000rspgood.xml new file mode 100644 index 000000000..489092c21 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51000rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstanceProvider_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+00 + + + + +1.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstanceProvider_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+00 + + + + +2.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001.xml new file mode 100644 index 000000000..9332de54d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001rspgood.xml new file mode 100644 index 000000000..dcc6dd81d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51001rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002.xml new file mode 100644 index 000000000..1943e533b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002rspgood.xml new file mode 100644 index 000000000..ad0b8dc37 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51002rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003.xml new file mode 100644 index 000000000..58b3fb8e1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003rspgood.xml new file mode 100644 index 000000000..60a904f30 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstances51003rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000.xml new file mode 100644 index 000000000..52cb63252 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000rspgood.xml new file mode 100644 index 000000000..be70404f7 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/EnumerateInstancesAlt51000rspgood.xml @@ -0,0 +1,193 @@ + + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstance_TestPropertyTypes_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+000 + + + + +1.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +2 + + + + +JMPIExpInstance_TestPropertyTypes_Instance2 + + + + +122 + + + + +1602 + + + + +3202 + + + + +6402 + + + + +-117 + + + + +-1602 + + + + +-3202 + + + + +-6402 + + + + +FALSE + + + + +2.1234567e+000 + + + + +2.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/Makefile new file mode 100644 index 000000000..b36c9849f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/EnumerateInstances/Makefile @@ -0,0 +1,73 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + EnumerateInstances51003 + +# Note: this is done because the server on windows returns 3 digits +# for the exponent of a real32 or real64, while other platforms return 2. +ifeq ($(OS_TYPE),windows) +XMLSCRIPTS += \ + EnumerateInstancesAlt51000 \ + DeepLocalTFAlt51005 \ + DeepLocalFFAlt51007 \ + DeepLocalTFAlt51008 +else +XMLSCRIPTS += \ + EnumerateInstances51000 \ + DeepLocalTF51005 \ + DeepLocalFF51007 \ + DeepLocalTF51008 +endif + +ifndef SECURITY_ENABLED +XMLSCRIPTS += \ + EnumerateInstances51001 \ + EnumerateInstances51002 +endif + +ATTN-WO-P3-2002/05/01: + The DeepInheritance and LocalOnly flags have not been fully \ +implemented. The following tests should be run when these are fully enabled. + +XmlScriptDefects: DeepLocalFT51006 \ + DeepLocalTT51004 + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01.xml new file mode 100644 index 000000000..4ab28db3d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01rspgood.xml new file mode 100644 index 000000000..f8949d01e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadAttributeName01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Bad%20attribute%20name%3A%20on%20line%2013 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01.xml new file mode 100644 index 000000000..efa4a6bff --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + junk + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01rspgood.xml new file mode 100644 index 000000000..4a7fea571 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadBooleanValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2016%3A%20Invalid%20value%20for%20VALUE%20element%3A%20must%20be%20%22TRUE%22%20or%20%22FALSE%22 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01.xml new file mode 100644 index 000000000..0a526416a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01rspgood.xml new file mode 100644 index 000000000..8bddeb576 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadChar16Value01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2026%3A%20Invalid%20char16%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01.xml new file mode 100644 index 000000000..2cdb1deaa --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + a; + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02.xml new file mode 100644 index 000000000..e4bb48cdf --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + &#; + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03.xml new file mode 100644 index 000000000..2131c3f9c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 𐀀 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference03rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04.xml new file mode 100644 index 000000000..f5a3e2744 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + +  + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference04rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05.xml new file mode 100644 index 000000000..edc145744 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + &#x; + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference05rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06.xml new file mode 100644 index 000000000..1a9d724ec --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 8 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference06rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07.xml new file mode 100644 index 000000000..8b0c0408d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + g; + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07rspgood.xml new file mode 100644 index 000000000..e07d2c071 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadCharacterReference07rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2019 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01.xml new file mode 100644 index 000000000..7f5e472b4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 0515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01rspgood.xml new file mode 100644 index 000000000..0413ef247 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadDateTimeValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2074%3A%20Invalid%20datetime%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01.xml new file mode 100644 index 000000000..3739fc796 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + &bogus;JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01rspgood.xml new file mode 100644 index 000000000..a60970cd6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2014 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02.xml new file mode 100644 index 000000000..306d44a66 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + &;JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02rspgood.xml new file mode 100644 index 000000000..a60970cd6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2014 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03.xml new file mode 100644 index 000000000..c55ea0f25 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + &1;JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03rspgood.xml new file mode 100644 index 000000000..a60970cd6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadEntityReference03rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Malformed%20reference%3A%20on%20line%2014 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01.xml new file mode 100644 index 000000000..162eb1efe --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01rspgood.xml new file mode 100644 index 000000000..0b7aece5d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadInstanceClassName01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2011%3A%20Illegal%20value%20for%20INSTANCE.CLASSNAME%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01.xml new file mode 100644 index 000000000..81fbf43bd --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01rspgood.xml new file mode 100644 index 000000000..5c56cad2e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadMethodName01rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01.xml new file mode 100644 index 000000000..a84737e3d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + < =/> + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01rspgood.xml new file mode 100644 index 000000000..5e3191031 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadOpeningElement01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Bad%20opening%20element%3A%20on%20line%2011 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01.xml new file mode 100644 index 000000000..400a44e0f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01rspgood.xml new file mode 100644 index 000000000..f502a507a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDecl01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2011%3A%20missing%20QUALIFIER.DECLARATION.NAME%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01.xml new file mode 100644 index 000000000..31d61a202 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01rspgood.xml new file mode 100644 index 000000000..a99911d75 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualDeclType01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2011%3A%20Illegal%20value%20for%20QUALIFIER.DECLARATION.TYPE%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01.xml new file mode 100644 index 000000000..b2f08e3f4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01rspgood.xml new file mode 100644 index 000000000..ffd639268 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadQualValueElement01rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01.xml new file mode 100644 index 000000000..d032e7780 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01rspgood.xml new file mode 100644 index 000000000..a1e066d42 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal32Value01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2066%3A%20Invalid%20real%20number%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01.xml new file mode 100644 index 000000000..f5f498dd4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.45 + + + 1 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01rspgood.xml new file mode 100644 index 000000000..ef13716bc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/BadReal64Value01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2070%3A%20Invalid%20real%20number%20value + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01.xml new file mode 100644 index 000000000..d6f76ab34 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationFilter + + + + + Filter01 + + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationFilter + + + + + Filter01 + + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationHandlerCIMXML + + + + + Handler01 + + + + + + + 2 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01rspgood.xml new file mode 100644 index 000000000..5f5186f90 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2065%3A%20duplicate%20property + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01.xml new file mode 100644 index 000000000..6197bb4ff --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01rspgood.xml new file mode 100644 index 000000000..567ad1d0b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateQualifier01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2019%3A%20duplicate%20qualifier + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01.xml new file mode 100644 index 000000000..47fd64015 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 8 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01rspgood.xml new file mode 100644 index 000000000..b972666d4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference01rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02.xml new file mode 100644 index 000000000..afd076e38 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 8 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02rspgood.xml new file mode 100644 index 000000000..b972666d4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference02rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03.xml new file mode 100644 index 000000000..409fa689b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JJMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03rspgood.xml new file mode 100644 index 000000000..b972666d4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference03rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04.xml new file mode 100644 index 000000000..7ea1595ad --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JJMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04rspgood.xml new file mode 100644 index 000000000..b972666d4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodCharacterReference04rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01.xml new file mode 100644 index 000000000..57a8b62d9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + &JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01rspgood.xml new file mode 100644 index 000000000..b972666d4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/GoodEntityReference01rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01.xml new file mode 100644 index 000000000..29d7698fb --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01rspgood.xml new file mode 100644 index 000000000..df59d548b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/IllegalValueClassName01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Semantic%20error%3A%20on%20line%2011%3A%20Illegal%20value%20for%20CLASSNAME.NAME%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/Makefile new file mode 100644 index 000000000..f37f28e6f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/Makefile @@ -0,0 +1,90 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + BadAttributeName01 \ + BadBooleanValue01 \ + BadInstanceClassName01 \ + BadMethodName01 \ + BadQualDecl01 \ + BadQualDeclType01 \ + DuplicateProperty01 \ + DuplicateQualifier01 \ + MissingBooleanValue01 \ + MissingCIMEndTag01 \ + MissingClassName01 \ + MissingClassNameStartTag01 \ + MissingIParamvalueEndTag01 \ + MissingIParamvalueStartTag01 \ + MissingKeyValue01 \ + MissingKeyValueEndTag01 \ + MissingMessageEndTag01 \ + MissingMethodCallEndTag01 \ + MissingPropertyReferenceEndTag01 \ + MissingReqEndTag01 \ + MissingValueArray01 \ + MissingXmlVersion01 \ + BadChar16Value01 \ + BadDateTimeValue01 \ + BadOpeningElement01 \ + BadQualValueElement01 \ + BadReal32Value01 \ + BadReal64Value01 \ + IllegalValueClassName01 \ + MissingInstanceNameClassName01 \ + MissingParamValueName01 \ + MissingValueElementEndTag01 \ + BadCharacterReference01 \ + BadCharacterReference02 \ + BadCharacterReference03 \ + BadCharacterReference04 \ + BadCharacterReference05 \ + BadCharacterReference06 \ + BadCharacterReference07 \ + BadEntityReference01 \ + BadEntityReference02 \ + BadEntityReference03 \ + GoodCharacterReference01 \ + GoodCharacterReference02 \ + GoodCharacterReference03 \ + GoodCharacterReference04 \ + GoodEntityReference01 + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01.xml new file mode 100644 index 000000000..30eaa3cc0 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01rspgood.xml new file mode 100644 index 000000000..cbbeada0c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingBooleanValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2014%3A%20Expected%20VALUE%20element + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01.xml new file mode 100644 index 000000000..fe5334675 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01rspgood.xml new file mode 100644 index 000000000..816283e0a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingCIMEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2021%3A%20Expected%20close%20of%20CIM%20element%2C%20got%20CIM%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01.xml new file mode 100644 index 000000000..bee1a124b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01rspgood.xml new file mode 100644 index 000000000..642ceebb1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassName01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2011%3A%20missing%20CLASSNAME.NAME%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01.xml new file mode 100644 index 000000000..684860c36 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01rspgood.xml new file mode 100644 index 000000000..e52a879fb --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingClassNameStartTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2011%3A%20Expected%20close%20of%20IPARAMVALUE%20element%2C%20got%20LASSNAME%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01.xml new file mode 100644 index 000000000..91b584073 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01rspgood.xml new file mode 100644 index 000000000..92444ed2e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2012%3A%20Expected%20close%20of%20IPARAMVALUE%20element%2C%20got%20IPARAMVALUE%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01.xml new file mode 100644 index 000000000..d493e520e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01rspgood.xml new file mode 100644 index 000000000..c62c03e4f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingIParamvalueStartTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2013%3A%20Expected%20close%20of%20IMETHODCALL%20element%2C%20got%20PARAMVALUE%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01.xml new file mode 100644 index 000000000..bec6d195b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationFilter + + + + + Filter01 + + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationHandlerCIMXML + + + + + Handler01 + + + + + + + 2 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01rspgood.xml new file mode 100644 index 000000000..3c70083b9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2015%3A%20missing%20INSTANCENAME.CLASSNAME%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01.xml new file mode 100644 index 000000000..cc2215007 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + ProcessIndicationProviderModule + + + + + ProcessIndicationProvider2 + + + + + ProcessIndicationProviderCapability2 + + + + + + + IndicationTime + IndicationIdentifier + + + + + + + false + + + + SupportedProperties + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01rspgood.xml new file mode 100644 index 000000000..14ca5c93e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2015%3A%20Expected%20KEYVALUE%20or%20VALUE.REFERENCE%20element + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01.xml new file mode 100644 index 000000000..2f7df03cc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + ProcessIndicationProviderModule + + + + ProcessIndicationProvider2 + + + + + ProcessIndicationProviderCapability2 + + + + + + + IndicationTime + IndicationIdentifier + + + + + + + false + + + + SupportedProperties + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01rspgood.xml new file mode 100644 index 000000000..6b321464d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Closing%20element%20does%20not%20match%20opening%20element%3A%20on%20line%2016 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01.xml new file mode 100644 index 000000000..e19b1ceac --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01rspgood.xml new file mode 100644 index 000000000..ab2202ac1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMessageEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2020%3A%20Expected%20close%20of%20MESSAGE%20element%2C%20got%20MESSAGE%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01.xml new file mode 100644 index 000000000..b194943e9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01rspgood.xml new file mode 100644 index 000000000..c89589b54 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingMethodCallEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2018%3A%20Expected%20close%20of%20IMETHODCALL%20element%2C%20got%20IMETHODCALL%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01.xml new file mode 100644 index 000000000..859f0da81 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + CIM_MessageLog + + + 123 + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01rspgood.xml new file mode 100644 index 000000000..47ad8c716 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingParamValueName01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2015%3A%20Missing%20PARAMVALUE.NAME%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01.xml new file mode 100644 index 000000000..c39ddadef --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationFilter + + + + + Filter01 + + + + + + + + + + CIM_UnitaryComputerSystem + + + + + server001.acme.com + + + + + PG_IndicationHandlerCIMXML + + + + + Handler01 + + + + + + + 2 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01rspgood.xml new file mode 100644 index 000000000..0e16a8862 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2039%3A%20Expected%20close%20of%20PROPERTY.REFERENCE%20element%2C%20got%20PROPERTY.REFERENCE%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01.xml new file mode 100644 index 000000000..6655fc4fb --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01rspgood.xml new file mode 100644 index 000000000..e9e15886f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingReqEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2019%3A%20Expected%20close%20of%20SIMPLEREQ%20element%2C%20got%20SIMPLEREQ%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01.xml new file mode 100644 index 000000000..2b9e8aeda --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + ProcessIndicationProviderModule + + + + + ProcessIndicationProvider2 + + + + + ProcessIndicationProviderCapability2 + + + + + + IndicationTime + IndicationIdentifier + + + + + + + false + + + + SupportedProperties + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01rspgood.xml new file mode 100644 index 000000000..b416840de --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%2031%3A%20Expected%20close%20of%20PROPERTY.ARRAY%20element%2C%20got%20VALUE%20instead + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01.xml new file mode 100644 index 000000000..026d1d302 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + created_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01rspgood.xml new file mode 100644 index 000000000..f6d93094f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueElementEndTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-well-formed +PGErrorDetail: Closing%20element%20does%20not%20match%20opening%20element%3A%20on%20line%2023 + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01.xml new file mode 100644 index 000000000..3361a0c94 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01rspgood.xml new file mode 100644 index 000000000..f567f595b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingXmlVersion01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%201%3A%20missing%20xml.version%20attribute + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000.xml new file mode 100644 index 000000000..42ef293a1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000rspgood.xml new file mode 100644 index 000000000..4e442fb70 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52000rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001.xml new file mode 100644 index 000000000..0479bdbd2 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + abc + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001rspgood.xml new file mode 100644 index 000000000..1d3cf0f20 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52001rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002.xml new file mode 100644 index 000000000..ac08dff27 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPI_TestPropertytest + + + + + abc + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002rspgood.xml new file mode 100644 index 000000000..e6bbd0f4d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52002rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003.xml new file mode 100644 index 000000000..3a018db75 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003rspgood.xml new file mode 100644 index 000000000..8aee7d8c2 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52003rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004.xml new file mode 100644 index 000000000..ad6f6e33d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004rspgood.xml new file mode 100644 index 000000000..2ec14cc1a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52004rspgood.xml @@ -0,0 +1,88 @@ + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstanceProvider_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+00 + + + + +1.1234567890654321e+00 + + + + +20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005.xml new file mode 100644 index 000000000..5b138da48 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005rspgood.xml new file mode 100644 index 000000000..69334695b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52005rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006.xml new file mode 100644 index 000000000..37f92cfd9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006rspgood.xml new file mode 100644 index 000000000..3f3887a30 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstance52006rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004.xml new file mode 100644 index 000000000..ad6f6e33d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004rspgood.xml new file mode 100644 index 000000000..37cb6767d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/GetInstanceAlt52004rspgood.xml @@ -0,0 +1,88 @@ + + + + + + + + + +JMPIExpInstance_TestPropertyTypes + + + + +1 + + + + +JMPIExpInstance_TestPropertyTypes_Instance1 + + + + +120 + + + + +1600 + + + + +3200 + + + + +6400 + + + + +-119 + + + + +-1600 + + + + +-3200 + + + + +-6400 + + + + +TRUE + + + + +1.1234567e+000 + + + + +1.1234567890654321e+000 + + + + +20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/Makefile new file mode 100644 index 000000000..e26ed271e --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/GetInstance/Makefile @@ -0,0 +1,57 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + GetInstance52000 \ + GetInstance52001 \ + GetInstance52002 \ + GetInstance52003 \ + GetInstance52005 \ + GetInstance52006 + +# Note: this is done because the server on windows returns 3 digits +# for the exponent of a real32 or real64, while other platforms return 2. +ifeq ($(OS_TYPE),windows) +XMLSCRIPTS += GetInstanceAlt52004 +else +XMLSCRIPTS += GetInstance52004 +endif + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01.xml new file mode 100644 index 000000000..06d0627e0 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01.xml @@ -0,0 +1,31 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: BadValue +23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="CIM_MessageLog" + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01rspgood.xml new file mode 100644 index 000000000..afb6db15a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMMethod%20value%20%22BadValue%22%20does%20not%20match%20CIM%20request%20method%20%22PositionAtRecord%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02.xml new file mode 100644 index 000000000..5dc6b4462 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02.xml @@ -0,0 +1,27 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: BadValue +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02rspgood.xml new file mode 100644 index 000000000..d54a4c530 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMMethod%20value%20%22BadValue%22%20does%20not%20match%20CIM%20request%20method%20%22AssociatorNames%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03.xml new file mode 100644 index 000000000..5d449aa85 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03.xml @@ -0,0 +1,27 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 441 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: BadValue +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03rspgood.xml new file mode 100644 index 000000000..a1ccf1e41 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValue03rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01.xml new file mode 100644 index 000000000..8f41e6456 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01.xml @@ -0,0 +1,37 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 953 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: BogusMetho%6 +23-CIMObject: test%2Fstatic%3AJMPI_TestPropertyTypes.CreationClassName%3D%22%21%20%5C%22%23%24%25%26%27%28%29%2A%2B%2C%2D%2E%2F%30%31%32%33%34%35%36%37%38%39%3A%3B%3C%3D%3E%3F%40%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A%5B%5C%5C%5D%5E%5F%60%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A%7B%7C%7D%7E%7F%22%2CInstanceId%3D1 + + + + + + + + + + + + + + + ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01rspgood.xml new file mode 100644 index 000000000..0c82c2a34 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMMethodValueEncoding01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMMethod%20value%20syntax%20error. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01.xml new file mode 100644 index 000000000..2fed621c5 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01.xml @@ -0,0 +1,31 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: PositionAtRecord +23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="BadValue" + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01rspgood.xml new file mode 100644 index 000000000..ff3598a7a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMObject%20value%20%22root%2Fcimv2%3ACIM_MessageLog.CreationClassName%3D%22BadValue%22%22%20does%20not%20match%20CIM%20request%20object%20%22root%2Fcimv2%3ACIM_MessageLog.CreationClassName%3D%22CIM_MessageLog%22%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02.xml new file mode 100644 index 000000000..536c772b4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02.xml @@ -0,0 +1,31 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: PositionAtRecord +23-CIMObject: root/cimv2/BadValue:CIM_MessageLog.CreationClassName="CIM_MessageLog" + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02rspgood.xml new file mode 100644 index 000000000..70ae3d0f1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMObject%20value%20%22root%2Fcimv2%2FBadValue%3ACIM_MessageLog.CreationClassName%3D%22CIM_MessageLog%22%22%20does%20not%20match%20CIM%20request%20object%20%22root%2Fcimv2%3ACIM_MessageLog.CreationClassName%3D%22CIM_MessageLog%22%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03.xml new file mode 100644 index 000000000..52bd574a9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03.xml @@ -0,0 +1,27 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2/BadValue + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03rspgood.xml new file mode 100644 index 000000000..5546ffbf6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue03rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMObject%20value%20%22test%2Fcimv2%2FBadValue%22%20does%20not%20match%20CIM%20request%20object%20%22test%2Fcimv2%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04.xml new file mode 100644 index 000000000..0afdec166 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04.xml @@ -0,0 +1,31 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: PositionAtRecord +23-CIMObject: root/Bad/Unparsable.Value.Whattheheckisthis,"crazy".object? + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04rspgood.xml new file mode 100644 index 000000000..5f7fac280 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValue04rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Could%20not%20parse%20CIMObject%20value%20%22root%2FBad%2FUnparsable.Value.Whattheheckisthis%2C%22crazy%22.object%3F%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01.xml new file mode 100644 index 000000000..1e7a2d069 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01.xml @@ -0,0 +1,37 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 953 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: BogusMethod +23-CIMObject: test%2Fstatic%3AJMPI_TestPropertyTypes.CreationClassName%3D%22%21%20%5C%22%23%24%25%26%27%28%29%2A%2B%2C%2D%2E%2F%30%31%32%33%34%35%36%37%38%39%3A%3B%3C%3D%3E%3F%40%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A%5B%5C%5C%5D%5E%5F%60%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A%7B%7C%7D%7E%7F%22%2CInstanceId%3D1%4 + + + + + + + + + + + + + + + ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01rspgood.xml new file mode 100644 index 000000000..a47de7ab3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMObject%20value%20syntax%20error. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02.xml new file mode 100644 index 000000000..2dc150800 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02.xml @@ -0,0 +1,37 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 953 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: BogusMethod +23-CIMObject: test%GFstatic%3AJMPI_TestPropertyTypes.CreationClassName%3D%22%21%20%5C%22%23%24%25%26%27%28%29%2A%2B%2C%2D%2E%2F%30%31%32%33%34%35%36%37%38%39%3A%3B%3C%3D%3E%3F%40%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A%5B%5C%5C%5D%5E%5F%60%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A%7B%7C%7D%7E%7F%22%2CInstanceId%3D1 + + + + + + + + + + + + + + + ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02rspgood.xml new file mode 100644 index 000000000..a47de7ab3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMObject%20value%20syntax%20error. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03.xml new file mode 100644 index 000000000..1187a5165 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03.xml @@ -0,0 +1,37 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 953 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: BogusMethod +23-CIMObject: test%2Gstatic%3AJMPI_TestPropertyTypes.CreationClassName%3D%22%21%20%5C%22%23%24%25%26%27%28%29%2A%2B%2C%2D%2E%2F%30%31%32%33%34%35%36%37%38%39%3A%3B%3C%3D%3E%3F%40%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A%5B%5C%5C%5D%5E%5F%60%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A%7B%7C%7D%7E%7F%22%2CInstanceId%3D1 + + + + + + + + + + + + + + + ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03rspgood.xml new file mode 100644 index 000000000..a47de7ab3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMObjectValueEncoding03rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMObject%20value%20syntax%20error. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01.xml new file mode 100644 index 000000000..094238e56 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01.xml @@ -0,0 +1,31 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: BadValue +23-CIMMethod: PositionAtRecord +23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="CIM_MessageLog" + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01rspgood.xml new file mode 100644 index 000000000..6b70494dc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMOperationValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: unsupported-operation +PGErrorDetail: CIMOperation%20value%20%22BadValue%22%20is%20not%20supported. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01.xml new file mode 100644 index 000000000..eecbfa900 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01.xml @@ -0,0 +1,27 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 2.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01rspgood.xml new file mode 100644 index 000000000..e3b996a42 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/BadCIMProtocolVersionValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMProtocolVersion%20value%20%222.0%22%20does%20not%20match%20CIM%20request%20protocol%20version%20%221.0%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01.xml new file mode 100644 index 000000000..1467623e5 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01.xml @@ -0,0 +1,32 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: PositionAtRecord +23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="CIM_MessageLog" +23-CIMBatch: + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01rspgood.xml new file mode 100644 index 000000000..2c6e1efab --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag01rspgood.xml @@ -0,0 +1,3 @@ +HTTP/1.1 501 Not Implemented +CIMError: multiple-requests-unsupported + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02.xml new file mode 100644 index 000000000..a31aeed9b --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02.xml @@ -0,0 +1,28 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 +35-CIMBatch: + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02rspgood.xml new file mode 100644 index 000000000..2c6e1efab --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/ExtraCIMBatchTag02rspgood.xml @@ -0,0 +1,3 @@ +HTTP/1.1 501 Not Implemented +CIMError: multiple-requests-unsupported + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01.xml new file mode 100644 index 000000000..f72a829ad --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01.xml @@ -0,0 +1,37 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 953 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: BogusMethod +23-CIMObject: test%2Fstatic%3AJMPI_TestPropertyTypes.CreationClassName%3D%22%21%20%5C%22%23%24%25%26%27%28%29%2A%2B%2C%2D%2E%2F%30%31%32%33%34%35%36%37%38%39%3A%3B%3C%3D%3E%3F%40%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A%5B%5C%5C%5D%5E%5F%60%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A%7B%7C%7D%7E%7F%22%2CInstanceId%3D1 + + + + + + + + + + + + + + + ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ + + + + + 1 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01rspgood.xml new file mode 100644 index 000000000..df6f4b6d6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/GoodCIMObjectValueEncoding01rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/Makefile new file mode 100644 index 000000000..59325f1d6 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/Makefile @@ -0,0 +1,73 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + BadCIMMethodValue01 \ + BadCIMMethodValue02 \ + BadCIMObjectValue01 \ + BadCIMObjectValue02 \ + BadCIMObjectValue03 \ + BadCIMObjectValue04 \ + BadCIMOperationValue01 \ + BadCIMProtocolVersionValue01 \ + ExtraCIMBatchTag01 \ + ExtraCIMBatchTag02 \ + MissingCIMBatchTag01 \ + MissingCIMMethodTag01 \ + MissingCIMMethodTag02 \ + MissingCIMObjectTag01 \ + MissingCIMObjectTag02 \ + MissingCIMOperationTag01 \ + MissingCIMOperationTag02 \ + UnsupportedCIMProtocolVersionValue01 \ + UnsupportedCIMVersionValue01 \ + UnsupportedDTDVersionValue01 \ + UnsupportedHTTPMethod01 \ + MissingCIMMethodValue01 \ + MissingCIMProtocolVersion01 \ + MissingMessage01 \ + BadCIMMethodValue03 \ + BadCIMMethodValueEncoding01 \ + BadCIMObjectValueEncoding01 \ + BadCIMObjectValueEncoding02 \ + BadCIMObjectValueEncoding03 \ + GoodCIMObjectValueEncoding01 + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01.xml new file mode 100644 index 000000000..e928464f9 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01.xml @@ -0,0 +1,29 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01rspgood.xml new file mode 100644 index 000000000..73a9b8c43 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMBatchTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Multi-request%20is%20missing%20CIMBatch%20HTTP%20header + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01.xml new file mode 100644 index 000000000..37c1090cc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01.xml @@ -0,0 +1,30 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="CIM_MessageLog" + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01rspgood.xml new file mode 100644 index 000000000..6dd0e703a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Missing%20CIMMethod%20HTTP%20header. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02.xml new file mode 100644 index 000000000..ae8405b0c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02.xml @@ -0,0 +1,26 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02rspgood.xml new file mode 100644 index 000000000..6dd0e703a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodTag02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Missing%20CIMMethod%20HTTP%20header. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01.xml new file mode 100644 index 000000000..c7b6c9fbc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01.xml @@ -0,0 +1,31 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 521 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: +23-CIMObject: root/cimv2 + + + + + + + + + + + + + + + + TRUE + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01rspgood.xml new file mode 100644 index 000000000..c6cb066de --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMMethodValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Empty%20CIMMethod%20value. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01.xml new file mode 100644 index 000000000..67fd858db --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01.xml @@ -0,0 +1,30 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMOperation: MethodCall +23-CIMMethod: PositionAtRecord + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01rspgood.xml new file mode 100644 index 000000000..140c0e29a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Missing%20CIMObject%20HTTP%20header. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02.xml new file mode 100644 index 000000000..0987241e5 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02.xml @@ -0,0 +1,26 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02rspgood.xml new file mode 100644 index 000000000..140c0e29a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMObjectTag02rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: Missing%20CIMObject%20HTTP%20header. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01.xml new file mode 100644 index 000000000..1a98808b1 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01.xml @@ -0,0 +1,30 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 845 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23 +23-CIMProtocolVersion: 1.0 +23-CIMMethod: PositionAtRecord +23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="CIM_MessageLog" + + + + + + + + + + + + + CIM_MessageLog + + + 123 + TRUE + 444 + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01rspgood.xml new file mode 100644 index 000000000..dae0431f5 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag01rspgood.xml @@ -0,0 +1,2 @@ +HTTP/1.1 400 Bad Request + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02.xml new file mode 100644 index 000000000..77fe44e00 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02.xml @@ -0,0 +1,26 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02rspgood.xml new file mode 100644 index 000000000..dae0431f5 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMOperationTag02rspgood.xml @@ -0,0 +1,2 @@ +HTTP/1.1 400 Bad Request + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01.xml new file mode 100644 index 000000000..839d27202 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01.xml @@ -0,0 +1,26 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01rspgood.xml new file mode 100644 index 000000000..61dc25441 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingCIMProtocolVersion01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: header-mismatch +PGErrorDetail: CIMProtocolVersion%20value%20%221.0%22%20does%20not%20match%20CIM%20request%20protocol%20version%20%222.0%22. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01.xml new file mode 100644 index 000000000..fdc64bebc --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01.xml @@ -0,0 +1,24 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 392 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01rspgood.xml new file mode 100644 index 000000000..f23210b95 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/MissingMessage01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 400 Bad Request +CIMError: request-not-valid +PGErrorDetail: Validation%20error%3A%20on%20line%203%3A%20expected%20MESSAGE%20element + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01.xml new file mode 100644 index 000000000..63e28e523 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01.xml @@ -0,0 +1,27 @@ +M-POST /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 2.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01rspgood.xml new file mode 100644 index 000000000..b0afb6961 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMProtocolVersionValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 501 Not Implemented +CIMError: unsupported-protocol-version +PGErrorDetail: CIMProtocolVersion%20%222.0%22%20is%20not%20supported. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01.xml new file mode 100644 index 000000000..faab2f090 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01rspgood.xml new file mode 100644 index 000000000..937f73f03 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedCIMVersionValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 501 Not Implemented +CIMError: unsupported-cim-version +PGErrorDetail: CIM%20version%20%223.0%22%20is%20not%20supported. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01.xml new file mode 100644 index 000000000..f6851a82c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01rspgood.xml new file mode 100644 index 000000000..f1895bb20 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedDTDVersionValue01rspgood.xml @@ -0,0 +1,4 @@ +HTTP/1.1 501 Not Implemented +CIMError: unsupported-dtd-version +PGErrorDetail: DTD%20version%20%223.0%22%20is%20not%20supported. + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01.xml new file mode 100644 index 000000000..6148eb8ba --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01.xml @@ -0,0 +1,27 @@ +BOGUS /cimom HTTP/1.1 +Host: testsystem +Content-Type: application/xml; charset="utf-8" +Content-Length: 449 +Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35 +35-CIMProtocolVersion: 1.0 +35-CIMOperation: MethodCall +35-CIMMethod: AssociatorNames +35-CIMObject: test/cimv2 + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01rspgood.xml new file mode 100644 index 000000000..517b2b7ab --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Headers/UnsupportedHTTPMethod01rspgood.xml @@ -0,0 +1,2 @@ +HTTP/1.1 501 Not Implemented + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/Makefile new file mode 100644 index 000000000..125e35ed4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/Makefile @@ -0,0 +1,49 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + MethodCall1000 + +#ifndef SECURITY_ENABLED +#XMLSCRIPTS += \ +# DeleteInstance55002 +#endif + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000.xml new file mode 100644 index 000000000..0c697d015 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000rspgood.xml new file mode 100644 index 000000000..1d9606977 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/InvokeMethod/MethodCall1000rspgood.xml @@ -0,0 +1,14 @@ + + + + + + + +hello + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Makefile new file mode 100644 index 000000000..491e056a8 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Makefile @@ -0,0 +1,56 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +NAMESPACE = root/SampleProvider + +all clean depend build messages tests repository: + +poststarttests: + CLI -n $(NAMESPACE) im JMPIExpInstance_TestPropertyTypes resetProvider + $(MAKE) -C CreateInstance $(MFLAGS) $@ + $(MAKE) -C DeleteInstance $(MFLAGS) $@ + $(MAKE) -C EnumerateInstances $(MFLAGS) $@ + $(MAKE) -C EnumerateInstanceNames $(MFLAGS) $@ + $(MAKE) -C ErrorXml $(MFLAGS) $@ + $(MAKE) -C GetInstance $(MFLAGS) $@ +# $(MAKE) -C Headers $(MFLAGS) $@ + $(MAKE) -C InvokeMethod $(MFLAGS) $@ +# $(MAKE) -C ModifyClass $(MFLAGS) $@ + CLI -n $(NAMESPACE) im JMPIExpInstance_TestPropertyTypes enableModifications fState=true + $(MAKE) -C ModifyInstance $(MFLAGS) $@ +# $(MAKE) -C Property $(MFLAGS) $@ + CLI -n $(NAMESPACE) im JMPIExpInstance_TestPropertyTypes resetProvider diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/Makefile new file mode 100644 index 000000000..6ed9532ab --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/Makefile @@ -0,0 +1,44 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + ModifyClass43006 + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006.xml new file mode 100644 index 000000000..5c3ab3ae8 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006rspgood.xml new file mode 100644 index 000000000..313aa7224 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyClass/ModifyClass43006rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/Makefile new file mode 100644 index 000000000..cfa4de960 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/Makefile @@ -0,0 +1,54 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + ModifyInstance54000 \ + ModifyInstance54003 \ + ModifyInstance54004 \ + ModifyInstance54005 \ + ModifyInstance54006 + +ifndef SECURITY_ENABLED +XMLSCRIPTS += \ + ModifyInstance54001 \ + ModifyInstance54002 +endif + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000.xml new file mode 100644 index 000000000..84b22ba1f --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 1700 + + + 17200 + + + 16400 + + + -110 + + + -1700 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000rspgood.xml new file mode 100644 index 000000000..a577f28e5 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54000rspgood.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001.xml new file mode 100644 index 000000000..fc0700bb2 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001rspgood.xml new file mode 100644 index 000000000..d56292080 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54001rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002.xml new file mode 100644 index 000000000..10df7c381 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 1600 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002rspgood.xml new file mode 100644 index 000000000..f91b7076d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54002rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003.xml new file mode 100644 index 000000000..ab0ce301a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 16000 + + + 13200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003rspgood.xml new file mode 100644 index 000000000..b8c10b935 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54003rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004.xml new file mode 100644 index 000000000..c8b83075c --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 1600 + + + 13000200 + + + 16400 + + + -110 + + + -1600 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004rspgood.xml new file mode 100644 index 000000000..43df5cab4 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54004rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005.xml new file mode 100644 index 000000000..52b1e0870 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 1700 + + + 13000000 + + + 16400 + + + -110 + + + -1700 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005rspgood.xml new file mode 100644 index 000000000..dbf931a8d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54005rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006.xml new file mode 100644 index 000000000..50b71be97 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + JMPIExpInstance_TestPropertyTypes + + + JMPIExpInstance_TestPropertyTypes + + + 1 + + + modify_instance1 + + + 180 + + + 1700 + + + 17200 + + + 16400 + + + -110 + + + -17000 + + + -13200 + + + -16400 + + + true + + + 1.3245 + + + 1.6445 + + + 20010515104354.000000:000 + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006rspgood.xml new file mode 100644 index 000000000..12d830947 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ModifyInstance/ModifyInstance54006rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000.xml new file mode 100644 index 000000000..51146b609 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + + PropertyUint32 + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000rspgood.xml new file mode 100644 index 000000000..eb831f28d --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82000rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100.xml new file mode 100644 index 000000000..bbf165571 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 1 + + + + + + + PropertyUint32 + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100rspgood.xml new file mode 100644 index 000000000..bba56c7d3 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/GetProperty82100rspgood.xml @@ -0,0 +1,14 @@ + + + + + + + +3200 + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/Makefile b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/Makefile new file mode 100644 index 000000000..4d0da009a --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/Makefile @@ -0,0 +1,47 @@ +#//%2006//////////////////////////////////////////////////////////////////////// +#// +#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development +#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. +#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation, The Open Group. +#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; +#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; VERITAS Software Corporation; The Open Group. +#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; +#// EMC Corporation; Symantec Corporation; The Open Group. +#// +#// Permission is hereby granted, free of charge, to any person obtaining a copy +#// of this software and associated documentation files (the "Software"), to +#// deal in the Software without restriction, including without limitation the +#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +#// sell copies of the Software, and to permit persons to whom the Software is +#// furnished to do so, subject to the following conditions: +#// +#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN +#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED +#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#// +#//============================================================================== +ifndef PEGASUS_ROOT + $(error PEGASUS_ROOT environment variable undefined) +endif +ifndef PEGASUS_HOME + $(error PEGASUS_HOME environment variable undefined) +endif + +include $(PEGASUS_ROOT)/mak/config.mak +include $(PEGASUS_ROOT)/test/config.mak + +XMLSCRIPTS = \ + GetProperty82000 \ + GetProperty82100 \ + SetProperty82200 \ + SetProperty82300 + +include $(ROOT)/test/configend.mak diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200.xml new file mode 100644 index 000000000..84da91c69 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + PropertyUint32 + + + 200 + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200rspgood.xml new file mode 100644 index 000000000..6568c7110 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82200rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300.xml new file mode 100644 index 000000000..370ee9717 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + JMPIExpInstance_TestPropertyTypes + + + + + 10 + + + + + + PropertyUint32 + + + + + + + diff --git a/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300rspgood.xml b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300rspgood.xml new file mode 100644 index 000000000..890fea135 --- /dev/null +++ b/src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/Property/SetProperty82300rspgood.xml @@ -0,0 +1,10 @@ + + + + + + + + + + -- 2.34.1