Skip to content

Commit

Permalink
Updating the check SSL condition
Browse files Browse the repository at this point in the history
  • Loading branch information
payshah committed Dec 17, 2013
1 parent abd45c9 commit fb6901d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config/descriptor-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"properties" : {
"name" : { "type" : "string", "required" :true },
"commonlib" : { "type" : "string"},
"useSSL" : { "type" : "boolean"},
"extends" : { "type" : "string"},
"startProxyServer" : { "type" : "boolean"},
"routerProxyConfig" : { "type" : "string"},
Expand All @@ -15,7 +16,7 @@
"required":true,
"additionalProperties" : {
"type" : "object",
"properties" : {
"properties" : {
"enabled" : { "type" : "boolean | string" },
"controller" : { "type" : "string" },
"group" : { "type" : "string" },
Expand All @@ -32,7 +33,7 @@
"engine" :{ "type" : "string" },
"engineConfig" :{ "type" : "string" }
}

}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion lib/session/sessionfactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ SessionFactory.prototype.getFactoryTests = function () {
//Check if the useSSL flag is set from either commandline or at descriptor level
if (testJson.useSSL) {
testJson = setSSL(testJson);
} else if (this.useSSL) {
} else if (this.useSSL && testJson.useSSL) {
testJson = setSSL(testJson);
}

Expand Down

0 comments on commit fb6901d

Please sign in to comment.