mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
Compatibility fix with multiple servers
We will not maintian two different interfaces as earlier decided. Instead, a common, single interface will be maintained. Hence, the tests must adhere to the same format expected of the Parallel Tests.
This commit is contained in:
parent
8b1a9b6de7
commit
f5785003b1
@ -20,9 +20,9 @@ A_File = WgetFile ("HTTP.Teapot", File1)
|
||||
B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --content-disposition"
|
||||
WGET_URLS = ["File2"]
|
||||
WGET_URLS = [["File2"]]
|
||||
|
||||
Files = [B_File]
|
||||
Files = [[B_File]]
|
||||
Existing_Files = [A_File]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
|
@ -25,9 +25,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("LOTR", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --content-disposition"
|
||||
WGET_URLS = ["LOTR"]
|
||||
WGET_URLS = [["LOTR"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [WgetFile ("JRR.Tolkein", File1)]
|
||||
|
@ -13,9 +13,9 @@ File1 = "You shall not pass!"
|
||||
A_File = WgetFile ("File1", File1)
|
||||
|
||||
WGET_OPTIONS = "-d --method=HEAD"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = []
|
||||
|
@ -13,9 +13,9 @@ File1 = "Test Contents."
|
||||
A_File = WgetFile ("File1", File1)
|
||||
|
||||
WGET_OPTIONS = "-d -O NewFile.txt"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
ExistingFiles = [A_File]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
|
@ -17,9 +17,9 @@ TestMessage"""
|
||||
A_File = WgetFile ("File1", File1)
|
||||
|
||||
WGET_OPTIONS = "-d --method=post --body-data=TestMessage"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [WgetFile ("File1", File1_response)]
|
||||
|
@ -38,9 +38,9 @@ B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
C_File = WgetFile ("File3", File3)
|
||||
|
||||
WGET_OPTIONS = "-d --content-disposition --user=Sauron --password=TheEye"
|
||||
WGET_URLS = ["File1", "File2"]
|
||||
WGET_URLS = [["File1", "File2"]]
|
||||
|
||||
Files = [A_File, B_File]
|
||||
Files = [[A_File, B_File]]
|
||||
Existing_Files = [C_File]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
|
@ -20,9 +20,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --user=Sauron --password=Eye"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 6
|
||||
ExpectedDownloadedFiles = []
|
||||
|
@ -28,9 +28,9 @@ A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --user=Sauron --password=TheEye"
|
||||
WGET_URLS = ["File1", "File2"]
|
||||
WGET_URLS = [["File1", "File2"]]
|
||||
|
||||
Files = [A_File, B_File]
|
||||
Files = [[A_File, B_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File, B_File]
|
||||
|
@ -46,9 +46,9 @@ B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
C_File = WgetFile ("File3", File3, rules=File3_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --user=Sauron --password=TheEye"
|
||||
WGET_URLS = ["File1", "File2", "File3"]
|
||||
WGET_URLS = [["File1", "File2", "File3"]]
|
||||
|
||||
Files = [A_File, B_File, C_File]
|
||||
Files = [[A_File, B_File, C_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File, B_File, C_File]
|
||||
|
@ -19,9 +19,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --user=Pacman --password=Omnomnom"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File]
|
||||
|
@ -23,9 +23,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --auth-no-challenge http://Pacman:Omnomnom@localhost:{{port}}/File1"
|
||||
WGET_URLS = []
|
||||
WGET_URLS = [[]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File]
|
||||
|
@ -23,9 +23,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --auth-no-challenge --user=Pacman --password=Omnomnom"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File]
|
||||
|
@ -19,9 +19,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 8
|
||||
ExpectedDownloadedFiles = []
|
||||
|
@ -23,9 +23,9 @@ File1_rules = {
|
||||
A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
|
||||
WGET_OPTIONS = "-d --user=Pacman --password=Omnomnom --content-disposition"
|
||||
WGET_URLS = ["File1"]
|
||||
WGET_URLS = [["File1"]]
|
||||
|
||||
Files = [A_File]
|
||||
Files = [[A_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [WgetFile ("Arch", File1)]
|
||||
|
@ -20,9 +20,9 @@ D_File = WgetFile ("File2", File2)
|
||||
E_File = WgetFile ("File3", File1)
|
||||
|
||||
WGET_OPTIONS = "-d -c"
|
||||
WGET_URLS = ["File1", "File2", "File3"]
|
||||
WGET_URLS = [["File1", "File2", "File3"]]
|
||||
|
||||
Files = [A_File, C_File, E_File]
|
||||
Files = [[A_File, C_File, E_File]]
|
||||
Existing_Files = [B_File, D_File]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
|
@ -28,9 +28,9 @@ A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
|
||||
WGET_OPTIONS = "-d"
|
||||
WGET_URLS = ["File1", "File2"]
|
||||
WGET_URLS = [["File1", "File2"]]
|
||||
|
||||
Files = [A_File, B_File]
|
||||
Files = [[A_File, B_File]]
|
||||
|
||||
ExpectedReturnCode = 6
|
||||
ExpectedDownloadedFiles = [B_File]
|
||||
|
@ -26,9 +26,9 @@ A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
|
||||
WGET_OPTIONS = "-d"
|
||||
WGET_URLS = ["File1", "File2"]
|
||||
WGET_URLS = [["File1", "File2"]]
|
||||
|
||||
Files = [A_File, B_File]
|
||||
Files = [[A_File, B_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File, B_File]
|
||||
|
@ -49,9 +49,9 @@ C_File = WgetFile ("File3", File3, rules=File3_rules)
|
||||
D_File = WgetFile ("File4", File4, rules=File4_rules)
|
||||
|
||||
WGET_OPTIONS = "-d"
|
||||
WGET_URLS = ["File1", "File2", "File3", "File4"]
|
||||
WGET_URLS = [["File1", "File2", "File3", "File4"]]
|
||||
|
||||
Files = [A_File, B_File, C_File, D_File]
|
||||
Files = [[A_File, B_File, C_File, D_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File, B_File, C_File, D_File]
|
||||
|
@ -26,9 +26,9 @@ A_File = WgetFile ("File1", File1, rules=File1_rules)
|
||||
B_File = WgetFile ("File2", File2, rules=File2_rules)
|
||||
|
||||
WGET_OPTIONS = "-d"
|
||||
WGET_URLS = ["File1", "File2"]
|
||||
WGET_URLS = [["File1", "File2"]]
|
||||
|
||||
Files = [A_File, B_File]
|
||||
Files = [[A_File, B_File]]
|
||||
|
||||
ExpectedReturnCode = 0
|
||||
ExpectedDownloadedFiles = [A_File, B_File]
|
||||
|
Loading…
Reference in New Issue
Block a user