Skip to content

Commit

Permalink
update test packages and invenio package to create arc spec v2 compli…
Browse files Browse the repository at this point in the history
…ant output folders
  • Loading branch information
kMutagene committed Feb 27, 2024
1 parent 98afe11 commit a39e43d
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 19 deletions.
10 changes: 5 additions & 5 deletions src/PackageRegistryService/Data/arc-validate-package-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"RepoPath": "src/PackageRegistryService/StagingArea/invenio/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-02-23T16:27:26+01:00",
"LastUpdated": "2024-02-27T15:00:31+01:00",
"Metadata": {
"Name": "invenio",
"Description": "Validates if the ARC contains the necessary metadata to be publishable via Invenio.\nThe following metadata is required:\n - Investigation has title and description\n - All persons in Investigation Contacts must have a name, last name, affiliation and valid email\n",
Expand All @@ -28,7 +28,7 @@
{
"RepoPath": "src/PackageRegistryService/StagingArea/test/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-02-22T09:00:17+01:00",
"LastUpdated": "2024-02-27T15:00:31+01:00",
"Metadata": {
"Name": "test",
"Description": "this package is here for testing purposes only.",
Expand All @@ -44,7 +44,7 @@
{
"RepoPath": "src/PackageRegistryService/StagingArea/test/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-02-22T09:00:17+01:00",
"LastUpdated": "2024-02-27T15:00:31+01:00",
"Metadata": {
"Name": "test",
"Description": "this package is here for testing purposes only.",
Expand All @@ -60,7 +60,7 @@
{
"RepoPath": "src/PackageRegistryService/StagingArea/test/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-02-22T09:00:17+01:00",
"LastUpdated": "2024-02-27T15:00:31+01:00",
"Metadata": {
"Name": "test",
"Description": "this package is here for testing purposes only.",
Expand Down Expand Up @@ -93,7 +93,7 @@
{
"RepoPath": "src/PackageRegistryService/StagingArea/test/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-02-22T09:00:17+01:00",
"LastUpdated": "2024-02-27T15:00:31+01:00",
"Metadata": {
"Name": "test",
"Description": "this package is here for testing purposes only.",
Expand Down
3 changes: 2 additions & 1 deletion src/PackageRegistryService/Pages/Components/Footer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ static string RenderFooterItem(string active, string item, string link)

public static string Render(string active)
{
return $@"<footer style=""margin-top: 100px"" class=""container"">
return $@"<footer style=""margin-top: 200px"" class=""container"">
<hr/>
<div class=""grid"">
<div>
<small><strong>AVPR - a service by <a class=""secondary"" href=""https://nfdi4plants.org/"">DataPLANT</a></strong></small>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,19 @@ ReleaseNotes: "Initial release"
---
*)

#r "nuget: ARCExpect"
#r "nuget: Anybadge.NET"
#r "nuget: ARCValidationPackages"
#r "nuget: ARCExpect, 1.0.1"

open ARCExpect
open ARCTokenization
open ARCTokenization.StructuralOntology
open ControlledVocabulary
open Expecto
open ARCValidationPackages
open ARCValidationPackages.API
open System.IO


// Input:

let arcDir = Directory.GetCurrentDirectory()
let outDirBadge = Path.Combine(arcDir, "invenio_badge.svg")
let outDirResXml = Path.Combine(arcDir, "invenio_results.xml")


// Values:

Expand Down Expand Up @@ -116,4 +109,8 @@ let cases =

// Execution:

Execute.ValidationPipeline(outDirResXml, outDirBadge, "Invenio") cases
cases
|> Execute.ValidationPipeline(
basePath = arcDir,
packageName = "invenio"
)
17 changes: 16 additions & 1 deletion src/PackageRegistryService/StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,19 @@ Publish: true
*)

// this file is intended for testing purposes only.
printfn "Hello, world!"
printfn "If you can read this in your console, you successfully executed test package v1.0.0!"

#r "nuget: ARCExpect, 1.0.1"

open ARCExpect
open Expecto

let validationCases = testList "test" [
test "yes" {Expect.equal 1 1 "yes"}
]

validationCases
|> Execute.ValidationPipeline(
basePath = System.Environment.CurrentDirectory,
packageName = "test"
)
17 changes: 16 additions & 1 deletion src/PackageRegistryService/StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,19 @@ Publish: true
*)

// this file is intended for testing purposes only.
printfn "Hello, world!"
printfn "If you can read this in your console, you successfully executed test package v1.0.1!"

#r "nuget: ARCExpect, 1.0.1"

open ARCExpect
open Expecto

let validationCases = testList "test" [
test "yes" {Expect.equal 1 1 "yes"}
]

validationCases
|> Execute.ValidationPipeline(
basePath = System.Environment.CurrentDirectory,
packageName = "test"
)
17 changes: 16 additions & 1 deletion src/PackageRegistryService/StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,19 @@ ReleaseNotes: "add authors and tags for further testing"
*)

// this file is intended for testing purposes only.
printfn "Hello, world!"
printfn "If you can read this in your console, you successfully executed test package v2.0.0!"

#r "nuget: ARCExpect, 1.0.1"

open ARCExpect
open Expecto

let validationCases = testList "test" [
test "yes" {Expect.equal 1 1 "yes"}
]

validationCases
|> Execute.ValidationPipeline(
basePath = System.Environment.CurrentDirectory,
packageName = "test"
)
17 changes: 16 additions & 1 deletion src/PackageRegistryService/StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,19 @@ ReleaseNotes: "add authors and tags for further testing"
*)

// this file is intended for testing purposes only.
printfn "If you can read this in your console, you successfully executed test package v3.0.0!"
printfn "If you can read this in your console, you successfully executed test package v3.0.0!"

#r "nuget: ARCExpect, 1.0.1"

open ARCExpect
open Expecto

let validationCases = testList "test" [
test "yes" {Expect.equal 1 1 "yes"}
]

validationCases
|> Execute.ValidationPipeline(
basePath = System.Environment.CurrentDirectory,
packageName = "test"
)

0 comments on commit a39e43d

Please sign in to comment.