summaryrefslogtreecommitdiff
path: root/crates/arti/tests
Commit message (Collapse)AuthorAgeFilesLines
* arti: tests: Add regression test for `arti -h`hjrgrn2026-04-085-0/+13
| | | | | - Add regression test - Update README
* arti: test: rename unrecognized-entry to hs_unrecognized_entry to fix the CIhjrgrn2026-03-304-3/+3
| | | | This changes save us from adding a new entry in .editorconfig
* arti: test: correct typo in hss.rshjrgrn2026-03-301-2/+2
|
* arti: test: Add description of the test file structure of the keys test suitehjrgrn2026-03-301-0/+43
|
* arti: tests: Rename some keys test files using more intuitive nameshjrgrn2026-03-304-5/+5
|
* arti: test: Update tests README.mdhjrgrn2026-03-301-5/+18
|
* arti: test: Remove unused test data hsc-common/hsc.inhjrgrn2026-03-305-37/+0
| | | | | These test files were previously used by hsc-common/hsc.md but are now ignored
* Fix typosTobias Stoeckmann2026-03-242-2/+2
| | | | Typos found with codespell
* Fix word duplicate typosTobias Stoeckmann2026-03-151-1/+1
|
* arti: test: hsc: add test get_fails_if_no_gen_and_no_keyhjrgrn2026-02-173-92/+151
| | | | | | - remove build_hsc_key_cmd in favor of KeyCmd - use KeyCmdBuilder in CTorMigrateCmd::keystore_contains_client_key to remove duplication - adapt hsc.rs to the changes
* arti: test: rescope entities form util.rs fileshjrgrn2026-02-033-31/+33
|
* cli_tests: Rename tests for clarity and consistencyGabriela Moldovan2026-02-021-3/+3
|
* cli_tests: Insert spacing between top-level itemsGabriela Moldovan2026-02-021-0/+8
| | | | For readability.
* cli_tests: Fix typo in test nameGabriela Moldovan2026-02-021-2/+2
|
* cli_tests: Clarify a comment in ctor-migrate testGabriela Moldovan2026-02-021-1/+1
|
* cli_tests: Rename test closure for clarityGabriela Moldovan2026-02-021-3/+3
| | | | | The previous name was misleading (the closure asserts the exact opposite).
* Add integration test suite for `hsc ctor-migrate` subcommandhjrgrn2026-02-0218-91/+485
|
* keymgr: Update expected output in integration testsGabriela Moldovan2026-01-061-6/+6
| | | | | C Tor keystore entries now use the same output format as the non-C Tor entries.
* Add `hsc key ctor-migrate` subcommandhjrgrn2025-11-2419-7/+33
|
* arti: fix deprecation warnings in assert_cmd libSteven Engler2025-10-313-7/+8
| | | | | | | | | | | | ```text warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` --> crates/arti/tests/cli_tests/hsc.rs:26:28 | 26 | let mut cmd = Command::cargo_bin("arti").unwrap(); | ^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default ```
* arti: test: Add integration test for `hss ctor-migrate`hjrgrn2025-09-1023-30/+636
|
* arti: keys: Add `keys check-integrity` CLI toolhjrgrn2025-09-045-4/+44
|
* arti: test: Fix `keys` integration testhjrgrn2025-08-282-2/+2
| | | | The `keys` integration test now accounts for case-insensitive filesystems
* Merge branch 'toml' into 'main'David Goulet2025-08-261-18/+7
|\ | | | | | | | | arti: Simplify the `create_state_dir_entry` test helper See merge request tpo/core/arti!3178
| * arti: simplify the `create_state_dir_entry` test helperSteven Engler2025-08-251-18/+7
| |
* | tor-hscrypto: change redacted `HsId` from "???" to "[…]"Steven Engler2025-08-251-1/+1
|/ | | | | | | | | | | | | | Before: ```text INFO tor_hsservice: Generated a new identity for service bar: ???mad.onion ``` After: ```text INFO tor_hsservice: Generated a new identity for service foo: […]2qd.onion ```
* arti: test: Add note in `KeysListCmd::create_state_dir_entry`hjrgrn2025-08-251-0/+2
|
* arti: test: Add integration test suite for `arti keys`hjrgrn2025-08-2512-1/+384
| | | | | | | | | - Add `cli_tests/keys/util.rs` and `cli_tests/keys.rs` - Update `cli_tests/main.rs` and `testcases/keys/conf/keys.toml` - Add `ctor-keystore` directory to `keys` `local` directory - Restructure `keys` `local` directory layout - .editorconfig: Add exception for `ctor-keystore`s
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-6/+10
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* arti: hss: Add `arti hss ctor-migrate`hjrgrn2025-07-317-1/+57
|
* arti: raw: Rename `arti keys-raw remove-by-path`hjrgrn2025-07-152-4/+4
| | | | | * arti: raw: `remove-by-path` is now `remove-by-id` * arti: raw: Adjust integration tests
* arti: keys: Add arti keys-rawhjrgrn2025-07-147-7/+57
| | | | | | | | | | | | | | | | | | | * CLI: Add `keys-raw` and subcommand `remove-by-path` * arti: Add `arti::subcommand::raw` for the CLI `keys-raw` * tor-keymgr: Add `ArtiNativeKeystoreError::UnexpectedRawEntry`, `ArtiEphemeralKeystoreError::NotSupported` * tor-keymgr: Add `tor-keymgr::raw` module * tor-keymgr: Add `Keystore::remove_unchecked` * tor-keymgr: Change `Keystore::list` to return `KeystoreEntry` * tor-keymgr: Add field `KeystoreEntry::raw_id` * doc: Update keys.md * doc: Add raw.md * tor-keymgr: BREAKING: `UnrecognizedEntryError::new` associated function is now only accessible within the crate `tor-keymgr` * tor-keymgr: BREAKING: `UnrecognizedEntryId` is renamed to `UnrecognizedEntry` * tor-keymgr: BREAKING: `KeyMgr::list()` and `Keystore::list()` now return `Result<Vec<KeystoreEntryResult<KeystoreEntry>>>`
* arti: keys: Fix arti keys help messagehjrgrn2025-06-231-1/+1
|
* arti: Add keys list and keys list-keystoreshjrgrn2025-06-1215-1/+106
|
* arti: test: Refactor arti integration testhjrgrn2025-05-124-2/+156
| | | | | | | * arti: test: Restructure tests directory * arti: dep: Add assert_cmd dev-dependency * arti: test: Update README * doc: Fix hsc documentation
* Remove hsc quiet and force flags in favor of batchhjrgrn2025-04-141-1/+1
|
* test: Fix get-key-error testcase for hschjrgrn2025-03-192-3/+3
|
* test: Fix get-key-error testcase for hschjrgrn2025-03-182-2/+3
|
* test: Update testcase get-key-error for hschjrgrn2025-03-141-2/+2
|
* Deprecate --onion-name; introduce --onion-addressdisha2025-03-124-11/+11
|
* arti: Remove incorrect deprecation warning in hschjrgrn2025-03-101-1/+1
|
* arti: Gate the arti hsc subcommand behind a new "hsc" feature.Gabriela Moldovan2024-09-191-1/+1
| | | | This new feature is experimental.
* arti: Add a test for the "hsc key" subcommand help output.Gabriela Moldovan2024-09-193-0/+19
|
* arti: Add hsc key subcommand, deprecate hsc get-key.Gabriela Moldovan2024-09-182-2/+3
| | | | | | | | | | I am deprecating the old `hsc get-key` subcommand in favor of the new `hsc key get` subcommand. This is because I plan to implement the rest of the key management functionality (key deletion, rotation, etc.) as subcommands of the `hsc key` command. The alternative would be to add a new distinct top-level `hsc rotate-key`, `hsc remove-key`, etc. subcommand alongside the existing `hsc get-key` command (which IMO is less nice than the alternative I'm proposing).
* arti: Remove hss get-key from the tests.Gabriela Moldovan2024-09-172-24/+2
| | | | The `hss get-key` functionality was folded into `hss onion-name`.
* arti: Add a test and some docs for the hss get-key subcommand.Gabriela Moldovan2024-09-171-0/+30
|
* arti: Add CLI for generating an onion service hsid.Gabriela Moldovan2024-09-171-1/+2
| | | | | | | | | | | This adds a new `hss get-key` subcommand for retrieving and generating service identity keys. The existing `hss onion-name` is now a convenience alias for `hss get-key --generate=no --key-type=onion-name`. Note: I am calling this new subcommand `get-key` for consistency with its client counterpart (`hsc get-key`). Closes #1621
* arti: Add an enum for the hss subcommand.Gabriela Moldovan2024-09-171-1/+1
| | | | | | | This is needed because we'll soon add an `hss get-key` subcommand for getting and/or generating a service identity key alongside `hss onion-name` (`hss onion-name` will become a convenience around `hss get-key --key-type=onion-name`).
* arti: Test hss onion-name behavior when the hsid is missing.Gabriela Moldovan2024-09-172-0/+17
|
* arti: Set the COLUMNS env var in the CLI tests.Gabriela Moldovan2024-08-283-11/+14
| | | | | | | | This sets `COLUMNS` to a large value to prevent line wrapping. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2370#note_3067346 Closes #1574