示例#1
0
 def testGetQuickReleaseTests(self):
     ftp_server_from = "stage.mozilla.org/firefox"
     ftp_server_to = "stage.mozilla.org/firefox"
     self.uvc.read(self.config)
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "Firefox"
     uvc2.channel = "betatest"
     uvc2.aus_server = "https://aus4.mozilla.org"
     uvc2.to = "/firefox/4.0rc2.tar.bz2"
     uvc2.to_build_id = "999"
     uvc2.to_display_version = "99.0 Zeta 9"
     uvc2.to_app_version = "99.0"
     uvc2.addRelease("4.0b12",
                     build_id="777",
                     platform="Linux_x86-gcc3",
                     locales=["de", "ja", "zh-TW"],
                     patch_types=["complete"],
                     from_path=None,
                     ftp_server_from=ftp_server_from,
                     ftp_server_to=ftp_server_to)
     uvc2.addRelease("3.7a1",
                     build_id="666",
                     platform="Linux_x86-gcc3",
                     locales=["en-US"],
                     patch_types=["complete"],
                     from_path=None,
                     ftp_server_from=ftp_server_from,
                     ftp_server_to=ftp_server_to)
     self.assertEquals(self.uvc.getQuickReleaseTests(), uvc2.releases)
示例#2
0
 def testGetChunkWithPathWithSpaces(self):
     self.uvc.product = "Firefox"
     self.uvc.channel = "betatest"
     self.uvc.aus_server = "https://aus4.mozilla.org"
     self.uvc.ftp_server_from = "stage.mozilla.org/firefox"
     self.uvc.ftp_server_to = "stage.mozilla.org/firefox"
     self.uvc.to = "/firefox/Firefox 4.0 Beta 2.exe"
     self.uvc.to_build_id = "999"
     self.uvc.to_display_version = "99.0 Zeta 9"
     self.uvc.to_app_version = "99.0"
     self.uvc.addRelease("4.0b1",
                         build_id="222",
                         platform="Linux_x86-gcc3",
                         locales=["en-US", "ja", "zh-TW"],
                         patch_types=["complete"],
                         from_path="/firefox/Firefox 4.0 Beta 1.exe")
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "Firefox"
     uvc2.channel = "betatest"
     uvc2.aus_server = "https://aus4.mozilla.org"
     uvc2.ftp_server_from = "stage.mozilla.org/firefox"
     uvc2.ftp_server_to = "stage.mozilla.org/firefox"
     uvc2.to = "/firefox/Firefox 4.0 Beta 2.exe"
     uvc2.to_build_id = "999"
     uvc2.to_display_version = "99.0 Zeta 9"
     uvc2.to_app_version = "99.0"
     uvc2.addRelease("4.0b1",
                     build_id="222",
                     platform="Linux_x86-gcc3",
                     locales=["en-US", "ja"],
                     patch_types=["complete"],
                     from_path="/firefox/Firefox 4.0 Beta 1.exe")
     chunkedConfig = self.uvc.getChunk(chunks=2, thisChunk=1)
     self.assertEquals(chunkedConfig, uvc2)
示例#3
0
 def testGetChunk(self):
     ftp_server_from = "stage.mozilla.org/firefox"
     ftp_server_to = "stage.mozilla.org/firefox"
     self.uvc.read(self.config)
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "Firefox"
     uvc2.channel = "betatest"
     uvc2.aus_server = "https://aus4.mozilla.org"
     uvc2.to = "/firefox/4.0rc2.tar.bz2"
     uvc2.to_build_id = "999"
     uvc2.to_display_version = "99.0 Zeta 9"
     uvc2.to_app_version = "99.0"
     uvc2.addRelease("4.0",
                     build_id="888",
                     platform="Linux_x86-gcc3",
                     locales=["af", "de", "en-US"],
                     patch_types=["partial", "complete"],
                     from_path="/firefox/4.0rc1.tar.bz2",
                     ftp_server_from=ftp_server_from,
                     ftp_server_to=ftp_server_to,
                     mar_channel_IDs="firefox-mozilla-beta")
     uvc2.addRelease("4.0b12",
                     build_id="777",
                     platform="Linux_x86-gcc3",
                     locales=["de", "ja"],
                     patch_types=["complete"],
                     ftp_server_from=ftp_server_from,
                     ftp_server_to=ftp_server_to,
                     from_path=None)
     chunkedConfig = self.uvc.getChunk(chunks=3, thisChunk=1)
     self.assertEquals(chunkedConfig, uvc2)
示例#4
0
 def testEq(self):
     self.uvc.product = "foo"
     self.uvc.channel = "betatest"
     self.uvc.aus_server = "aus"
     self.uvc.ftp_server_from = "ftp"
     self.uvc.ftp_server_to = "ftp"
     self.uvc.to = "/firefox/4.0rc2.tar.bz2"
     self.uvc.mar_channel_IDs = 'baz'
     self.uvc.to_build_id = "999"
     self.uvc.to_display_version = "99.0 Zeta 9"
     self.uvc.to_app_version = "99.0"
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "foo"
     uvc2.channel = "betatest"
     uvc2.aus_server = "aus"
     uvc2.ftp_server_form = "ftp"
     uvc2.ftp_server_to = "ftp"
     uvc2.to = "/firefox/4.0rc2.tar.bz2"
     uvc2.mar_channel_IDs = 'baz'
     uvc2.to_build_id = "999"
     uvc2.to_display_version = "99.0 Zeta 9"
     uvc2.to_app_version = "99.0"
     self.assertEquals(self.uvc, uvc2)