Skip to content

Commit

Permalink
LDEV-2616 check if mssql service is available
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Sep 6, 2024
1 parent 3b2dab8 commit 1c96ec9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/tickets/LDEV2616.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{

function run( testResults , testBox ) {
describe( "test case for LDEV-2616", function() {
it(title = " value empty throws an error for queryexecute function", body = function( currentSpec ) {
it(title = " value empty throws an error for queryexecute function", skip=msSqlUnavailable(),
body = function( currentSpec ) {
var result = "";
try {
result = _InternalRequest(
Expand All @@ -22,6 +23,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
});
}

private boolean function msSqlUnavailable() {
// getting the credentials from the environment variables
return isEmpty(server.getDatasource("mssql"));
}


private string function createURI(string calledName){
var baseURI = "/test/#listLast(getDirectoryFromPath(getCurrenttemplatepath()),"\/")#/";
return baseURI&""&calledName;
Expand Down

0 comments on commit 1c96ec9

Please sign in to comment.