<commit_before><!--
  ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. 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="ApiManager-features-test-suite">
    <parameter name="useDefaultListeners" value="false"/>


    <test name="apim-integration-tests-api-common" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.other.AdvancedWebAppDeploymentConfig"/>
            <class name="org.wso2.am.integration.tests.other.APISecurityAuditTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AddEditRemoveRESTResourceTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.PluggableVersioningStrategyTestCase"/>
            <class name="org.wso2.am.integration.tests.jwt.MicroGWJWTRevocationTestCase"/>
            <class name="org.wso2.am.integration.tests.jwt.JWTRevocationTestCase"/>
            <class name="org.wso2.am.integration.tests.oas.OASTestCase"/>
        </classes>
    </test>

    <!--Separate group is introduced due to change of backend endpoints-->
    <test name="apim-integration-tests-api-change-endpoint" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.other.AdvancedWebAppDeploymentConfig"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeAPIEndPointURLTestCase"/>
        </classes>
    </test>

    <test name="apim-integration-tests-api-product" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.apiproduct.APIProductCreationTestCase"/>
        </classes>
    </test>


    <!--<test name="apim-ui-tests" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.ui.APIMANAGERUIIntegrationTestRunner"/>
        </classes>
    </test>-->

    <test name="apim-integration-tests-api-lifecycle" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APISecurityTestCase" />
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfBlockAPITestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfRetireAPITestCase"/>
            <!--&lt;!&ndash;https://wso2.org/jira/browse/TA-970&ndash;&gt;-->
            <!--<class name="org.wso2.am.integration.tests.api.lifecycle.AddNewHandlerAndInvokeAPITestCase"/>-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIInvocationWithSimilarResourcesAndDifferentVerbsTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIResourceWithSpecialCharactersInvocation"/>
            <class name="org.wso2.am.integration.tests.sequence.DefaultEndpointTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIPublishingAndVisibilityInStoreTestCase"/>
            <!--Disable the test case because of APIMANAGER-3378-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeAPITagsTestCase"/>
            <!--&lt;!&ndash;&lt;!&ndash;Disable the test case because of APIMANAGER-4191&ndash;&gt;&ndash;&gt;-->
            <!-- <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeApplicationTierAndTestInvokingTestCase"/>-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeAuthTypeOfResourceTestCase"/>
            <!--&lt;!&ndash;Disable the test case because ofAPIMANAGER-3515&ndash;&gt;-->
            <!--<class name="org.wso2.am.integration.tests.api.lifecycle.ChangeEndPointSecurityOfAPITestCase"/>-->
            <!--&lt;!&ndash;Disable the test case because of APIMANAGER-3530. this blocks the verification of the API. Need to update swagger after this issue is fixed&ndash;&gt;-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.EditAPIAndCheckUpdatedInformationTestCase"/>
            <!--&lt;!&ndash;Disable the test case because of APIMANAGER-3377&ndash;&gt;-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.EditAPIContextAndCheckAccessibilityTestCase"/>
            <!--&lt;!&ndash;Disable the test case because of APIMANAGER-3229&ndash;&gt;-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.UsersAndDocsInAPIOverviewTestCase"/>
            <class name="org.wso2.am.integration.tests.rest.MalformedRequestTest"/>
            <class name="org.wso2.am.integration.tests.other.ScriptMediatorTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.RegistryLifeCycleInclusionTest"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.CustomLifeCycleTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIMANAGER5337SubscriptionRetainTestCase"/>
            <class name="org.wso2.am.integration.tests.header.CustomHeaderTestCase"/>
            <!--<class name="org.wso2.am.integration.tests.header.DuplicateHeaderTestCase"/>-->
            <class name="org.wso2.am.integration.tests.token.InvalidTokenTestCase"/>
            <class name="org.wso2.am.integration.tests.throttling.APIThrottlingTestCase"/>
            <class name="org.wso2.am.integration.tests.throttling.JWTBandwidthThrottlingTestCase"/>
        </classes>
    </test>

    <test name="apim-email-secondary-userstore-tests" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.restapi.ContentSearchTestCase"/>
            <class name="org.wso2.am.integration.tests.other.PublisherAccessControlTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityWithDirectURLTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APITagVisibilityByRoleTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.NewVersionUpdateTestCase"/>
            <class name="org.wso2.am.integration.tests.header.CORSHeadersTestCase"/>
            <class name="org.wso2.am.integration.tests.resources.APIResourceModificationTestCase"/>
            <class name="org.wso2.am.integration.tests.token.RefreshTokenTestCase"/>
            <class name="org.wso2.am.integration.tests.other.TagsRatingCommentTestCase"/>
            <class name="org.wso2.am.integration.tests.token.TokenAPITestCase"/>
            <class name="org.wso2.am.integration.tests.token.OpenIDTokenAPITestCase"/>
            <class name="org.wso2.am.integration.tests.other.APIScopeTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityByRoleTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityByPublicTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityByDomainTestCase"/>
        </classes>
    </test>

    <test name="apim-CORS-tests" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.header.CORSAccessControlAllowCredentialsHeaderSetup"/>
            <class name="org.wso2.am.integration.tests.header.CORSAccessControlAllowCredentialsHeaderTestCase"/>
        </classes>
    </test>

    <test name="apim-integration-tests-samples" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.rest.UriTemplateReservedCharacterEncodingTest"/>
            <class name="org.wso2.am.integration.tests.other.APIInvocationFailureTestCase"/>
            <class name="org.wso2.am.integration.tests.other.DAOTestCase"/>
            <class name="org.wso2.am.integration.tests.version.DefaultVersionAPITestCase"/>
            <!--<class name="org.wso2.am.integration.tests.login.APIMANAGER2611oginTestCase"/>
            <class name="org.wso2.am.integration.tests.other.DigestAuthenticationTestCase"/>--><commit_msg>Commenting test case due to intermittent failure<commit_after><!--
  ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. 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="ApiManager-features-test-suite">
    <parameter name="useDefaultListeners" value="false"/>


    <test name="apim-integration-tests-api-common" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.other.AdvancedWebAppDeploymentConfig"/>
            <class name="org.wso2.am.integration.tests.other.APISecurityAuditTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AddEditRemoveRESTResourceTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.PluggableVersioningStrategyTestCase"/>
            <class name="org.wso2.am.integration.tests.jwt.MicroGWJWTRevocationTestCase"/>
            <class name="org.wso2.am.integration.tests.jwt.JWTRevocationTestCase"/>
            <class name="org.wso2.am.integration.tests.oas.OASTestCase"/>
        </classes>
    </test>

    <!--Separate group is introduced due to change of backend endpoints-->
    <test name="apim-integration-tests-api-change-endpoint" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.other.AdvancedWebAppDeploymentConfig"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeAPIEndPointURLTestCase"/>
        </classes>
    </test>

    <!--<test name="apim-integration-tests-api-product" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.apiproduct.APIProductCreationTestCase"/>
        </classes>
    </test>-->


    <!--<test name="apim-ui-tests" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.ui.APIMANAGERUIIntegrationTestRunner"/>
        </classes>
    </test>-->

    <test name="apim-integration-tests-api-lifecycle" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APISecurityTestCase" />
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfBlockAPITestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfRetireAPITestCase"/>
            <!--&lt;!&ndash;https://wso2.org/jira/browse/TA-970&ndash;&gt;-->
            <!--<class name="org.wso2.am.integration.tests.api.lifecycle.AddNewHandlerAndInvokeAPITestCase"/>-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIInvocationWithSimilarResourcesAndDifferentVerbsTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIResourceWithSpecialCharactersInvocation"/>
            <class name="org.wso2.am.integration.tests.sequence.DefaultEndpointTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIPublishingAndVisibilityInStoreTestCase"/>
            <!--Disable the test case because of APIMANAGER-3378-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeAPITagsTestCase"/>
            <!--&lt;!&ndash;&lt;!&ndash;Disable the test case because of APIMANAGER-4191&ndash;&gt;&ndash;&gt;-->
            <!-- <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeApplicationTierAndTestInvokingTestCase"/>-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.ChangeAuthTypeOfResourceTestCase"/>
            <!--&lt;!&ndash;Disable the test case because ofAPIMANAGER-3515&ndash;&gt;-->
            <!--<class name="org.wso2.am.integration.tests.api.lifecycle.ChangeEndPointSecurityOfAPITestCase"/>-->
            <!--&lt;!&ndash;Disable the test case because of APIMANAGER-3530. this blocks the verification of the API. Need to update swagger after this issue is fixed&ndash;&gt;-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.EditAPIAndCheckUpdatedInformationTestCase"/>
            <!--&lt;!&ndash;Disable the test case because of APIMANAGER-3377&ndash;&gt;-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.EditAPIContextAndCheckAccessibilityTestCase"/>
            <!--&lt;!&ndash;Disable the test case because of APIMANAGER-3229&ndash;&gt;-->
            <class name="org.wso2.am.integration.tests.api.lifecycle.UsersAndDocsInAPIOverviewTestCase"/>
            <class name="org.wso2.am.integration.tests.rest.MalformedRequestTest"/>
            <class name="org.wso2.am.integration.tests.other.ScriptMediatorTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.RegistryLifeCycleInclusionTest"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.CustomLifeCycleTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIMANAGER5337SubscriptionRetainTestCase"/>
            <class name="org.wso2.am.integration.tests.header.CustomHeaderTestCase"/>
            <!--<class name="org.wso2.am.integration.tests.header.DuplicateHeaderTestCase"/>-->
            <class name="org.wso2.am.integration.tests.token.InvalidTokenTestCase"/>
            <class name="org.wso2.am.integration.tests.throttling.APIThrottlingTestCase"/>
            <class name="org.wso2.am.integration.tests.throttling.JWTBandwidthThrottlingTestCase"/>
        </classes>
    </test>

    <test name="apim-email-secondary-userstore-tests" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.restapi.ContentSearchTestCase"/>
            <class name="org.wso2.am.integration.tests.other.PublisherAccessControlTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityWithDirectURLTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APITagVisibilityByRoleTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.NewVersionUpdateTestCase"/>
            <class name="org.wso2.am.integration.tests.header.CORSHeadersTestCase"/>
            <class name="org.wso2.am.integration.tests.resources.APIResourceModificationTestCase"/>
            <class name="org.wso2.am.integration.tests.token.RefreshTokenTestCase"/>
            <class name="org.wso2.am.integration.tests.other.TagsRatingCommentTestCase"/>
            <class name="org.wso2.am.integration.tests.token.TokenAPITestCase"/>
            <class name="org.wso2.am.integration.tests.token.OpenIDTokenAPITestCase"/>
            <class name="org.wso2.am.integration.tests.other.APIScopeTestCase"/>
            <!--<class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityByRoleTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityByPublicTestCase"/>
            <class name="org.wso2.am.integration.tests.api.lifecycle.APIVisibilityByDomainTestCase"/>-->
        </classes>
    </test>

    <test name="apim-CORS-tests" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.header.CORSAccessControlAllowCredentialsHeaderSetup"/>
            <class name="org.wso2.am.integration.tests.header.CORSAccessControlAllowCredentialsHeaderTestCase"/>
        </classes>
    </test>

    <test name="apim-integration-tests-samples" preserve-order="true" parallel="false" group-by-instances="true">
        <classes>
            <class name="org.wso2.am.integration.tests.rest.UriTemplateReservedCharacterEncodingTest"/>
            <class name="org.wso2.am.integration.tests.other.APIInvocationFailureTestCase"/>
            <class name="org.wso2.am.integration.tests.other.DAOTestCase"/>
            <class name="org.wso2.am.integration.tests.version.DefaultVersionAPITestCase"/>
            <!--<class name="org.wso2.am.integration.tests.login.APIMANAGER2611oginTestCase"/>
            <class name="org.wso2.am.integration.tests.other.DigestAuthenticationTestCase"/>-->
{'fraction_non_alphanumeric': 0.13781965006729474, 'fraction_numerical': 0.012059219380888291, 'mean_word_length': 3.428128724672229, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 227, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2657179', 'n_tokens_mistral': 5756, 'n_tokens_neox': 5523, 'n_words': 721}