Skip to content

Commit

Permalink
Use requests-mock to test taskcluster access.
Browse files Browse the repository at this point in the history
This includes responses from linux/mac/windows test runs, and will allow
us to test specific scenarios.
  • Loading branch information
jschwartzentruber committed Dec 21, 2017
1 parent 17262fd commit 1927638
Show file tree
Hide file tree
Showing 453 changed files with 25,846 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install:
- "%PYTHON%\\python.exe -m virtualenv --version"
- "git --version"
- "%PYTHON%\\python.exe -m pip install --upgrade flake8 pylint codecov"
- "%PYTHON%\\python.exe -m pip install --upgrade pytest-flake8 pytest-pylint pytest-cov"
- "%PYTHON%\\python.exe -m pip install --upgrade pytest-flake8 pytest-pylint pytest-cov requests-mock"
- "%PYTHON%\\python.exe -m pip install -e ."
build: off
test_script:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install:
- python -m pip install -e .
before_script:
- pip install --upgrade flake8 pylint codecov
- pip install --upgrade pytest-flake8 pytest-pylint pytest-cov
- pip install --upgrade pytest-flake8 pytest-pylint pytest-cov requests-mock
script:
- python -m pytest
after_success:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespaces": [
{
"namespace": "gecko.v2.mozilla-beta.pushdate.2017.12.20.20171220134250",
"name": "20171220134250",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-beta.pushdate.2017.12.20.20171220141936",
"name": "20171220141936",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-beta.pushdate.2017.12.20.20171220142642",
"name": "20171220142642",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-beta.pushdate.2017.12.20.20171220153916",
"name": "20171220153916",
"expires": "2018-12-20T00:00:00.000Z"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"namespaces": [
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220040325",
"name": "20171220040325",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220094437",
"name": "20171220094437",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220094743",
"name": "20171220094743",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220100049",
"name": "20171220100049",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220100057",
"name": "20171220100057",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220103047",
"name": "20171220103047",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220121833",
"name": "20171220121833",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220125120",
"name": "20171220125120",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-central.pushdate.2017.12.20.20171220135553",
"name": "20171220135553",
"expires": "2018-12-20T00:00:00.000Z"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"namespaces": [
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.19.20171219144003",
"name": "20171219144003",
"expires": "2018-12-19T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.19.20171219150708",
"name": "20171219150708",
"expires": "2018-12-19T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.19.20171219155432",
"name": "20171219155432",
"expires": "2018-12-19T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.19.20171219192007",
"name": "20171219192007",
"expires": "2018-12-19T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.19.20171220001248",
"name": "20171220001248",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.19.20171220011752",
"name": "20171220011752",
"expires": "2018-12-20T00:00:00.000Z"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"namespaces": [
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.20.20171220001248",
"name": "20171220001248",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-esr52.pushdate.2017.12.20.20171220011752",
"name": "20171220011752",
"expires": "2018-12-20T00:00:00.000Z"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"namespaces": [
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220000926",
"name": "20171220000926",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220014204",
"name": "20171220014204",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220014246",
"name": "20171220014246",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220015434",
"name": "20171220015434",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220020945",
"name": "20171220020945",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220021048",
"name": "20171220021048",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220021138",
"name": "20171220021138",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220034956",
"name": "20171220034956",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220062928",
"name": "20171220062928",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220065702",
"name": "20171220065702",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220070310",
"name": "20171220070310",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220083557",
"name": "20171220083557",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220101447",
"name": "20171220101447",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220102148",
"name": "20171220102148",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220112023",
"name": "20171220112023",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220123434",
"name": "20171220123434",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220133227",
"name": "20171220133227",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220133548",
"name": "20171220133548",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220135954",
"name": "20171220135954",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220140753",
"name": "20171220140753",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220141014",
"name": "20171220141014",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220142133",
"name": "20171220142133",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220144027",
"name": "20171220144027",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220145643",
"name": "20171220145643",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220151350",
"name": "20171220151350",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220152835",
"name": "20171220152835",
"expires": "2018-12-20T00:00:00.000Z"
},
{
"namespace": "gecko.v2.mozilla-inbound.pushdate.2017.12.20.20171220154551",
"name": "20171220154551",
"expires": "2018-12-20T00:00:00.000Z"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"namespaces": [
{
"namespace": "gecko.v2.mozilla-release.pushdate.2017.12.18.20171218193215",
"name": "20171218193215",
"expires": "2018-12-18T00:00:00.000Z"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.linux64-asan-debug",
"taskId": "M5Ei30MTStmIKFP7ZbipFA",
"rank": 1513780002,
"data": {},
"expires": "2018-12-20T14:28:04.695Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.linux64-asan-opt",
"taskId": "eXJWEBZaSRe6SpS0zAEwxw",
"rank": 1513780002,
"data": {},
"expires": "2018-12-20T14:28:04.602Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.linux64-debug",
"taskId": "RgptPRNTS1eya7q0akJ-Vg",
"rank": 1513780002,
"data": {},
"expires": "2018-12-20T14:28:04.682Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.linux64-fuzzing-asan-opt",
"taskId": "NUK-ZXwoRmGAj0McJT7h7w",
"rank": 1513780002,
"data": {},
"expires": "2018-12-20T14:28:04.731Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.linux64-opt",
"taskId": "S3t_JfIZTeuWEUgv5HAngg",
"rank": 1513780002,
"data": {},
"expires": "2018-12-20T14:28:04.613Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.macosx64-debug",
"taskId": "akaewioRSFa_4i4Z1yiEKg",
"rank": 1513784356,
"data": {},
"expires": "2018-12-20T15:40:37.842Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.macosx64-opt",
"taskId": "cUbKf0c0ThaDMySI-Y_jHA",
"rank": 1513784356,
"data": {},
"expires": "2018-12-20T15:40:37.907Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.win32-debug",
"taskId": "ULdU07_5S7q6JgJXVooAZA",
"rank": 1513784356,
"data": {},
"expires": "2018-12-20T15:40:37.811Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.win32-opt",
"taskId": "VvDon6Q7R1qe7F6L_p0NBw",
"rank": 1513784356,
"data": {},
"expires": "2018-12-20T15:40:37.878Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.win64-debug",
"taskId": "bEAgfhJJQn-MH6X-Ah5YCQ",
"rank": 1513784356,
"data": {},
"expires": "2018-12-20T15:40:37.771Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"namespace": "gecko.v2.mozilla-beta.latest.firefox.win64-opt",
"taskId": "b-xsyPl2RgmUiOxp2hmmGQ",
"rank": 1513784356,
"data": {},
"expires": "2018-12-20T15:40:37.858Z"
}
Loading

0 comments on commit 1927638

Please sign in to comment.