api-testing: Increase ETag number in transform tests
These tests fail for wikis with many revisions, and even in CI when running after a suite that generates many edits such as Wikibase. Bug: T366142 Change-Id: I5521b7652faca9821fa08a9987a9452a4c555203
This commit is contained in:
parent
129de6756f
commit
682a19e9f6
1 changed files with 4 additions and 4 deletions
|
|
@ -2336,7 +2336,7 @@ describe( '/transform/ endpoint', function () {
|
|||
it( '/transform/ should refuse non-matching ETags in header', async () => {
|
||||
const { status, text } = await client.req
|
||||
.post( endpointPrefix + `/transform/html/to/wikitext/${ page }/${ revid }` )
|
||||
.set( 'If-Match', '"1337/deadbeef"' )
|
||||
.set( 'If-Match', '"13337/deadbeef"' )
|
||||
.send( {
|
||||
html: '<p>hello</p>'
|
||||
} );
|
||||
|
|
@ -2349,7 +2349,7 @@ describe( '/transform/ endpoint', function () {
|
|||
.post( endpointPrefix + `/transform/html/to/wikitext/${ page }` )
|
||||
.send( {
|
||||
html: '<p>hello</p>',
|
||||
original: { etag: '"1337/deadbeef"' }
|
||||
original: { etag: '"13337/deadbeef"' }
|
||||
} );
|
||||
|
||||
assert.deepEqual( status, 412, text );
|
||||
|
|
@ -2387,7 +2387,7 @@ describe( '/transform/ endpoint', function () {
|
|||
// request page HTML, but do not set 'stash' parameter!
|
||||
const transformResponse = await client.req
|
||||
.post( endpointPrefix + '/transform/html/to/wikitext/' )
|
||||
.set( 'If-Match', '"1234/dummy"' )
|
||||
.set( 'If-Match', '"12345/dummy"' )
|
||||
.send( {
|
||||
html: '<p>test</p>'
|
||||
} );
|
||||
|
|
@ -2428,7 +2428,7 @@ describe( '/transform/ endpoint', function () {
|
|||
.send( {
|
||||
html: '<p>test</p>',
|
||||
original: {
|
||||
renderid: '"1234/dummy"'
|
||||
renderid: '"12345/dummy"'
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue