summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/webextensions/test/xpcshell/data/test_updatecheck.rdf
blob: c5d97ada0d530f72ffcd442c91286a0c64fce802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<?xml version="1.0" encoding="UTF-8"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">

  <Description about="urn:mozilla:extension:updatecheck1@tests.mozilla.org">
    <em:updates>
      <Seq>
        <li>
          <Description>
            <em:version>1.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <!-- This update is incompatible and so should not be considered a valid
             update -->
        <li>
          <Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>2</em:minVersion>
                <em:maxVersion>2</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <li>
          <Description>
            <em:version>3.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test3.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <li>
          <Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>2</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <!-- This update is incompatible and so should not be considered a valid
             update -->
        <li>
          <Description>
            <em:version>4.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>2</em:minVersion>
                <em:maxVersion>2</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test4.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
      </Seq>
    </em:updates>
  </Description>

  <!-- An update with no signature which will fail if retrieved with an update
       key. The updateLink will also be ignored since it is not secure and there
       is no updateHash. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_5@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
  </RDF:Description>

  <!-- An update with a broken signature which will fail if retrieved with an
       update key. The updateLink will also be ignored since it is not secure
       and there is no updateHash. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_7@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>2</em:maxVersion>
                <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAMO1O2gwSCCth1GwYMgscfaNakpN40PJfOWt
                  ub2HVdg8+OXMciF8d/9eVWm8eH/IxuxyZlmRZTs3O5tv9eWAY5uBCtqDf1WgTsGk
                  jrgZow1fITkZI7w0//C8eKdMLAtGueGfNs2IlTd5P/0KH/hf1rPc1wUqEqKCd4+L
                  BcVq13ad</em:signature>
  </RDF:Description>

  <!-- An update with a valid signature. The updateLink will be ignored since it
       is not secure and there is no updateHash. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_8@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAMH/33P/bn148mVkAB8i5X8c4LhY52E+MPUT
                  yKHGpowZnRLgL2O0dfpm+rljOBfKi51322PFrsc6VIFml6x4Lrb5foxSyB0Vs9pb
                  SEDFWUKquOQvceQ9iEx5Pe0VzrmUZgcQxd8ksSunWL4wJaBZ/evE5amFC6sw3pv/
                  fjt8p3GN</em:signature>
  </RDF:Description>

  <!-- An update with a valid signature. The updateLink will used since there is
       an updateHash to verify it. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_9@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink>
                <em:updateHash>sha1:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAJ5Dv3Zd7/j5dLchCw9iO/cxPq8oOhOYD2M+
                  jUKvmHCyTBRIEaJrE4N7yVbRYk++ERIfyVepLivsVi4pBmF7JTdw0NaKUA0LiOoT
                  mRL8I7s5NPjCiiNcdqbncWyiZwIj1w1nkbWGTlH/gEjRW/LbvT4JAuec8yNFDa4S
                  X8mOMf7k</em:signature>
  </RDF:Description>

  <!-- An update with a valid signature. The updateLink will used since it is
       a secure URL. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_10@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>https://localhost:4444/broken.xpi</em:updateLink>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAGvf7XqqoTl5WofrNq55E7W+UttOEDXLB3Oi
                  XDiXe0i6njlozilseaUo1hgfQhhzN9gkyetP5tGBVcLRrVyliKpJmD6ABCVGW1lS
                  qS+SEw7gDHyHkvwKMyWKedpRGChqLYnnf+Y+CX3MWLZLkwPXMKdTYgN3Rx0lEnJk
                  37LSEMKE</em:signature>
  </RDF:Description>

  <!-- An update with a valid signature. The updateLink will used since it is
       a secure URL. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_11@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>https://localhost:4444/broken.xpi</em:updateLink>
                <em:updateHash>sha1:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBACMX/KReOGSJ8CMGRroH1v3Gjv/Qs/pqH+Ow
                  o+hCKWLUKx7hpJgVJkXXdAHW0U88NXlp1S2H0WqA7I/CdmNXJSPzzV/J4z1dZgXh
                  JbW6mqNb0pj6nIe7g8OLzSxDgBmO4DUP5DAmnmqciJLWQzN7OdbcwrWz6xPN5kZF
                  A90eF5zy</em:signature>
  </RDF:Description>

  <!-- An update with a valid signature. The updateLink will not be used since the
       updateHash verifying it is not strong enough. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_12@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink>
                <em:updateHash>md2:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAJRfcFvHIWxVyycCw8IjNmEhabc2uqA1zQwp
                  5oKh3Y23hwIsQ6xy68Wtjte1NEYFRt5fWkbMXj9YQj6LpVbzBKiGATcrq6MycZKK
                  o5N22cWbrKKRweJezTyN4eLfQg21pG7r8mdfS0bIA28ZVFtQOmORejoUesEouCGy
                  eKYk9nS2</em:signature>
  </RDF:Description>

  <!-- An update with a valid signature. The updateLink will used since it is
       a secure URL. -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_13@tests.mozilla.org">
    <em:updates>
      <RDF:Seq>
        <RDF:li>
          <RDF:Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <RDF:Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>1</em:minVersion>
                <em:maxVersion>1</em:maxVersion>
                <em:updateLink>https://localhost:4444/broken.xpi</em:updateLink>
                <em:updateHash>md2:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash>
              </RDF:Description>
            </em:targetApplication>
          </RDF:Description>
        </RDF:li>
      </RDF:Seq>
    </em:updates>
    <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBALQKwzLFr/VOw3gJvv/LCh3/PWDd9FqmFnX+
                  hJjBmCaUDtG7CXn1i0h8ed8IeRHpLLT7FCzVwU3bH9BUjdm8wc3ObtlNbd8go01a
                  CoXz50r3rYPcYz4WS+7/+lvrUqsuWd9Wj+q0NeCPiNaaro6/AolE2Qf5JFRL3lxY
                  lsKWAnVO</em:signature>
  </RDF:Description>

  <!-- There should be no information present for test_bug378216_14 -->

  <!-- Invalid update RDF -->
  <RDF:Description about="urn:mozilla:extension:test_bug378216_15@tests.mozilla.org">
    <em:updates>Foo</em:updates>
  </RDF:Description>

  <!-- Various updates available - one is not compatible, but compatibility checking is disabled -->
  <Description about="urn:mozilla:extension:ignore-compat@tests.mozilla.org">
    <em:updates>
      <Seq>
        <li>
          <Description>
            <em:version>1.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>0.1</em:minVersion>
                <em:maxVersion>0.2</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <li>
          <Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>0.5</em:minVersion>
                <em:maxVersion>0.6</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <!-- Update for future app versions - should never be compatible -->
        <li>
          <Description>
            <em:version>3.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>2</em:minVersion>
                <em:maxVersion>3</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test3.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
      </Seq>
    </em:updates>
  </Description>

  <!-- Various updates available - one is not compatible, but compatibility checking is disabled -->
  <Description about="urn:mozilla:extension:compat-override@tests.mozilla.org">
    <em:updates>
      <Seq>
        <!-- Has compatibility override, but it doesn't match this app version -->
        <li>
          <Description>
            <em:version>1.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>0.1</em:minVersion>
                <em:maxVersion>0.2</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <!-- Has compatibility override, so is incompaible -->
        <li>
          <Description>
            <em:version>2.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>0.5</em:minVersion>
                <em:maxVersion>0.6</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
        <!-- Update for future app versions - should never be compatible -->
        <li>
          <Description>
            <em:version>3.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>2</em:minVersion>
                <em:maxVersion>3</em:maxVersion>
                <em:updateLink>https://localhost:4444/addons/test3.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
      </Seq>
    </em:updates>
  </Description>

  <!-- Opt-in to strict compatibility checking -->
  <Description about="urn:mozilla:extension:compat-strict-optin@tests.mozilla.org">
    <em:updates>
      <Seq>
        <li>
          <Description>
            <em:version>1.0</em:version>
            <em:targetApplication>
              <Description>
                <em:id>xpcshell@tests.mozilla.org</em:id>
                <em:minVersion>0.1</em:minVersion>
                <em:maxVersion>0.2</em:maxVersion>
                <em:strictCompatibility>true</em:strictCompatibility>
                <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink>
              </Description>
            </em:targetApplication>
          </Description>
        </li>
      </Seq>
    </em:updates>
  </Description>
</RDF>