-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify unit tests to test for both nashorn and graaljs script engines.
- Loading branch information
1 parent
b99a4a2
commit fd2dfac
Showing
26 changed files
with
328 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...g.wso2.carbon.identity.conditional.auth.functions.analytics/src/test/resources/testng.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
|
||
<suite name="Identity-connector-analytics-functions-validation-test-suite"> | ||
<test name="call-analytics-nashorn" parallel="false"> | ||
<parameter name="scriptEngine" value="nashorn"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.analytics.CallAnalyticsFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
<test name="call-analytics-graaljs" parallel="false"> | ||
<parameter name="scriptEngine" value="graaljs"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.analytics.CallAnalyticsFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
</suite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
.../org.wso2.carbon.identity.conditional.auth.functions.choreo/src/test/resources/testng.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
|
||
<suite name="Identity-connector-choreo-functions-validation-test-suite"> | ||
<test name="call-choreo-nashorn" parallel="false"> | ||
<parameter name="scriptEngine" value="nashorn"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.choreo.CallChoreoFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
<test name="call-choreo-graaljs" parallel="false"> | ||
<parameter name="scriptEngine" value="graaljs"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.choreo.CallChoreoFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
</suite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...nts/org.wso2.carbon.identity.conditional.auth.functions.elk/src/test/resources/testng.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
|
||
<suite name="Identity-connector-elk-analytics-functions-validation-test-suite"> | ||
<test name="call-elk-analytics-nashorn" parallel="false"> | ||
<parameter name="scriptEngine" value="nashorn"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.elk.CallElasticFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
<test name="call-elk-analytics-graaljs" parallel="false"> | ||
<parameter name="scriptEngine" value="graaljs"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.elk.CallElasticFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
</suite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...ts/org.wso2.carbon.identity.conditional.auth.functions.http/src/test/resources/testng.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
|
||
<suite name="Identity-connector-http-functions-validation-test-suite"> | ||
<test name="http-functions-nashorn" parallel="false"> | ||
<parameter name="scriptEngine" value="nashorn"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.http.CookieFunctionImplTest"/> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.http.HTTPGetFunctionImplTest"/> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.http.HTTPPostFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
<test name="http-functions-graaljs" parallel="false"> | ||
<parameter name="scriptEngine" value="graaljs"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.http.CookieFunctionImplTest"/> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.http.HTTPGetFunctionImplTest"/> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.http.HTTPPostFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
</suite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...so2.carbon.identity.conditional.auth.functions.notification/src/test/resources/testng.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | ||
|
||
<suite name="Identity-connector-notifications-functions-validation-test-suite"> | ||
<test name="call-analytics-nashorn" parallel="false"> | ||
<parameter name="scriptEngine" value="nashorn"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.notification.SendEmailFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
<test name="call-analytics-graaljs" parallel="false"> | ||
<parameter name="scriptEngine" value="graaljs"/> | ||
<classes> | ||
<class name="org.wso2.carbon.identity.conditional.auth.functions.notification.SendEmailFunctionImplTest"/> | ||
</classes> | ||
</test> | ||
</suite> |
Oops, something went wrong.