Bug 983642 - [tps] AddonRepository.getAddonsByIDs fails in mutiple tps tests. r=hskupin, a=sylvestre DONTBUILD
authorAndrei Eftimie <andrei.eftimie@softvision.ro>
Thu, 27 Mar 2014 20:06:56 +0100
changeset 191399 b20905dda53df6585b5128ef32e65266808822a7
parent 191398 3aaca223b6734ad0eac098e1b7762678b5c9274b
child 191400 dbd3394c6ea1b6e831c5e97f5f0a7a6bb7c3bd13
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershskupin, sylvestre
bugs983642
milestone30.0a2
Bug 983642 - [tps] AddonRepository.getAddonsByIDs fails in mutiple tps tests. r=hskupin, a=sylvestre DONTBUILD
services/sync/tests/tps/addons/api/restartless-xpi@tests.mozilla.org.xml
services/sync/tests/tps/addons/api/unsigned-xpi@tests.mozilla.org.xml
services/sync/tests/tps/addons/restartless.xpi
services/sync/tests/tps/addons/unsigned.xpi
services/sync/tests/tps/restartless-xpi.xml
services/sync/tests/tps/restartless.xpi
services/sync/tests/tps/unsigned-xpi.xml
services/sync/tests/tps/unsigned.xpi
testing/tps/tps/testrunner.py
new file mode 100644
--- /dev/null
+++ b/services/sync/tests/tps/addons/api/restartless-xpi@tests.mozilla.org.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<searchresults total_results="1">
+  <addon id="5617">
+  <name>Restartless Test XPI</name>
+  <type id="1">Extension</type>
+  <guid>restartless-xpi@tests.mozilla.org</guid>
+  <slug>restartless-xpi</slug>
+  <version>1.0</version>
+
+  <compatible_applications><application>
+      <name>Firefox</name>
+      <application_id>1</application_id>
+      <min_version>3.6</min_version>
+      <max_version>*</max_version>
+      <appID>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</appID>
+    </application></compatible_applications>
+  <all_compatible_os><os>ALL</os></all_compatible_os>
+
+  <install os="ALL" size="485">http://127.0.0.1:4567/addons/restartless.xpi</install>
+    <created epoch="1252903662">
+      2009-09-14T04:47:42Z
+    </created>
+    <last_updated epoch="1315255329">
+      2011-09-05T20:42:09Z
+    </last_updated>
+    </addon>
+</searchresults>
new file mode 100644
--- /dev/null
+++ b/services/sync/tests/tps/addons/api/unsigned-xpi@tests.mozilla.org.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<searchresults total_results="1">
+  <addon id="5612">
+  <name>Unsigned Test XPI</name>
+  <type id="1">Extension</type>
+  <guid>unsigned-xpi@tests.mozilla.org</guid>
+  <slug>unsigned-xpi</slug>
+  <version>1.0</version>
+
+  <compatible_applications><application>
+      <name>Firefox</name>
+      <application_id>1</application_id>
+      <min_version>3.6</min_version>
+      <max_version>*</max_version>
+      <appID>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</appID>
+    </application></compatible_applications>
+  <all_compatible_os><os>ALL</os></all_compatible_os>
+
+  <install os="ALL" size="452">http://127.0.0.1:4567/addons/unsigned.xpi</install>
+    <created epoch="1252903662">
+      2009-09-14T04:47:42Z
+    </created>
+    <last_updated epoch="1315255329">
+      2011-09-05T20:42:09Z
+    </last_updated>
+    </addon>
+</searchresults>
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..973bc00cb56b0182baeb8d501b265d727a4b4977
GIT binary patch
literal 485
zc$^FHW@Zs#U}E54cwT(dW?Jc%NJ~ZrhFT^D25tr!hRnR;lEj=Gy`q$~&=5`rW+eqx
z9}q6B;AUWC`3h7C)Xcz88g$z4uz|py=h{A1&P8+C^m;FC@mMItuF@j#Xjkstq=)V)
z`5q5m7tU47ZFx02J-saL`nl<ACq0=Rt=<!NWOJsFez(S{_|v8zMc;~jR8N{}c+KSO
zmYuVusuMQ<tT{Jn%2Lg(yKPJDr4}x|<@=~Z#$O;UrgzJ!KU|uMCLWWY%quJn@lVQk
z_lPUnzIBn4eDi^0S9Ww{uiiXaOZb+eho@-9#^-!{U%i-8Jhd}6(UwU}wY+cJ)QE-q
zcY7b7Q+mX)WY&%k%<WP2{4I@7XUkdGg-jKRKCsZP?{>1Yl!;p%XH4wp_ba_#e4m^v
z{)kCJc;VZRxBDvCemT5}UvyxPk)!*Lg;Un7z33tLwa=!wMM!{S>2ur6fIUAdDwXo<
zmM%<oX!~_cq9kLX)`e>}0_OrMZUk=7%b8;Qe}C5t{s3=ACOKwY;V;1e0zfXql12~<
bB{o<gv4Iv70p6@^5KW8>fk3(rq?-W%=w7%~
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..51b00475a9641ea9d608874a3ab7679da3a4374b
GIT binary patch
literal 452
zc$^FHW@Zs#U}E54_?u^9#dA2DRf~~<A%uy6ftx{;Av3SIBrzvPuP7xgG=!6Z`R(;m
zPY@2RU}5;mD8f)0<mh+UKw!^vQMJ8_JN=layLm<}3F>4Pa^m=!CAB@`#_JRJCLMTP
zI9DyV<<;!;^s=<;=fu~BJ&BG`=N0*wGwVpVQP-#IS7-g;+M)E%WsUK%S<7acl?Nw(
z&oP^SK626~lcn2k1%78f5zUn+<o=|h$w0Vj$<=4!T1TCmO+4Styx{&-<y%?H6YYoF
z!mhnY7WkLQ7jcB0`=;kq&w>+E7tLzE!`U8JT5_uOTuP|ifs?i!UE8+CEYjcYy?ajS
z8plGZ?O!gpMb-1SG`8M($7*+F>!j#D=h``2kGE-L^!%E%W6!hu!CPCtPtFy8#3UhH
zdHeBp*^fM58gJ}(X{=0b>ML;8jErXXkXxv9p6O?ovig*H-&tb1i#~sHx%bD*`FKOi
zcd5uS!$os`<_Ejg2Y53wi8JF0X<h~p0CE|YG=f+t;m!&P_s|Lkh5&C?Hi$|_1~(v`
I0n)+%08F#C6#xJL
deleted file mode 100644
--- a/services/sync/tests/tps/restartless-xpi.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<searchresults total_results="1">
-  <addon id="5617">
-  <name>Restartless Test XPI</name>
-  <type id="1">Extension</type>
-  <guid>restartless-xpi@tests.mozilla.org</guid>
-  <slug>restartless-xpi</slug>
-  <version>1.0</version>
-
-  <compatible_applications><application>
-      <name>Firefox</name>
-      <application_id>1</application_id>
-      <min_version>3.6</min_version>
-      <max_version>*</max_version>
-      <appID>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</appID>
-    </application></compatible_applications>
-  <all_compatible_os><os>ALL</os></all_compatible_os>
-
-  <install os="ALL" size="485">http://127.0.0.1:4567/restartless.xpi</install>
-    <created epoch="1252903662">
-      2009-09-14T04:47:42Z
-    </created>
-    <last_updated epoch="1315255329">
-      2011-09-05T20:42:09Z
-    </last_updated>
-    </addon>
-</searchresults>
deleted file mode 100644
index 973bc00cb56b0182baeb8d501b265d727a4b4977..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
--- a/services/sync/tests/tps/unsigned-xpi.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<searchresults total_results="1">
-  <addon id="5612">
-  <name>Unsigned Test XPI</name>
-  <type id="1">Extension</type>
-  <guid>unsigned-xpi@tests.mozilla.org</guid>
-  <slug>unsigned-xpi</slug>
-  <version>1.0</version>
-
-  <compatible_applications><application>
-      <name>Firefox</name>
-      <application_id>1</application_id>
-      <min_version>3.6</min_version>
-      <max_version>*</max_version>
-      <appID>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</appID>
-    </application></compatible_applications>
-  <all_compatible_os><os>ALL</os></all_compatible_os>
-
-  <install os="ALL" size="452">http://127.0.0.1:4567/unsigned.xpi</install>
-    <created epoch="1252903662">
-      2009-09-14T04:47:42Z
-    </created>
-    <last_updated epoch="1315255329">
-      2011-09-05T20:42:09Z
-    </last_updated>
-    </addon>
-</searchresults>
deleted file mode 100644
index 51b00475a9641ea9d608874a3ab7679da3a4374b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001
--- a/testing/tps/tps/testrunner.py
+++ b/testing/tps/tps/testrunner.py
@@ -55,17 +55,17 @@ class TPSTestRunner(object):
     default_preferences = { 'app.update.enabled' : False,
                             'browser.dom.window.dump.enabled': True,
                             'browser.sessionstore.resume_from_crash': False,
                             'browser.shell.checkDefaultBrowser' : False,
                             'browser.tabs.warnOnClose' : False,
                             'browser.warnOnQuit': False,
                             # Allow installing extensions dropped into the profile folder
                             'extensions.autoDisableScopes': 10,
-                            'extensions.getAddons.get.url': 'http://127.0.0.1:4567/en-US/firefox/api/%API_VERSION%/search/guid:%IDS%',
+                            'extensions.getAddons.get.url': 'http://127.0.0.1:4567/addons/api/%IDS%.xml',
                             'extensions.update.enabled'    : False,
                             # Don't open a dialog to show available add-on updates
                             'extensions.update.notifyUser' : False,
                             'services.sync.addons.ignoreRepositoryChecking': True,
                             'services.sync.firstSync': 'notReady',
                             'services.sync.lastversion': '1.0',
                             'services.sync.log.rootLogger': 'Trace',
                             'services.sync.log.logger.engine.addons': 'Trace',