aboutsummaryrefslogtreecommitdiff
path: root/crates/arti/tests/testcases
Commit message (Collapse)AuthorAgeFilesLines
* arti: Add a trycmd-based test for arti keys list error handlingGabriela Moldovan2026-06-173-0/+5
| | | | | This is a `trycmd`-based replacement for the `list_unregistered_keystore_fails()` test, which will be removed soon.
* doc/keys.md: Un-ignore some of the example snippetsGabriela Moldovan2026-06-172-1/+16
| | | | | | | | | This un-ignores some of the output snippets from the `doc/keys.md` file, so that our `trycmd` test runner will actually run them. This will force us to keep the snippet in sync with the code. This involved adding some extra config for the test C Tor keystore, and tweaking the output to match what the commands actually print out.
* arti: Don't mention entry validity in the help messageGabriela Moldovan2026-06-171-1/+1
| | | | | | This actually applies to unrecognized entries too, and besides, most users aren't going to think in terms of "valid" vs "invalid" entries, so it's best to omit this qualifier.
* arti: subcommands: keys: Rework output of keys listhjrgrn2026-06-171-0/+5
|
* arti: tests: Add regression test for `arti -h`hjrgrn2026-04-083-0/+7
| | | | | - Add regression test - Update README
* arti: test: rename unrecognized-entry to hs_unrecognized_entry to fix the CIhjrgrn2026-03-302-0/+0
| | | | This changes save us from adding a new entry in .editorconfig
* arti: tests: Rename some keys test files using more intuitive nameshjrgrn2026-03-303-0/+0
|
* 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
* Add integration test suite for `hsc ctor-migrate` subcommandhjrgrn2026-02-0213-0/+35
|
* Add `hsc key ctor-migrate` subcommandhjrgrn2025-11-2417-4/+23
|
* arti: test: Add integration test for `hss ctor-migrate`hjrgrn2025-09-1017-0/+103
|
* arti: keys: Add `keys check-integrity` CLI toolhjrgrn2025-09-045-4/+44
|
* arti: test: Fix `keys` integration testhjrgrn2025-08-281-0/+0
| | | | The `keys` integration test now accounts for case-insensitive filesystems
* arti: test: Add integration test suite for `arti keys`hjrgrn2025-08-259-1/+11
| | | | | | | | | - 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
* arti: hss: Add `arti hss ctor-migrate`hjrgrn2025-07-316-0/+50
|
* 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-146-7/+46
| | | | | | | | | | | | | | | | | | | * 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-1214-0/+94
|
* 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: 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-282-10/+5
| | | | | | | | 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
* arti: Elide some text in the expected hsc test output.Gabriela Moldovan2024-08-281-2/+1
| | | | | | These file paths occupy more than 2 lines on some platforms. See also the motivation behind 2b8a7a196b3ea5cd8350dd77f5e5120fed8521e0
* arti: Implement the hsc subcommand using an inert tor client.Gabriela Moldovan2024-08-281-1/+1
| | | | | | | | | This allows us to reenable the `arti hsc` tests, which were previously disabled due to flakiness (see #1496). The `help` test bit rotted a bit, so I had to tweak its expected output. Closes #1496
* doc: Add arti hsc subcommand docs to doc/hsc.md.Gabriela Moldovan2024-08-051-28/+1
| | | | | This also makes the `tests/testcases/hsc/hsc.md` test case a symlink to `doc/hsc.md`.
* arti: Update the hsc markdown test.Gabriela Moldovan2024-08-051-3/+19
| | | | | | | This adds a bit more information to `hsc.md`. Note: `hsc.md` is currently just a test case for the CLI tests. A future commit promote it to module-level README.
* arti: Elide the -c help in the expected output of the CLI tests.Gabriela Moldovan2024-08-051-2/+1
| | | | | | | | | | | | The help output of the `-c ` option includes some local paths, which can be quite long on some platforms, spanning over multiple lines. This causes the CLI tests to fail, because they expect each of the paths from the `-c` help to fit on a single line. To fix this, we can use `trycmd`'s `...` to match as many lines as needed. Closes #1509
* Have `arti hss onion-name` error if it doesn't print the onion nameKunal Mehta2024-08-011-1/+2
| | | | | | | There are two error cases where the onion name isn't printed, but previously returned `Ok(())`. It now returns an error to exit with a non-zero status code.
* arti: Add tests for the arti hsc subcommand.Gabriela Moldovan2024-07-3019-0/+131
|
* arti: Add tests for the arti hss subcommand.Gabriela Moldovan2024-07-309-0/+90
Closes #1250