Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-1679 roundtrip test with backend #43

Merged
merged 16 commits into from
Apr 29, 2022

Conversation

elizabethhealy
Copy link
Member

No description provided.

@elizabethhealy
Copy link
Member Author

should deliver-ghp and deliver-npmjs be dependent on backend-roundtrip?

@elizabethhealy elizabethhealy marked this pull request as ready for review April 26, 2022 21:53
@elizabethhealy elizabethhealy requested a review from a team as a code owner April 26, 2022 21:53
Comment on lines 1 to 26
#!/usr/bin/env bash
set -e

cd ../..
pwd

mv ../../../opentdf-cli-*.tgz ../../../cli
npm uninstall @opentdf/cli && npm ci && npm i ../../../cli/opentdf-cli-*.tgz

touch ./sample.txt
echo "Hello World!" >> ./sample.txt

npx @opentdf/cli --log-level DEBUG \
--kasEndpoint http://localhost:65432/api/kas \
--oidcEndpoint http://localhost:65432 \
--auth tdf:tdf-client:123-456 \
--output sample.txt.tdf encrypt sample.txt \
--attributes https://example.com/attr/Classification/value/S,https://example.com/attr/COI/value/PRX

npx @opentdf/cli --log-level DEBUG \
--kasEndpoint http://localhost:65432/api/kas \
--oidcEndpoint http://localhost:65432 \
--auth tdf:tdf-client:123-456 \
--output sample_out.txt decrypt sample.txt.tdf

diff sample.txt sample_out.txt
Copy link

@bleggett bleggett Apr 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a very good sign and a testament to the CI work you guys have been doing that adding this e2e test is basically + 25 lines.

.github/workflows/roundtrip/encrypt-decrypt.sh Outdated Show resolved Hide resolved
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@elizabethhealy elizabethhealy merged commit bcb683a into main Apr 29, 2022
@elizabethhealy elizabethhealy deleted the feature/PLAT-1679-backend-rt branch April 29, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants