-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,993 additions
and
2,032 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,3 @@ | |
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands'); | ||
import '@cypress/code-coverage/support' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
const CrudCodeValues = require("./CrudCodeValues"); | ||
module.exports = { | ||
I: "I", | ||
D: "D", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,6 @@ const EbacCredentials = require("./EbacCredentials"); | |
|
||
/** | ||
* Message used to commit credentials to a remote login server. | ||
* <p> | ||
* TODO: Vulnerable to replay attacks. Token field prevents some replay | ||
* attacks. | ||
* | ||
* @author [email protected] | ||
* @class EbacCredentialCommit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ const EcLinkedData = require("../../../../org/json/ld/EcLinkedData"); | |
|
||
/** | ||
* Message used to retrieve credentials from a remote system. | ||
* <p> | ||
* TODO: Vulnerable to replay attacks. | ||
* | ||
* @author [email protected] | ||
* @class EbacCredentialRequest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,6 @@ const EcRemoteLinkedData = require("../../cassproject/schema/general/EcRemoteLin | |
* | ||
* @author [email protected] | ||
* @author [email protected] | ||
* <p> | ||
* TODO: Test case where an absent relation is in the framework. | ||
* @module org.cassproject | ||
* @class EcAlignment | ||
* @constructor | ||
|
@@ -131,7 +129,6 @@ module.exports = class EcAlignment extends Relation { | |
static searchBySources(repo, sourceIds, success, failure, paramObj, eim) { | ||
let query = ""; | ||
query = "(source:"; | ||
let noVersions = []; | ||
for (let i = 0; i < sourceIds.length; i++) { | ||
let sourceId = sourceIds[i]; | ||
if (i != 0) query += " OR "; | ||
|
@@ -141,7 +138,6 @@ module.exports = class EcAlignment extends Relation { | |
} else { | ||
query += '"' + sourceId + '" OR source:"' + noVersion + '"'; | ||
} | ||
noVersions.push(noVersion); | ||
} | ||
query += ")"; | ||
return EcAlignment.search(repo, query, success, failure, paramObj, eim); | ||
|
@@ -220,23 +216,26 @@ module.exports = class EcAlignment extends Relation { | |
* @method save | ||
*/ | ||
save(success, failure, repo, eim) { | ||
if (this.source == null || this.source == "") { | ||
let msg = "Source Competency cannot be missing"; | ||
if (failure !== undefined && failure != null) return failure(msg); | ||
else throw new Error(msg); | ||
let invalid = (it) => { return it == null || it == "" }; | ||
let fail = (msg) => { | ||
if (failure != null) | ||
return failure(msg); | ||
else | ||
throw new Error(msg); | ||
} | ||
if (this.target == null || this.target == "") { | ||
let msg = "Target Competency cannot be missing"; | ||
if (failure !== undefined && failure != null) return failure(msg); | ||
else throw new Error(msg); | ||
if (invalid(this.source)) { | ||
return fail("Source Competency cannot be missing"); | ||
} | ||
if (this.relationType == null || this.relationType == "") { | ||
let msg = "Relation Type cannot be missing"; | ||
if (failure !== undefined && failure != null) return failure(msg); | ||
else throw new Error(msg); | ||
if (invalid(this.target)) { | ||
return fail("Target Competency cannot be missing"); | ||
} | ||
if (repo == null) return EcRepository.save(this, success, failure, repo, eim); | ||
else return repo.saveTo(this, success, failure, eim); | ||
if (invalid(this.relationType)) { | ||
return fail("Relation Type cannot be missing"); | ||
} | ||
if (repo == null) | ||
return EcRepository.save(this, success, failure, repo, eim); | ||
else | ||
return repo.saveTo(this, success, failure, eim); | ||
} | ||
/** | ||
* Deletes the alignment from the server corresponding to its ID | ||
|
Oops, something went wrong.