text: """
  Copyright 2020 The Magma Authors.
  
  This source code is licensed under the BSD-style license found in the
  LICENSE file in the root directory of this source tree.
  
  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.
  """
  
  import unittest
  
  from integ_tests.common.magmad_client import MagmadServiceGrpc
  from integ_tests.s1aptests.s1ap_utils import MagmadUtil
  
  
  class TestModifyConfigForNonSanity(unittest.TestCase):
      """Unittest: TestModifyConfigForNonSanity"""
  
      def test_modify_config_for_non_sanity(self):
          """Modify configurations for Non-Sanity Test Cases
  
          Some non-sanity test cases need changes in default configuration. This
          test script modifies the  configuration files with required values so
          that all the test cases of non-sanity test suite can be verified
          """
          magmad_client = MagmadServiceGrpc()
          self._magmad_util = MagmadUtil(magmad_client)
          ret_codes = []
  
          print("Modifying configuration for all non-sanity test cases to pass")
  
          print("Enabling Ha service")
          ret_codes.append(
              self._magmad_util.config_ha_service(
                  MagmadUtil.ha_service_cmds.ENABLE,
              ),
          )
  
          # It is assumed that oai-gtp_4.9-9_amd64.deb pkg is already installed
          print("Enabling IPv6 solicitation service")
          ret_codes.append(
              self._magmad_util.config_ipv6_solicitation(
                  MagmadUtil.ipv6_config_cmds.ENABLE,
              ),
          )
  
          print(
              "Modifying MME configuration for non-sanity test cases to pass",
          )
          self._magmad_util.update_mme_config_for_non_sanity(
              MagmadUtil.config_update_cmds.MODIFY,
          )
  
          print("Restarting services to apply configuration change")
          self._magmad_util.restart_all_services()
  
  
  if __name__ == "__main__":
      unittest.main()
  