<commit_before><!--
  ~ Copyright 2016-present Open Networking Foundation
  ~
  ~ Licensed 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.
  -->
<scenario name="meta-apps"
          description="Openflow provider activate/deactivate test">
    <group name="Meta-App">
        <step name="InitialDeactivateOpenflowMetaApp"
              exec="onos ${OCI} onos:app deactivate org.onosproject.openflow org.onosproject.hostprovider org.onosproject.lldpprovider org.onosproject.openflow-base"/>
        <step name="InitialActivateOpenflowMetaApp" requires="InitialDeactivateOpenflowMetaApp"
              exec="onos ${OCI} onos:app activate org.onosproject.openflow"/>

        <!-- Check initial state of openflow apps -->
        <group name="MetaAppInitialVerification" requies="InitialActivateOpenflowMetaApp">
            <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowInitial-${#}" ends="MetaAppTest.CheckLldpProviderInitial-${#-1}">
                <step name="MetaAppTest.FindOpenflowInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppInitial" />
                <step name="MetaAppTest.CheckOpenflowInitial-${#}" requires="MetaAppTest.FindOpenflowInitial-${#}"
                      exec="test '${openflowAppInitialState}' == 'active'"/>

                <step name="MetaAppTest.FindOpenflowBaseInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseInitial" />
                <step name="MetaAppTest.CheckOpenflowBaseInitial-${#}" requires="MetaAppTest.FindOpenflowBaseInitial-${#}"
                      exec="test '${openflowBaseInitialState}' == 'active'"/>

                <step name="MetaAppTest.FindHostProviderInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderInitial" />
                <step name="MetaAppTest.CheckHostProviderInitial-${#}" requires="MetaAppTest.FindHostProviderInitial-${#}"
                      exec="test '${hostProviderInitialState}' == 'active'"/>

                <step name="MetaAppTest.FindLldpProviderInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderInitial" />
                <step name="MetaAppTest.CheckLldpProviderInitial-${#}" requires="MetaAppTest.FindLldpProviderInitial-${#}"
                      exec="test '${lldpProviderInitialState}' == 'active'"/>
            </parallel>
        </group>

        <!-- Deactivate openflow meta app -->
        <step name="MetaAppTest.DeactivateOpenflowMetaApp" requires="MetaAppInitialVerification"
              exec="onos ${OCI} onos:app deactivate org.onosproject.openflow"/>

        <!-- Check that openflow apps are no longer active -->
        <group name="MetaAppInactive" requires="MetaAppTest.DeactivateOpenflowMetaApp,MetaAppInitialVerification">
            <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowInactive-${#}" ends="MetaAppTest.CheckLldpProviderInactive-${#-1}">
                <step name="MetaAppTest.FindOpenflowInactive-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppInactive" />
                <step name="MetaAppTest.CheckOpenflowInactive-${#}" requires="^"
                      exec="test '${openflowAppInactiveState}' == 'inactive'"/>

                <step name="MetaAppTest.FindOpenflowBaseInactive-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseInactive" />
                <step name="MetaAppTest.CheckOpenflowBaseInactive-${#}" requires="^"
                      exec="test '${openflowBaseInactiveState}' == 'inactive'"/>

                <step name="MetaAppTest.FindHostProviderInactive-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderInactive" />
                <step name="MetaAppTest.CheckHostProviderInactive-${#}" requires="^"
                      exec="test '${hostProviderInactiveState}' == 'inactive'"/>

                <step name="MetaAppTest.FindLldpProviderInactive-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderInactive" />
                <step name="MetaAppTest.CheckLldpProviderInactive-${#}" requires="^"
                      exec="test '${lldpProviderInactiveState}' == 'inactive'"/>
            </parallel>
        </group>

        <!-- Reactivate openflow meta app -->
        <step name="MetaAppTest.ReactivateOpenflowMetaApp" requires="MetaAppInactive"
              exec="onos ${OCI} onos:app activate org.onosproject.openflow"/>

        <!-- Check that openflow apps are now active again -->
        <group name="MetaAppReactivated" requires="MetaAppTest.ReactivateOpenflowMetaApp,MetaAppInactive,MetaAppInitialVerification">
            <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowReactivated-${#}" ends="MetaAppTest.CheckLldpProviderRectivated-${#-1}">
                <step name="MetaAppTest.FindOpenflowReactivated-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppReactivated" />
                <step name="MetaAppTest.CheckOpenflowReactivated-${#}" requires="^"
                      exec="test '${openflowAppReactivatedState}' == 'active'"/>

                <step name="MetaAppTest.FindOpenflowBaseReactivated-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseReactivated" />
                <step name="MetaAppTest.CheckOpenflowBaseReactivated-${#}" requires="^"
                      exec="test '${openflowBaseReactivatedState}' == 'active'"/>

                <step name="MetaAppTest.FindHostProviderReactivated-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderReactivated" />
                <step name="MetaAppTest.CheckHostProviderReactivated-${#}" requires="^"
                      exec="test '${hostProviderReactivatedState}' == 'active'"/>

                <step name="MetaAppTest.FindLldpProviderReactivated-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderReactivated" />
                <step name="MetaAppTest.CheckLldpProviderReactivated-${#}" requires="^"
                      exec="test '${lldpProviderReactivatedState}' == 'active'"/>
            </parallel>
        </group>

    </group>

</scenario>
<commit_msg>Re-Fixed the meta-app STC scenario; apps loaded from disk won't implicitly deactivate.<commit_after><!--
  ~ Copyright 2016-present Open Networking Foundation
  ~
  ~ Licensed 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.
  -->
<scenario name="meta-apps"
          description="Openflow provider activate/deactivate test">
    <group name="Meta-App">
        <step name="InitialDeactivateOpenflowMetaApp"
              exec="onos ${OCI} onos:app deactivate org.onosproject.openflow org.onosproject.hostprovider org.onosproject.lldpprovider org.onosproject.openflow-base"/>
        <step name="InitialActivateOpenflowMetaApp" requires="InitialDeactivateOpenflowMetaApp"
              exec="onos ${OCI} onos:app activate org.onosproject.openflow"/>

        <!-- Check initial state of openflow apps -->
        <group name="MetaAppInitialVerification" requires="InitialActivateOpenflowMetaApp">
            <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowInitial-${#}" ends="MetaAppTest.CheckLldpProviderInitial-${#-1}">
                <step name="MetaAppTest.FindOpenflowInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppInitial" />
                <step name="MetaAppTest.CheckOpenflowInitial-${#}" requires="MetaAppTest.FindOpenflowInitial-${#}"
                      exec="test '${openflowAppInitialState}' == 'active'"/>

                <step name="MetaAppTest.FindOpenflowBaseInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseInitial" />
                <step name="MetaAppTest.CheckOpenflowBaseInitial-${#}" requires="MetaAppTest.FindOpenflowBaseInitial-${#}"
                      exec="test '${openflowBaseInitialState}' == 'active'"/>

                <step name="MetaAppTest.FindHostProviderInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderInitial" />
                <step name="MetaAppTest.CheckHostProviderInitial-${#}" requires="MetaAppTest.FindHostProviderInitial-${#}"
                      exec="test '${hostProviderInitialState}' == 'active'"/>

                <step name="MetaAppTest.FindLldpProviderInitial-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderInitial" />
                <step name="MetaAppTest.CheckLldpProviderInitial-${#}" requires="MetaAppTest.FindLldpProviderInitial-${#}"
                      exec="test '${lldpProviderInitialState}' == 'active'"/>
            </parallel>
        </group>

        <!-- Deactivate openflow meta app -->
        <step name="MetaAppTest.DeactivateOpenflowMetaApp" requires="MetaAppInitialVerification"
              exec="onos ${OCI} onos:app deactivate org.onosproject.openflow"/>

        <!-- Check that openflow apps are no longer active -->
        <group name="MetaAppInactive" requires="MetaAppTest.DeactivateOpenflowMetaApp,MetaAppInitialVerification">
            <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowInactive-${#}" ends="MetaAppTest.CheckLldpProviderInactive-${#-1}">
                <step name="MetaAppTest.FindOpenflowInactive-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppInactive" />
                <step name="MetaAppTest.CheckOpenflowInactive-${#}" requires="^"
                      exec="test '${openflowAppInactiveState}' == 'inactive'"/>

                <step name="MetaAppTest.FindOpenflowBaseInactive-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseInactive" />
                <step name="MetaAppTest.CheckOpenflowBaseInactive-${#}" requires="^"
                      exec="test '${openflowBaseInactiveState}' == 'inactive'"/>

                <step name="MetaAppTest.FindHostProviderInactive-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderInactive" />
                <step name="MetaAppTest.CheckHostProviderInactive-${#}" requires="^"
                      exec="test '${hostProviderInactiveState}' == 'inactive'"/>

                <step name="MetaAppTest.FindLldpProviderInactive-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderInactive" />
                <step name="MetaAppTest.CheckLldpProviderInactive-${#}" requires="^"
                      exec="test '${lldpProviderInactiveState}' == 'inactive'"/>
            </parallel>
        </group>

        <!-- Reactivate openflow meta app -->
        <step name="MetaAppTest.ReactivateOpenflowMetaApp" requires="MetaAppInactive"
              exec="onos ${OCI} onos:app activate org.onosproject.openflow"/>

        <!-- Check that openflow apps are now active again -->
        <group name="MetaAppReactivated" requires="MetaAppTest.ReactivateOpenflowMetaApp,MetaAppInactive,MetaAppInitialVerification">
            <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowReactivated-${#}" ends="MetaAppTest.CheckLldpProviderRectivated-${#-1}">
                <step name="MetaAppTest.FindOpenflowReactivated-${#}"
                      exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppReactivated" />
                <step name="MetaAppTest.CheckOpenflowReactivated-${#}" requires="^"
                      exec="test '${openflowAppReactivatedState}' == 'active'"/>

                <step name="MetaAppTest.FindOpenflowBaseReactivated-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseReactivated" />
                <step name="MetaAppTest.CheckOpenflowBaseReactivated-${#}" requires="^"
                      exec="test '${openflowBaseReactivatedState}' == 'active'"/>

                <step name="MetaAppTest.FindHostProviderReactivated-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderReactivated" />
                <step name="MetaAppTest.CheckHostProviderReactivated-${#}" requires="^"
                      exec="test '${hostProviderReactivatedState}' == 'active'"/>

                <step name="MetaAppTest.FindLldpProviderReactivated-${#}" requires="^"
                      exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderReactivated" />
                <step name="MetaAppTest.CheckLldpProviderReactivated-${#}" requires="^"
                      exec="test '${lldpProviderReactivatedState}' == 'active'"/>
            </parallel>
        </group>

    </group>

</scenario>

{'fraction_non_alphanumeric': 0.13876244665718349, 'fraction_numerical': 0.0015647226173541964, 'mean_word_length': 2.8344695936733024, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4319084', 'n_tokens_mistral': 3993, 'n_tokens_neox': 3814, 'n_words': 681}