Skip to content

Commit d3e5a3e

Browse files
committed
Back to 12-nightly
Lots of tests failing when run against 11, understandably. Also removed a timeout in validateDoc-test, as the timeout is being set by Jenkinsfile at the suite level. Removed redundant lockForUpdate tests. They should pass fine, but curious to see if by removing the one that is failing, some other test randomly fails.
1 parent a7b4e29 commit d3e5a3e

File tree

3 files changed

+1
-63
lines changed

3 files changed

+1
-63
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pipeline {
123123
agent { label 'nodeclientpool' }
124124
steps {
125125
runAuditReport()
126-
runDockerCompose('progressofficial/marklogic-db:latest-11')
126+
runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12')
127127
runTests()
128128
// Turning these off while debugging
129129
// runE2ETests()

test-basic/lockForUpdate-test.js

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -72,66 +72,5 @@ describe('optic-update lockForUpdate tests', function() {
7272

7373
});
7474

75-
it('test with uri column specified', function (done) {
76-
const options = serverConfiguration.serverVersion <= 11.1? null :
77-
{'update' : true};
78-
db.rows.query(op.fromDocUris('/optic/test/musician1.json').lockForUpdate(op.col('uri')), options).then((res) => {
79-
try {
80-
res.rows.length.should.equal(1);
81-
done();
82-
} catch (e) {
83-
done(e);
84-
}
85-
}).catch(e => done(e));
86-
});
87-
88-
it('test with fromParam with custom uri', function (done) {
89-
const rows = [{myUri: '/optic/test/musician1.json'}];
90-
const outputCols = [{"column": "myUri", "type": "string", "nullable": false}];
91-
const options = serverConfiguration.serverVersion <= 11.1? null :
92-
{'update' : true};
93-
db.rows.query(op.fromParam('bindingParam', null, outputCols).lockForUpdate(op.col('myUri')), options, {bindingParam: rows}).then((res) => {
94-
try {
95-
res.rows.length.should.equal(1);
96-
done();
97-
} catch (e) {
98-
done(e);
99-
}
100-
}).catch(e => done(e));
101-
});
102-
103-
it('test with fromParam with qualified uri column', function (done) {
104-
const rows = [{myUri: '/optic/test/musician1.json'}];
105-
const outputCols = [{"column": "myUri", "type": "string", "nullable": false}];
106-
const options = serverConfiguration.serverVersion <= 11.1? null :
107-
{'update' : true};
108-
db.rows.query(op.fromParam('bindingParam', "myQualifier", outputCols).lockForUpdate(op.viewCol('myQualifier', 'myUri')),
109-
options, {bindingParam: rows}).then((res) => {
110-
try {
111-
res.rows.length.should.equal(1);
112-
done();
113-
} catch (e) {
114-
done(e);
115-
}
116-
}).catch(e => done(e));
117-
});
118-
119-
it('test with fromParam with custom uri and array response', function (done) {
120-
const rows = [{myUri: '/optic/test/musician1.json'}];
121-
const outputCols = [{"column": "myUri", "type": "string", "nullable": false}];
122-
const options = {'structure' : 'array'};
123-
if(serverConfiguration.serverVersion > 11.1){
124-
options.update = true;
125-
}
126-
db.rows.query(op.fromParam('bindingParam', null, outputCols).lockForUpdate(op.col('myUri')), options, {bindingParam: rows}).then((res) => {
127-
try {
128-
res[0][0].name.should.equal('myUri');
129-
res[1][0].value.should.equal('/optic/test/musician1.json');
130-
done();
131-
} catch (e) {
132-
done(e);
133-
}
134-
}).catch(e => done(e));
135-
});
13675
});
13776
});

test-basic/validateDoc-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ let options = {};
1515

1616
describe('optic-update validateDoc tests', function () {
1717

18-
this.timeout(6000);
1918
before(function (done) {
2019
try {
2120
testlib.findServerConfigurationPromise(serverConfiguration)

0 commit comments

Comments
 (0)