-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from blockchain-certificates/test/vc-compliance
Test/vc compliance
- Loading branch information
Showing
14 changed files
with
3,835 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
sudo: false | ||
language: python | ||
dist: focal | ||
branches: | ||
only: | ||
- master | ||
python: | ||
- "3.6" | ||
- "3.10" | ||
install: pip install tox-travis | ||
script: tox | ||
after_success: | ||
- pip install python-semantic-release | ||
- git config user.name botcerts | ||
- git config user.email [email protected] | ||
- semantic-release publish | ||
after_script: | ||
- nvm install 16 | ||
- sh prepare-vc-compliance-tests-config.sh | ||
- python3 setup.py install | ||
- npm ci | ||
- npm run test:vc-compliance | ||
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh publish-vc-compliance-result.sh; fi' # if no changes, no commit |
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
17 changes: 10 additions & 7 deletions
17
examples/data-testnet/unsigned_certificates/verifiable-credential.json
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,20 +1,23 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://www.w3.org/2018/credentials/examples/v1", | ||
"https://w3id.org/blockcerts/v3" | ||
], | ||
"id": "urn:uuid:bbba8553-8ec1-445f-82c9-a57251dd731c", | ||
"type": [ | ||
"VerifiableCredential", | ||
"BlockcertsCredential" | ||
], | ||
"issuer": "did:example:23adb1f712ebc6f1c276eba4dfa", | ||
"issuanceDate": "2022-01-01T19:33:24Z", | ||
"issuer": "https://www.blockcerts.org/samples/3.0/issuer-blockcerts.json", | ||
"issuanceDate": "2022-08-18T14:04:24Z", | ||
"credentialSubject": { | ||
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21", | ||
"alumniOf": { | ||
"id": "did:example:c276e12ec21ebfeb1f712ebc6f1" | ||
} | ||
"name": "Julien Fraichot", | ||
"email": "[email protected]", | ||
"publicKey": "ecdsa-koblitz-pubkey:1BPQXndcz5Uf3qZQkgnvJC87LUD5n7a2mC" | ||
}, | ||
"display": { | ||
"contentMediaType": "text/html", | ||
"content": "<div style=\"background-color:transparent;padding:6px;display:inline-flex;align-items:center;flex-direction:column\">Hello world</div>" | ||
} | ||
} | ||
} |
Oops, something went wrong.