-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: CRUD functional_tests, atchops fixes, & misc changes (#210)
* refactor: moved atclient crud implementations to their individual files * fix: self key put bug * refactor: * refactor: * refactor: made aes encrypt/decrypt more atomic * fix: atclient_get_selfkey.c * fix: atclient put selfkey * fix: atclient get shared key * fix: encrypt public key atkeys * fix: atclient get shared key * refactor: sha documentation and parameter names * refactor: rsa to be more atomic (no base64 reliance) * fix: aes ctr ciphertextlen in encrypt * chore: test_aes_generate more logging * feat: made sha and rsa encrypt/decrypt and sign/verify more atomic (no base64 dependencies) * fix: sha test * fix: working crud operations * refactor: atclient_atlogger_log -> atlogger_log and atclient_atlogger_set_logging_level -> atlogger_set_logging_level * refactor: removed more atclient_ prefixes in atlogger * test: start on functional_tests * test: start on shared key functional test * docs: rsa.h * feat: fix pkam authenticate * chore: remove logging * fix: put sharedkey example * fix: atlogger syntax error * fix: remove root_conn from atclient_put * chore: optimize get_atkeys_path * fix: flaky pkam authenticate * test: functional test for putting sharedkey * fix: rsa encrypt bug * fix: rsa decrypt bug * fix: removed unnecessary root_conn in encryption_key_helper functions * fix: put_sharedkey desktop crud example * fix: put shared key functional test * test: get shared key as shared by * fix: syntax fixes * feat: rsa encrypt/decrypt more robust * fix: syntax errors in our examples * refactor: valuelen -> valuesize and valueolen -> valuelen * test: functional test passing consistently * test: working func test: test_atclient_sharedkey.c * feat: github workflow functional tests * fix: * ci: load secrets * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: teardown should fail test * ci: * ci: * ci: sudo ? * fix: fix flaking test_aes_generate unit test * ci: * ci: * chore: keys folder * ci: * chore: gitignore atkeys * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: oops * ci: * ci: * ci: * ci: try home directory * ci: * ci: back to relative directory * ci: * ci: try cd-ing then ctest? * ci: comment out try ctest * ci: try this * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * ci: * fix: metadata isEncrypted:false not working * test: test_atclient_selfkey.c * refactor: functional_tests namespace * test: lots of work * test: more logging * ci: sharedkey test improvements * ci: * ci: * ci: done * fix: desktop examples
- Loading branch information
1 parent
c7f01d5
commit 357c892
Showing
55 changed files
with
2,483 additions
and
785 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Unit and Functional Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [trunk] | ||
pull_request: | ||
branches: [trunk] | ||
|
||
permissions: # added using https://github.com/step-security/secure-repo | ||
contents: read | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
|
||
- name: atsdk Unit CTest | ||
run: | | ||
./tools/run_ctest.sh | ||
functional-tests: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
|
||
- name: Load secrets | ||
working-directory: tests/functional_tests | ||
run: | | ||
mkdir -p ~/.atsign/keys/ | ||
echo "${{ secrets.ATKEYS_12ALPACA }}" > ~/.atsign/keys/@12alpaca_key.atKeys | ||
echo "${{ secrets.ATKEYS_12SNOWBOATING }}" > ~/.atsign/keys/@12snowboating_key.atKeys | ||
- name: Build and Run Functional Tests | ||
working-directory: tests/functional_tests | ||
run: | | ||
tools/run_ctest.sh |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.