Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions test-basic/documents-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ describe('document transform', function(){
documents.length.should.equal(1);
documents[0].content.should.have.property('timestamp');
documents[0].content.should.have.property('userName');
documents[0].content.userName.should.eql('rest-transform-user',
'As of MarkLogic 11.3.5 and 12.0.2 JavaScript transforms execute as the dedicated rest-transform-user rather than the calling user\'s identity, preventing privilege escalation via malicious transforms');
documents[0].content.userName.should.eql('rest-writer');
done();
})
.catch(done);
Expand All @@ -203,8 +202,7 @@ describe('document transform', function(){
documents.length.should.equal(1);
documents[0].content.should.have.property('timestamp');
documents[0].content.should.have.property('userName');
documents[0].content.userName.should.eql('rest-transform-user',
'As of MarkLogic 11.3.5 and 12.0.2 JavaScript transforms execute as the dedicated rest-transform-user rather than the calling user\'s identity, preventing privilege escalation via malicious transforms');
documents[0].content.userName.should.eql('rest-writer');
done();
})
.catch(done);
Expand All @@ -223,8 +221,7 @@ describe('document transform', function(){
documents.length.should.equal(1);
documents[0].content.should.have.property('timestamp');
documents[0].content.should.have.property('userName');
documents[0].content.userName.should.eql('rest-transform-user',
'As of MarkLogic 11.3.5 and 12.0.2 JavaScript transforms execute as the dedicated rest-transform-user rather than the calling user\'s identity, preventing privilege escalation via malicious transforms');
documents[0].content.userName.should.eql('rest-writer');
done();
})
.catch(done);
Expand Down
6 changes: 6 additions & 0 deletions test-basic/plan-builder-generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -2175,13 +2175,19 @@ describe('plan builder', function() {
}).catch(done);
});
it('xdmp.uriContentType#1', function(done) {
if(serverConfiguration.serverVersion >= 12) {
this.skip();
}
testPlan([p.xs.string("a.json")], p.xdmp.uriContentType(p.col("1")))
.then(function(response) {
should(String(getResult(response).value).replace(/^ /, '')).equal('application/json');
done();
}).catch(done);
});
it('xdmp.uriFormat#1', function(done) {
if(serverConfiguration.serverVersion >= 12) {
this.skip();
}
testPlan([p.xs.string("a.json")], p.xdmp.uriFormat(p.col("1")))
.then(function(response) {
should(String(getResult(response).value).replace(/^ /, '')).equal('json');
Expand Down
6 changes: 2 additions & 4 deletions test-complete/nodejs-transform-javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ describe('Transform test with javascript', function () {
result(function (response) {
//console.log(JSON.stringify(response, null, 4));
response[0].content.should.have.property('timestamp');
response[0].content.userName.should.equal('rest-transform-user',
'As of MarkLogic 11.3.5 and 12.0.2 JavaScript transforms execute as the dedicated rest-transform-user rather than the calling user\'s identity, preventing privilege escalation via malicious transforms');
response[0].content.userName.should.equal('rest-reader');
done();
})
.catch(done);
Expand Down Expand Up @@ -132,8 +131,7 @@ describe('Transform test with javascript', function () {
result(function (response) {
//console.log(JSON.stringify(response, null, 4));
response[0].content.should.have.property('timestamp');
response[0].content.userName.should.equal('rest-transform-user',
'As of MarkLogic 11.3.5 and 12.0.2 JavaScript transforms execute as the dedicated rest-transform-user rather than the calling user\'s identity, preventing privilege escalation via malicious transforms');
response[0].content.userName.should.equal('rest-reader');
done();
})
.catch(done);
Expand Down
Loading