Bug 1193836 - Decouple the jobs and reference databases for test

We were previously using the same database (test_treeherder) for both the
jobs and reference data model. I centralized the new db name in the test
settings file. All the test requiring the jobs db or its repository counterpart
can now access it using the `test_project` fixture, while utility functions use
directly the metioned setting. Where the project name is hardcoded in a static
file, I just replaced it with the new name `test_treeherder_jobs`
This commit is contained in:
Mauro Doglio 2015-09-16 13:00:34 +01:00
Родитель 6134f26b6d
Коммит d5f847e559
17 изменённых файлов: 109 добавлений и 110 удалений

Просмотреть файл

@ -11,8 +11,8 @@ python:
# - node_modules
env:
global:
- DATABASE_URL='mysql://root@localhost/treeherder'
- DATABASE_URL_RO='mysql://root@localhost/treeherder'
- DATABASE_URL='mysql://root@localhost/test_treeherder'
- DATABASE_URL_RO='mysql://root@localhost/test_treeherder'
- TREEHERDER_DJANGO_SECRET_KEY='secretkey-1234'
- DJANGO_SETTINGS_MODULE='tests.settings'
services:
@ -37,7 +37,7 @@ before_script:
# Required for Karma tests (http://docs.travis-ci.com/user/gui-and-headless-browsers/)
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- mysql -u root -e 'create database treeherder;'
- mysql -u root -e 'create database test_treeherder;'
script:
- npm test
- py.test tests/$* --runslow

Просмотреть файл

@ -5,7 +5,7 @@
"revisions": [
{
"comment": "Bug 936711 - Fix crash which happened at disabling Bluetooth during reconnection. r=gyeh, a=koi+",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "cdfe03e77e66"
@ -18,7 +18,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 1 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/b946d5776d33\nDesc: Merge pull request #13593 from wanderview/contacts-group-overflow\n\nBug 937291: Limit overflow of each group list. r=jmcf",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "86847a33f088"
@ -31,7 +31,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 1 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/b5b1d9aa0cc4\nDesc: Bug 934402 - Write an atom to send SMS using 'MozSMS' API",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "21fb3eed1b5f"
@ -44,7 +44,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/39145004f7c6\nDesc: Merge pull request #13659 from AndreiH/bug925851_v1.2\n\nBug 925851 - Re-enable test_capture_multiple_shots\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/b8010ab0e121\nDesc: Bug 925851 - Re-enable test_capture_multiple_shots",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "e31d2a7267b9"
@ -57,7 +57,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 8 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/3b19a90a8cec\ndelvalle@gmail.com>\nDesc: Merge pull request #13628 from gtorodelvalle/contacts-bug-936283-search-bar-plus-Gmail-or-Outlook\n\nBug 936283 - [B2G][Contacts] Search bar stops functioning when searching contacts in Gmail or Outlook more than once(cherry picked from commit 351f9ad4b8f5e427cd90ae6bdfbafb9a4c9639c7)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/aa52963f4c22\nDesc: Merge pull request #13604 from snowmantw/issue937023\n\nBug 937023 - [v1.2] Remove transparent to blue transition of lock screen handle and animation after unlock, r=timdream(cherry picked from commit 002578cc3cd0ca31e1333aafd8d019d9dd83e408)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/05617615ced6\nDesc: Merge pull request #13570 from timdream/keyboard-settings-back\n\nBug 914093 - Back button for Gaia Keyboard settings page, r=rudyl(cherry picked from commit 9abc79e45a7283a557f177a3f9b54bec2668a2b8)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/13af00ed5c50\nDesc: Merge pull request #13540 from asutherland/makefile-fix\n\nBug 931550 - Clock and Mail app only have rocket icon on homescreen, can't launch/broken. r=:yurenju(cherry picked from commit 513bafaceb391b5fb102ae3ac5a2a753f91ce164)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/d0df3d96ac80\nDesc: Merge pull request #13516 from fcampo/sim-import-FTE-933381\n\nBug 933381 - [FTE] No message when importing from empty SIM (r=jmcf)(cherry picked from commit c560ddbda27b4c3cc129acad2fa8a6ec0d148308)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/3521ebd132ea\nDesc: Merge pull request #13531 from fcampo/retry-import-Contacts-935301\n\nBug 935301 - [Contacts] Clicking retry on error while importing from SD doesn't retry(cherry picked from commit 164bed00446439e2aabb6e58587c379ff8850800)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/303169692648\nDesc: Merge pull request #13568 from comoyo/hu_gone\n\nBug 936579 - Bring back Hungarian autocorrect. r=RudyL(cherry picked from commit fecd21241feb20df0e9bbed2f279c42112cd283c)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/70d7967a35e7\nDesc: Bug 936418 - [keyboard] 'Layout selection' in keyboard style switcher dialog isn't localized\n(cherry picked from commit ff35da1e70028276510c39f7ebaa421a7acb3ade)",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "71d49fee325a"
@ -70,7 +70,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 1 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/c7e53e332dcb\nDesc: Revert \"Merge pull request #13504 from jaoo/927486\"\n\nThis reverts commit c624b65c1333d2f951533ff5f5d3094681cb1916.",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "bb57e9f67223"
@ -83,7 +83,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/33a44ec49b53\nDesc: Merge pull request #13662 from AndreiH/bug934446_v1.2\n\nBug 934446 - Test Messages contact input validation\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/c6fdfdccfb2e\nDesc: Bug 934446 - Test Messages contact input validation",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "909f55c626a8"
@ -96,7 +96,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/2ba51c7eadb0\nDesc: Merge pull request #13624 from teodosia/aurora-contact-photo-wait\n\nBug 937068 - Unxfail and enhance wait in test_contact_add_photo\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/d195214d4708\nDesc: Bug 937068 - Unxfail and enhance wait in test_contact_add_photo",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "668424578a0d"
@ -109,70 +109,70 @@
"revisions": [
{
"comment": "Bug 930281 - Use nsINode instead of nsIContent. r=smaug, a=lsblakk.",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "14ed3e7e606e"
},
{
"comment": "Bug 929261 - Fix for GetElementIC. r=shu, a=abillings",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "80d76b93040f"
},
{
"comment": "Bug 919021 - Convert ctypes over to use JS::AutoValueVector instead of its own array class. r=terrence, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "949dbbda2cfc"
},
{
"comment": "Bug 927073 - Binary compatibility broken for maintenance releases due to strict version-script - regression fix. r=glandium, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "344b9cd8dc62"
},
{
"comment": "Bug 934062 - Add waitForExplicitFinish to stop intermittent CSP test errors. r=sstamm, a=test-only",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "1ba2f441a418"
},
{
"comment": "Bug 913160 - Back out Bug 894331 to solve browser hangs when deleting history. a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "1008d7007411"
},
{
"comment": "Bug 921816 - Handle idls in --with-libxul-sdk builds. r=gps, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "77e95b4af9f0"
},
{
"comment": "Bug 921776 - Notification completed not showing when download was started from a private tab. r=wesj, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "a39f4c0f075d"
},
{
"comment": "Bug 934900 - Ensure back/forward are not re-enabled while in editing mode. r=sriram, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "9ba6a44a6dfa"
},
{
"comment": "Merge m-b to b2g26. a=merge",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Some Person <sperson@someplace.com>",
"branch": "default",
"revision": "997b28cb8737"
@ -185,7 +185,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/9cde9c357524\nDesc: Merge pull request #13618 from viorelaioia/bug_937344_v1.2\n\n[v1.2] Bug 937344 - Replace get_all_video files in test_camera_capture_video with video_files property\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/d7f28b459e97\nDesc: [v1.2] Bug 937344 - Replace get_all_video files in test_camera_capture_video with video_files property",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "65ac3b2aa05f"

Просмотреть файл

@ -98,8 +98,7 @@ def initial_data():
@pytest.fixture
def jobs_ds(request):
from treeherder.model.models import Datasource
ds = Datasource.objects.create(project=settings.DATABASES["default"]["TEST"]["NAME"])
ds = Datasource.objects.create(project=settings.TREEHERDER_TEST_PROJECT)
def fin():
ds.delete()
@ -159,13 +158,12 @@ def sample_resultset(sample_data):
@pytest.fixture
def test_project():
from django.conf import settings
return settings.DATABASES["default"]["TEST"]["NAME"]
def test_project(jm):
return jm.project
@pytest.fixture
def test_repository():
def test_repository(jm):
from treeherder.model.models import Repository, RepositoryGroup
RepositoryGroup.objects.create(
@ -176,7 +174,7 @@ def test_repository():
return Repository.objects.create(
dvcs_type="hg",
name=settings.DATABASES["default"]["TEST"]["NAME"],
name=jm.project,
url="https://hg.mozilla.org/mozilla-central",
active_status="active",
codebase="gecko",

Просмотреть файл

@ -41,7 +41,7 @@ def test_elasticsearch_doc_request_body(test_project, eleven_jobs_stored):
"type": "B2G Emulator Image Build",
"buildtype": "debug",
"starttime": "1384353553",
"tree": "test_treeherder",
"tree": test_project,
"rev": "cdfe03e77e66",
"bug": str(bug_id),
"who": who,

Просмотреть файл

@ -1,10 +1,9 @@
from django.conf import settings
from treeherder.etl import common
def test_get_revision_hash(initial_data,
result_set_stored, mock_get_remote_content):
"""That the correct revision_hash is retrieved if the revision exists"""
from treeherder.etl import common
project = result_set_stored[0]['revisions'][0]['repository']
# todo: Continue using short revisions until Bug 1199364
short_revision = result_set_stored[0]['revisions'][0]['revision'][:12]
@ -12,11 +11,10 @@ def test_get_revision_hash(initial_data,
assert resultset[project][short_revision]['revision_hash'] == result_set_stored[0]['revision_hash']
def test_get_revision_hash_none(mock_get_remote_content,
def test_get_revision_hash_none(mock_get_remote_content, test_project,
initial_data, result_set_stored):
"""Test that none is returned if the revision doesn't exist"""
from treeherder.etl import common
project = settings.DATABASES["default"]["TEST"]["NAME"]
project = test_project
revision = "fakerevision"
resultset = common.lookup_revisions({project: [revision]})
assert len(resultset) == 0

Просмотреть файл

@ -2,6 +2,7 @@ import json
import os
import responses
from django.conf import settings
from django.core.cache import cache
from treeherder.etl.pushlog import (HgPushlogProcess,
@ -166,7 +167,8 @@ def test_ingest_hg_pushlog_cache_last_push(jm, initial_data, test_repository,
pushes = pushlog_dict['pushes']
max_push_id = max([int(k) for k in pushes.keys()])
assert cache.get("test_treeherder:last_push_id") == max_push_id
cache_key = "%s:last_push_id" % settings.TREEHERDER_TEST_PROJECT
assert cache.get(cache_key) == max_push_id
def test_empty_json_pushes(jm, initial_data, test_base_dir,

Просмотреть файл

@ -12,7 +12,7 @@
],
"base_mirror_urls": null,
"basedir": "/builds/slave/b2g_fx-team_emu-kk-d_nu-000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"buildername": "b2g_fx-team_emulator-kk-debug_nonunified",
"buildid": "20141008023001",
"buildnumber": 42,
@ -66,7 +66,7 @@
"appName": "Firefox",
"appVersion": "35.0a1",
"basedir": "c:/builds/moz2_slave/m-cen-w32-ntly-000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "m-cen-w32-ntly-000000000000000",
"buildername": "WINNT 5.2 mozilla-central nightly",
"buildid": "20141008030202",

Просмотреть файл

@ -8,7 +8,7 @@
"master_id": 81,
"properties": {
"basedir": "c:\\slave\\test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jcoppeard@mozilla.com-a0a0b3d23040/try-win64/firefox-26.0a1.en-US.win64-x86_64.zip",
"buildername": "win64_vm try opt test mochitest-other",
"buildid": "20130813092104",
@ -53,7 +53,7 @@
"appName": "Firefox",
"appVersion": "26.0a1",
"basedir": "/builds/slave/try-osx64-d-000000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "try-osx64-d-000000000000000000",
"buildername": "OS X 10.7 64-bit try leak test build",
"buildid": "20130814082959",
@ -114,7 +114,7 @@
"appName": "Firefox",
"appVersion": "26.0a1",
"basedir": "e:/builds/moz2_slave/m-in-w32-pgo-00000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "m-in-w32-pgo-00000000000000000",
"buildername": "WINNT 5.2 mozilla-inbound pgo-build",
"buildid": "20130814102526",
@ -186,7 +186,7 @@
"appName": "Firefox",
"appVersion": "26.0a1",
"basedir": "e:/builds/moz2_slave/m-in-w32-d-0000000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "m-in-w32-d-0000000000000000000",
"buildername": "WINNT 5.2 mozilla-inbound leak test build",
"buildid": "20130814104121",
@ -249,7 +249,7 @@
"appName": "Firefox",
"appVersion": "25.0a2",
"basedir": "e:/builds/moz2_slave/m-aurora-w32-00000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "m-aurora-w32-00000000000000000",
"buildername": "WINNT 5.2 mozilla-aurora build",
"buildid": "20130814104621",
@ -312,7 +312,7 @@
"appName": "Firefox",
"appVersion": "26.0a1",
"basedir": "e:/builds/moz2_slave/try-w32-d-00000000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "try-w32-d-00000000000000000000",
"buildername": "WINNT 5.2 try leak test build",
"buildid": "20130814104704",
@ -376,7 +376,7 @@
"appName": "Firefox",
"appVersion": "25.0a2",
"basedir": "/builds/slave/m-aurora-lx-000000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "m-aurora-lx-000000000000000000",
"buildername": "Linux mozilla-aurora build",
"buildid": "20130814104621",
@ -446,7 +446,7 @@
"appName": "Firefox",
"appVersion": "25.0a2",
"basedir": "/builds/slave/m-aurora-l64-00000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "m-aurora-l64-00000000000000000",
"buildername": "Linux x86-64 mozilla-aurora build",
"buildid": "20130814104621",
@ -514,7 +514,7 @@
"master_id": 90,
"properties": {
"basedir": "/builds/slave/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/fx-team-macosx64-debug/1376499083/firefox-26.0a1.en-US.mac64.dmg",
"buildername": "Rev4 MacOSX Lion 10.7 fx-team debug test mochitest-browser-chrome",
"buildid": "20130814095123",
@ -559,7 +559,7 @@
"master_id": 90,
"properties": {
"basedir": "/Users/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/fx-team-macosx64-debug/1376499083/firefox-26.0a1.en-US.mac64.dmg",
"buildername": "Rev4 MacOSX Snow Leopard 10.6 fx-team debug test mochitest-browser-chrome",
"buildid": "20130814095123",
@ -604,7 +604,7 @@
"master_id": 71,
"properties": {
"basedir": "/home/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/hurley@mozilla.com-f55b1a3d65a4/try-linux-debug/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Rev3 Fedora 12 try debug test mochitest-browser-chrome",
"buildid": "20130814092605",
@ -648,7 +648,7 @@
"master_id": 73,
"properties": {
"basedir": "/builds/slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/hurley@mozilla.com-f55b1a3d65a4/try-linux-debug/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Ubuntu VM 12.04 try debug test reftest",
"buildid": "20130814092605",
@ -692,7 +692,7 @@
"master_id": 82,
"properties": {
"basedir": "/builds/slave/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-macosx64-debug/1376500461/firefox-26.0a1.en-US.mac64.dmg",
"buildername": "Rev4 MacOSX Lion 10.7 mozilla-inbound debug test mochitest-browser-chrome",
"buildid": "20130814101421",
@ -740,7 +740,7 @@
"master_id": 82,
"properties": {
"basedir": "/Users/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-macosx64-debug/1376500461/firefox-26.0a1.en-US.mac64.dmg",
"buildername": "Rev4 MacOSX Snow Leopard 10.6 mozilla-inbound debug test mochitest-browser-chrome",
"buildid": "20130814101421",
@ -788,7 +788,7 @@
"master_id": 80,
"properties": {
"basedir": "/home/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jcoppeard@mozilla.com-7cd16ff70711/try-linux-debug/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Rev3 Fedora 12 try debug test mochitest-browser-chrome",
"buildid": "20130814093237",
@ -832,7 +832,7 @@
"master_id": 100,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_3-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_3",
"buildername": "release-mozilla-release-win32_repack_3/10",
@ -879,7 +879,7 @@
"master_id": 100,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_2-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_2",
"buildername": "release-mozilla-release-win32_repack_2/10",
@ -926,7 +926,7 @@
"master_id": 100,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_1-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_1",
"buildername": "release-mozilla-release-win32_repack_1/10",
@ -973,7 +973,7 @@
"master_id": 95,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_6-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_6",
"buildername": "release-mozilla-release-win32_repack_6/10",
@ -1020,7 +1020,7 @@
"master_id": 95,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_7-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_7",
"buildername": "release-mozilla-release-win32_repack_7/10",
@ -1067,7 +1067,7 @@
"master_id": 99,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_5-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_5",
"buildername": "release-mozilla-release-win32_repack_5/10",
@ -1114,7 +1114,7 @@
"master_id": 95,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_9-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_9",
"buildername": "release-mozilla-release-win32_repack_9/10",
@ -1161,7 +1161,7 @@
"master_id": 95,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_8-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_8",
"buildername": "release-mozilla-release-win32_repack_8/10",
@ -1208,7 +1208,7 @@
"master_id": 95,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_10-000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_10",
"buildername": "release-mozilla-release-win32_repack_10/10",
@ -1255,7 +1255,7 @@
"master_id": 100,
"properties": {
"basedir": "/e/builds/moz2_slave/rel-m-rel-w32_rpk_4-0000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_number": 1,
"builddir": "release-mozilla-release-win32_repack_4",
"buildername": "release-mozilla-release-win32_repack_4/10",
@ -1302,7 +1302,7 @@
"master_id": 73,
"properties": {
"basedir": "/home/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/fx-team-linux-debug/1376499083/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Rev3 Fedora 12 fx-team debug test mochitest-browser-chrome",
"buildid": "20130814095123",
@ -1347,7 +1347,7 @@
"master_id": 71,
"properties": {
"basedir": "/builds/slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/fx-team-linux-debug/1376499083/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Ubuntu VM 12.04 fx-team debug test reftest",
"buildid": "20130814095123",
@ -1392,7 +1392,7 @@
"master_id": 73,
"properties": {
"basedir": "/home/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-linux-debug/1376498063/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Rev3 Fedora 12 mozilla-inbound debug test mochitest-browser-chrome",
"buildid": "20130814093423",
@ -1437,7 +1437,7 @@
"master_id": 80,
"properties": {
"basedir": "/home/cltbld/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/hurley@mozilla.com-3beb9ebd1dd7/try-linux-debug/firefox-26.0a1.en-US.linux-i686.tar.bz2",
"buildername": "Rev3 Fedora 12 try debug test mochitest-browser-chrome",
"buildid": "20130814093938",
@ -1483,7 +1483,7 @@
"appName": "Firefox",
"appVersion": "26.0a1",
"basedir": "/builds/slave/try-lx-d-000000000000000000000",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"builddir": "try-lx-d-000000000000000000000",
"buildername": "Linux try leak test build",
"buildid": "20130814112248",
@ -1542,7 +1542,7 @@
"master_id": 87,
"properties": {
"basedir": "/builds/slave/talos-slave/test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-macosx64-debug/1376500942/firefox-26.0a1.en-US.mac64.dmg",
"buildername": "Rev4 MacOSX Lion 10.7 mozilla-inbound debug test mochitest-browser-chrome",
"buildid": "20130814102222",
@ -1587,7 +1587,7 @@
"master_id": 89,
"properties": {
"basedir": "c:\\slave\\test",
"branch": "test_treeherder",
"branch": "test_treeherder_jobs",
"build_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/date-win64/1376488843/firefox-26.0a1.en-US.win64-x86_64.zip",
"buildername": "win64_vm date opt test mochitest-browser-chrome",
"buildid": "20130814070043",

Просмотреть файл

@ -1,6 +1,6 @@
{
"pending":{
"test_treeherder": {
"test_treeherder_jobs": {
"45f8637cb9f7": [
{"submitted_at": 1369304814, "id": 24575179, "buildername": "WINNT 6.2 try debug test mochitest-4"}
],

Просмотреть файл

@ -1,6 +1,6 @@
{
"pending":{
"test_treeherder": {
"test_treeherder_jobs": {
"4b40022e5c4c": [
{"submitted_at": 1369304814, "id": 24575179, "buildername": "WINNT 6.2 try debug test mochitest-4"}
]

Просмотреть файл

@ -1,6 +1,6 @@
{
"running": {
"test_treeherder": {
"test_treeherder_jobs": {
"45f8637cb9f7": [
{
"submitted_at": 1369231311,

Просмотреть файл

@ -1,6 +1,6 @@
{
"running": {
"test_treeherder": {
"test_treeherder_jobs": {
"4b40022e5c4c": [
{
"submitted_at": 1376416924,

Просмотреть файл

@ -5,7 +5,7 @@
"revisions": [
{
"comment": "Bug 936711 - Fix crash which happened at disabling Bluetooth during reconnection. r=gyeh, a=koi+",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Eric Chou <echou@mozilla.com>",
"branch": "default",
"revision": "cdfe03e77e663456789012345678901234567890"
@ -18,7 +18,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 1 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/b946d5776d33\nAuthor: Ben Kelly <bkelly@mozilla.com>\nDesc: Merge pull request #13593 from wanderview/contacts-group-overflow\n\nBug 937291: Limit overflow of each group list. r=jmcf",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "86847a33f0883456789012345678901234567890"
@ -31,7 +31,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 1 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/b5b1d9aa0cc4\nAuthor: Sergey Tupchiy <tupchii.sergii@gmail.com>\nDesc: Bug 934402 - Write an atom to send SMS using 'MozSMS' API",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "21fb3eed1b5f3456789012345678901234567890"
@ -44,7 +44,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/39145004f7c6\nAuthor: Teodosia Pop <teodosia.pop@gmail.com>\nDesc: Merge pull request #13659 from AndreiH/bug925851_v1.2\n\nBug 925851 - Re-enable test_capture_multiple_shots\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/b8010ab0e121\nAuthor: Andrei Hutusoru <andreihutusoru@P5069.(none)>\nDesc: Bug 925851 - Re-enable test_capture_multiple_shots",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "e31d2a7267b93456789012345678901234567890"
@ -57,7 +57,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 8 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/3b19a90a8cec\nAuthor: Germán Toro del Valle <gtorodelvalle@gmail.com>\nDesc: Merge pull request #13628 from gtorodelvalle/contacts-bug-936283-search-bar-plus-Gmail-or-Outlook\n\nBug 936283 - [B2G][Contacts] Search bar stops functioning when searching contacts in Gmail or Outlook more than once(cherry picked from commit 351f9ad4b8f5e427cd90ae6bdfbafb9a4c9639c7)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/aa52963f4c22\nAuthor: Timothy Guan-tin Chien <timdream@gmail.com>\nDesc: Merge pull request #13604 from snowmantw/issue937023\n\nBug 937023 - [v1.2] Remove transparent to blue transition of lock screen handle and animation after unlock, r=timdream(cherry picked from commit 002578cc3cd0ca31e1333aafd8d019d9dd83e408)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/05617615ced6\nAuthor: Timothy Guan-tin Chien <timdream@gmail.com>\nDesc: Merge pull request #13570 from timdream/keyboard-settings-back\n\nBug 914093 - Back button for Gaia Keyboard settings page, r=rudyl(cherry picked from commit 9abc79e45a7283a557f177a3f9b54bec2668a2b8)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/13af00ed5c50\nAuthor: Andrew Sutherland <asutherland@asutherland.org>\nDesc: Merge pull request #13540 from asutherland/makefile-fix\n\nBug 931550 - Clock and Mail app only have rocket icon on homescreen, can't launch/broken. r=:yurenju(cherry picked from commit 513bafaceb391b5fb102ae3ac5a2a753f91ce164)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/d0df3d96ac80\nAuthor: Fernando Campo <fernando.campo@o2.com>\nDesc: Merge pull request #13516 from fcampo/sim-import-FTE-933381\n\nBug 933381 - [FTE] No message when importing from empty SIM (r=jmcf)(cherry picked from commit c560ddbda27b4c3cc129acad2fa8a6ec0d148308)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/3521ebd132ea\nAuthor: Jose M. Cantera <jmcanterafonseca@gmail.com>\nDesc: Merge pull request #13531 from fcampo/retry-import-Contacts-935301\n\nBug 935301 - [Contacts] Clicking retry on error while importing from SD doesn't retry(cherry picked from commit 164bed00446439e2aabb6e58587c379ff8850800)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/303169692648\nAuthor: Jan Jongboom <janjongboom@gmail.com>\nDesc: Merge pull request #13568 from comoyo/hu_gone\n\nBug 936579 - Bring back Hungarian autocorrect. r=RudyL(cherry picked from commit fecd21241feb20df0e9bbed2f279c42112cd283c)\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/70d7967a35e7\nAuthor: mpizza <mmm198219@gmail.com>\nDesc: Bug 936418 - [keyboard] 'Layout selection' in keyboard style switcher dialog isn't localized\n(cherry picked from commit ff35da1e70028276510c39f7ebaa421a7acb3ade)",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "71d49fee325a3456789012345678901234567890"
@ -70,7 +70,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 1 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/c7e53e332dcb\nAuthor: Julien Wajsberg <felash@gmail.com>\nDesc: Revert \"Merge pull request #13504 from jaoo/927486\"\n\nThis reverts commit c624b65c1333d2f951533ff5f5d3094681cb1916.",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "bb57e9f672233456789012345678901234567890"
@ -83,7 +83,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/33a44ec49b53\nAuthor: Bob Silverberg <bob.silverberg@gmail.com>\nDesc: Merge pull request #13662 from AndreiH/bug934446_v1.2\n\nBug 934446 - Test Messages contact input validation\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/c6fdfdccfb2e\nAuthor: Andrei Hutusoru <andreihutusoru@P5069.(none)>\nDesc: Bug 934446 - Test Messages contact input validation",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "909f55c626a83456789012345678901234567890"
@ -96,7 +96,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/2ba51c7eadb0\nAuthor: Bob Silverberg <bob.silverberg@gmail.com>\nDesc: Merge pull request #13624 from teodosia/aurora-contact-photo-wait\n\nBug 937068 - Unxfail and enhance wait in test_contact_add_photo\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/d195214d4708\nAuthor: Teodosia Pop <teodosia.pop@gmail.com>\nDesc: Bug 937068 - Unxfail and enhance wait in test_contact_add_photo",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "668424578a0d3456789012345678901234567890"
@ -109,70 +109,70 @@
"revisions": [
{
"comment": "Bug 930281 - Use nsINode instead of nsIContent. r=smaug, a=lsblakk.",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Henri Sivonen <hsivonen@hsivonen.fi>",
"branch": "default",
"revision": "14ed3e7e606e3456789012345678901234567890"
},
{
"comment": "Bug 929261 - Fix for GetElementIC. r=shu, a=abillings",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Eric Faust <efaustbmo@gmail.com>",
"branch": "default",
"revision": "80d76b93040f3456789012345678901234567890"
},
{
"comment": "Bug 919021 - Convert ctypes over to use JS::AutoValueVector instead of its own array class. r=terrence, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Jeff Walden <jwalden@mit.edu>",
"branch": "default",
"revision": "949dbbda2cfc3456789012345678901234567890"
},
{
"comment": "Bug 927073 - Binary compatibility broken for maintenance releases due to strict version-script - regression fix. r=glandium, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Philipp Kewisch <mozilla@kewis.ch>",
"branch": "default",
"revision": "344b9cd8dc623456789012345678901234567890"
},
{
"comment": "Bug 934062 - Add waitForExplicitFinish to stop intermittent CSP test errors. r=sstamm, a=test-only",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Garrett Robinson <grobinson@mozilla.com>",
"branch": "default",
"revision": "1ba2f441a4183456789012345678901234567890"
},
{
"comment": "Bug 913160 - Back out Bug 894331 to solve browser hangs when deleting history. a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Marco Bonardo <mbonardo@mozilla.com>",
"branch": "default",
"revision": "1008d70074113456789012345678901234567890"
},
{
"comment": "Bug 921816 - Handle idls in --with-libxul-sdk builds. r=gps, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Mike Hommey <mh+mozilla@glandium.org>",
"branch": "default",
"revision": "77e95b4af9f03456789012345678901234567890"
},
{
"comment": "Bug 921776 - Notification completed not showing when download was started from a private tab. r=wesj, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Federico Paolinelli <fedepaol@gmail.com>",
"branch": "default",
"revision": "a39f4c0f075d3456789012345678901234567890"
},
{
"comment": "Bug 934900 - Ensure back/forward are not re-enabled while in editing mode. r=sriram, a=lsblakk",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Lucas Rocha <lucasr@lucasr.org>",
"branch": "default",
"revision": "9ba6a44a6dfa3456789012345678901234567890"
},
{
"comment": "Merge m-b to b2g26. a=merge",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Ryan VanderMeulen <ryanvm@gmail.com>",
"branch": "default",
"revision": "997b28cb87373456789012345678901234567890"
@ -185,7 +185,7 @@
"revisions": [
{
"comment": "Bumping gaia.json for 2 gaia-1_2 revision(s) a=gaia-bump\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/9cde9c357524\nAuthor: Bob Silverberg <bob.silverberg@gmail.com>\nDesc: Merge pull request #13618 from viorelaioia/bug_937344_v1.2\n\n[v1.2] Bug 937344 - Replace get_all_video files in test_camera_capture_video with video_files property\n\n========\n\nhttps://hg.mozilla.org/integration/gaia-1_2/rev/d7f28b459e97\nAuthor: Viorela Ioia <viorelaioia@gmail.com>\nDesc: [v1.2] Bug 937344 - Replace get_all_video files in test_camera_capture_video with video_files property",
"repository": "test_treeherder",
"repository": "test_treeherder_jobs",
"author": "Gaia Pushbot <release+gaiajson@mozilla.com>",
"branch": "default",
"revision": "65ac3b2aa05f3456789012345678901234567890"

Просмотреть файл

@ -173,6 +173,6 @@ def result_set(**kwargs):
# same name as the db test name in settings. If this is not
# the same, the tests will not pass.
for rev in defaults["revisions"]:
rev["repository"] = settings.DATABASES["default"]["TEST"]["NAME"]
rev["repository"] = settings.TREEHERDER_TEST_PROJECT
return defaults

Просмотреть файл

@ -10,7 +10,7 @@ class SampleData(object):
def get_credentials(cls):
credentials = {
'test_treeherder': {
settings.TREEHERDER_TEST_PROJECT: {
'consumer_key': '8de17836-4a9b-45f5-824c-5ada76713334',
'consumer_secret': '0f71d011-d773-4831-9f1c-17b237207467'
}
@ -83,7 +83,7 @@ class SampleData(object):
# the same, the tests will not pass.
for rs in self.resultset_data:
for rev in rs["revisions"]:
rev["repository"] = settings.DATABASES["default"]["TEST"]["NAME"]
rev["repository"] = settings.TREEHERDER_TEST_PROJECT
def get_log_path(self, name):
"""Returns the full path to a log file"""

Просмотреть файл

@ -1,6 +1,7 @@
from treeherder.config.settings import *
DATABASES["default"]["TEST"] = {"NAME": "test_treeherder"}
TREEHERDER_TEST_PROJECT = "%s_jobs" % DATABASES["default"]["TEST"]["NAME"]
# this makes celery calls synchronous, useful for unit testing
CELERY_ALWAYS_EAGER = True

Просмотреть файл

@ -10,7 +10,7 @@ from treeherder.client import TreeherderResultSetCollection
from treeherder.webapp.api import utils
def test_resultset_list(webapp, eleven_jobs_stored, jm):
def test_resultset_list(webapp, eleven_jobs_stored, jm, test_project):
"""
test retrieving a list of ten json blobs from the jobs-list
endpoint. ``full`` set to false, so it doesn't return revisions.
@ -44,7 +44,7 @@ def test_resultset_list(webapp, eleven_jobs_stored, jm):
u'count': 10,
u'filter_params': {},
u'repository':
u'test_treeherder'
test_project
})
@ -79,7 +79,7 @@ def test_resultset_list_empty_rs_still_show(webapp, initial_data,
jm.disconnect()
def test_resultset_list_single_short_revision(webapp, eleven_jobs_stored, jm):
def test_resultset_list_single_short_revision(webapp, eleven_jobs_stored, jm, test_project):
"""
test retrieving a resultset list, filtered by single short revision
"""
@ -99,11 +99,11 @@ def test_resultset_list_single_short_revision(webapp, eleven_jobs_stored, jm):
u'filter_params': {
u'revision': "21fb3eed1b5f"
},
u'repository': u'test_treeherder'}
u'repository': test_project}
)
def test_resultset_list_single_long_revision(webapp, eleven_jobs_stored, jm):
def test_resultset_list_single_long_revision(webapp, eleven_jobs_stored, jm, test_project):
"""
test retrieving a resultset list, filtered by a single long revision
"""
@ -123,11 +123,11 @@ def test_resultset_list_single_long_revision(webapp, eleven_jobs_stored, jm):
u'filter_params': {
u'revision__in': u'21fb3eed1b5f3456789012345678901234567890,21fb3eed1b5f'
},
u'repository': u'test_treeherder'}
u'repository': test_project}
)
def test_resultset_list_single_long_revision_stored_long(webapp, sample_resultset, jm):
def test_resultset_list_single_long_revision_stored_long(webapp, sample_resultset, jm, test_project):
"""
test retrieving a resultset list with store long revision, filtered by a single long revision
"""
@ -152,11 +152,11 @@ def test_resultset_list_single_long_revision_stored_long(webapp, sample_resultse
u'filter_params': {
u'revision__in': u'21fb3eed1b5f3456789012345678901234567890,21fb3eed1b5f'
},
u'repository': u'test_treeherder'}
u'repository': test_project}
)
def test_resultset_list_filter_by_revision(webapp, eleven_jobs_stored, jm):
def test_resultset_list_filter_by_revision(webapp, eleven_jobs_stored, jm, test_project):
"""
test retrieving a resultset list, filtered by a revision range
"""
@ -179,13 +179,13 @@ def test_resultset_list_filter_by_revision(webapp, eleven_jobs_stored, jm):
u'push_timestamp__gte': 1384363842,
u'push_timestamp__lte': 1384365942
},
u'repository': u'test_treeherder',
u'repository': test_project,
u'tochange': u'909f55c626a8'}
)
def test_resultset_list_filter_by_date(webapp, initial_data,
sample_resultset, jm):
sample_resultset, jm, test_project):
"""
test retrieving a resultset list, filtered by a date range
"""
@ -215,7 +215,7 @@ def test_resultset_list_filter_by_date(webapp, initial_data,
u'push_timestamp__gte': 1376118000.0,
u'push_timestamp__lt': 1376463600.0
},
u'repository': u'test_treeherder',
u'repository': test_project,
u'startdate': u'2013-08-10'}
)
@ -223,7 +223,7 @@ def test_resultset_list_filter_by_date(webapp, initial_data,
def test_resultset_list_without_jobs(webapp, initial_data,
sample_resultset, jm):
sample_resultset, jm, test_project):
"""
test retrieving a resultset list without jobs
"""
@ -243,7 +243,7 @@ def test_resultset_list_without_jobs(webapp, initial_data,
assert meta == {
u'count': len(results),
u'filter_params': {},
u'repository': u'test_treeherder'
u'repository': test_project
}
jm.disconnect()