def check_version(cls):
     """Checks server version against minimum required version."""
     super(SimpleCpnrDriver, cls).check_version()
     model.configure_pnr()
     cls.recover_networks()
     ver = model.get_version()
     if ver < cls.MIN_VERSION:
         LOG.warning(_LW("CPNR version does not meet minimum requirements, "
                  "expected: %(ever)f, actual: %(rver)f"),
                  {'ever': cls.MIN_VERSION, 'rver': ver})
     return ver
Beispiel #2
0
 def check_version(cls):
     """Checks server version against minimum required version."""
     super(SimpleCpnrDriver, cls).check_version()
     model.configure_pnr()
     cls.recover_networks()
     ver = model.get_version()
     if ver < cls.MIN_VERSION:
         LOG.warning(
             _LW("CPNR version does not meet minimum requirements, "
                 "expected: %(ever)f, actual: %(rver)f"), {
                     'ever': cls.MIN_VERSION,
                     'rver': ver
                 })
     return ver
Beispiel #3
0
 def test_get_version(self, mock_client):
     (mock_client.return_value.get_version.
         return_value) = "CPNR Version 8.3.3"
     ver = model.get_version()
     self.assertEqual('8.3.3', ver)
 def test_get_version(self, mock_client):
     (mock_client.return_value.get_version.return_value) = "CPNR Version 8.3.3"
     ver = model.get_version()
     self.assertEqual("8.3.3", ver)