-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for hook endpoint to Index model (#48)
* Add support for hook endpoint to Index model * rename HookEnpoint -> CQCHookEndpoint
- Loading branch information
Showing
8 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -39,3 +39,47 @@ module OntologyAnnotation = | |
TermAccessionNumber = "TAN" | ||
) | ||
Assert.Equivalent(OntologyAnnotation.allFields, actual) | ||
|
||
module ValidationPackageMetadata = | ||
|
||
[<Fact>] | ||
let ``create function for mandatory fields``() = | ||
let actual = ValidationPackageMetadata.create( | ||
name = "name", | ||
summary = "summary" , | ||
description = "description" , | ||
majorVersion = 1, | ||
minorVersion = 0, | ||
patchVersion = 0 | ||
) | ||
Assert.Equivalent(ValidationPackageMetadata.mandatoryFields, actual) | ||
|
||
[<Fact>] | ||
let ``create function for all fields``() = | ||
let actual = ValidationPackageMetadata.create( | ||
name = "name", | ||
summary = "summary" , | ||
description = "description" , | ||
majorVersion = 1, | ||
minorVersion = 0, | ||
patchVersion = 0, | ||
Publish = true, | ||
Authors = [| | ||
Author.create( | ||
fullName = "test", | ||
Email = "[email protected]", | ||
Affiliation = "testaffiliation", | ||
AffiliationLink = "test.com" | ||
) | ||
|], | ||
Tags = [| | ||
OntologyAnnotation.create( | ||
name = "test", | ||
TermSourceREF = "REF", | ||
TermAccessionNumber = "TAN" | ||
) | ||
|], | ||
ReleaseNotes = "releasenotes", | ||
CQCHookEndpoint = "hookendpoint" | ||
) | ||
Assert.Equivalent(ValidationPackageMetadata.allFields, actual) |
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 |
---|---|---|
|
@@ -28,5 +28,6 @@ ReleaseNotes: | | |
- initial release | ||
- does the thing | ||
- does it well | ||
CQCHookEndpoint: https://hook.com | ||
--- | ||
*)""" |
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 |
---|---|---|
|
@@ -28,5 +28,6 @@ ReleaseNotes: | | |
- initial release | ||
- does the thing | ||
- does it well | ||
CQCHookEndpoint: https://hook.com | ||
--- | ||
*) |