コード例 #1
0
 def testMaybeUpdateVersionVersionOverrideOlder(self):
     "Verify that maybeUpdateversion + versionOverride with older version works"
     self.cfg['versionOverride'] = ".1"
     try:
         ret = up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError, e:
         pass
コード例 #2
0
 def testMaybeUpdateVersionVersionOverrideOlder(self):
     "Verify that maybeUpdateversion + versionOverride with older version works"
     self.cfg['versionOverride'] = ".1"
     try:
         ret = up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError, e:
         pass
コード例 #3
0
ファイル: testUp2dateAuth.py プロジェクト: Bearlock/spacewalk
 def testMaybeUpdateVersionVersionOverrideOlder(self):
     "Verify that maybeUpdateversion + versionOverride with older version works"
     self.cfg['versionOverride'] = ".1"
     try:
         ret = up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError:
         pass
     else:
         self.fail("Excepted to get a Communication Error indicating unknown version")
コード例 #4
0
 def testMaybeUpdateVersionVersionOverrideOlder(self):
     "Verify that maybeUpdateversion + versionOverride with older version works"
     self.cfg['versionOverride'] = ".1"
     try:
         ret = up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError:
         pass
     else:
         self.fail(
             "Excepted to get a Communication Error indicating unknown version"
         )
コード例 #5
0
 def __update_system_id():
     try:
         up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError:
         print(sys.exc_info()[1])
         sys.exit(1)
コード例 #6
0
ファイル: testUp2dateAuth.py プロジェクト: Bearlock/spacewalk
 def testMaybeUpdateVersionVersionCorruptSystemid(self):
     "Verify that maybeUpdateVersion handles a munged systemid file"
     import testutils
     testutils.setupConfig("8.0-workstation-i386-1-corrupt-sysid")
     ret = up2dateAuth.maybeUpdateVersion()
コード例 #7
0
ファイル: testUp2dateAuth.py プロジェクト: Bearlock/spacewalk
 def testMaybeUpdateVersion(self):
     "Verify that maybeUpdateVersion works"
     ret = up2dateAuth.maybeUpdateVersion()
コード例 #8
0
ファイル: rhn_check.py プロジェクト: BlackSmith/spacewalk
 def __update_system_id():
     try:
         up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError, e:
         print e
         sys.exit(1)
コード例 #9
0
ファイル: rhn_check.py プロジェクト: m47ik/uyuni
 def __update_system_id():
     try:
         up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError:
         print(sys.exc_info()[1])
         sys.exit(1)
コード例 #10
0
 def testMaybeUpdateVersionVersionCorruptSystemid(self):
     "Verify that maybeUpdateVersion handles a munged systemid file"
     import testutils
     testutils.setupConfig("8.0-workstation-i386-1-corrupt-sysid")
     ret = up2dateAuth.maybeUpdateVersion()
コード例 #11
0
 def testMaybeUpdateVersion(self):
     "Verify that maybeUpdateVersion works"
     ret = up2dateAuth.maybeUpdateVersion()
コード例 #12
0
 def __update_system_id():
     try:
         up2dateAuth.maybeUpdateVersion()
     except up2dateErrors.CommunicationError, e:
         print e
         sys.exit(1)