Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
feat: Tests + first draft
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianvasquez committed Mar 20, 2023
1 parent 648e2e8 commit 404ead2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/metadata/produceProv.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const snapshot = `<https://example.org/user/pipeline> <http://www.w3.org/1999/02
<https://example.org/user/pipeline/-/pipelines> <http://example.org/contains> <https://example.org/user/pipeline/-/pipelines/36212> .
<https://example.org/user/pipeline/-/commit/30dd92dc282586159c8d4401d26262351f7228e0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Commit> .
<https://example.org/user/pipeline/-/commit/30dd92dc282586159c8d4401d26262351f7228e0> <http://example.org/triggered> <https://example.org/user/pipeline/-/pipelines/36212> .
<https://example.org/user/pipeline/-/commit/30dd92dc282586159c8d4401d26262351f7228e0> <http://schema.org/name> "I added the commit title" .
<https://example.org/user/pipeline/-/commit/30dd92dc282586159c8d4401d26262351f7228e0> <http://example.org/author> "User <[email protected]>" .
<https://example.org/user/pipeline/-/commit/30dd92dc282586159c8d4401d26262351f7228e0> <http://www.w3.org/ns/prov#atTime> "2023-03-14T12:24:50+01:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
<https://example.org/user/pipeline/-/pipelines/36212> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/PipelineRun> .
Expand Down
1 change: 1 addition & 0 deletions test/support/gitlabEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const mockEnvironment = {
GITLAB_USER_LOGIN: 'user',

CI_COMMIT_AUTHOR: 'User <[email protected]>',
CI_COMMIT_TITLE: 'I added the commit title',
CI_COMMIT_TIMESTAMP: '2023-03-14T12:24:50+01:00',
CI_COMMIT_SHA: '30dd92dc282586159c8d4401d26262351f7228e0',
CI_PIPELINE_URL: 'https://example.org/user/pipeline/-/pipelines/36212',
Expand Down

0 comments on commit 404ead2

Please sign in to comment.