Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bdd
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Organization Credential Manager
bdd
Merge requests
!6
Feature/attestation manager
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/attestation manager
feature/attestation-manager
into
main
Overview
0
Commits
2
Pipelines
0
Changes
16
Merged
Suneet Bendre
requested to merge
feature/attestation-manager
into
main
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
16
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
0eb28802
2 commits,
2 years ago
16 files
+
253
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
features/attestation-manager/credentialDef/createCredentialDef.feature
0 → 100644
+
26
−
0
Options
As
an
OCM user
I
want to create a new Credential Definition
Feature
:
Create a new Credential Definition
Create a new Credential Definition on Ledger and save details in DB
Scenario
:
Provide valid and required Credential Definition Details
Given
I have passed all required credential definition details.
# src\credentialDef\controller\controller.ts -> REST API with POST method -> credentialDef/
When
passed all valid credential definition details.
Then
credential definition should be created on the Ledger with the given details.
And
should return the newly created credential definition id.
And
store the details in DB.
And
I should get the HTTP status code 201 Created and the created Credential Definition Details.
Scenario
:
Provide invalid schemaID, name, created_by, is_revokable or is_auto_issue
Given
I have passed schemaID, name, created_by, is_revokable and is_auto_issue.
# src\credentialDef\controller\controller.ts -> REST API with POST method -> credentialDef/
When
passed invalid schemaID, name, created_by, is_revokable or is_auto_issue.
Then
I should get HTTP status code 400 Bad Request.
Scenario
:
Provide name and schemaID of the existing Credential Definition.
Given
I have passed all required credential definition details.
# src\credentialDef\controller\controller.ts -> REST API with POST method -> credentialDef/
When
passed name and schemaID of the existing Credential Definition.
Then
I should get HTTP status code 409 Conflict.
\ No newline at end of file
Loading