Skip to content

Commit 2469d7a

Browse files
committed
fix: remove registration from tests
1 parent 911f5d7 commit 2469d7a

8 files changed

Lines changed: 13 additions & 31 deletions

File tree

crates/auths-cli/src/commands/init/gather.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub(crate) fn submit_registration(
134134
out: &Output,
135135
) -> Option<String> {
136136
if skip {
137-
out.print_info("Registration skipped (--skip-registration)");
137+
out.print_info("Registration skipped (pass --register to publish to the registry)");
138138
return None;
139139
}
140140

crates/auths-cli/tests/cases/helpers.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ impl TestEnv {
9494
pub fn init_identity(&self) {
9595
let output = self
9696
.cmd("auths")
97-
.args([
98-
"init",
99-
"--non-interactive",
100-
"--profile",
101-
"developer",
102-
"--skip-registration",
103-
])
97+
.args(["init", "--non-interactive", "--profile", "developer"])
10498
.output()
10599
.unwrap();
106100
assert!(

crates/auths-cli/tests/cases/init.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,7 @@ fn test_init_happy_path() {
7878

7979
let output = env
8080
.cmd("auths")
81-
.args([
82-
"init",
83-
"--non-interactive",
84-
"--profile",
85-
"developer",
86-
"--skip-registration",
87-
])
81+
.args(["init", "--non-interactive", "--profile", "developer"])
8882
.output()
8983
.unwrap();
9084

crates/auths-cli/tests/cases/revocation.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ fn test_emergency_revoke_device() {
1919
// Run init and capture device DID from output
2020
let init_output = env
2121
.cmd("auths")
22-
.args([
23-
"init",
24-
"--non-interactive",
25-
"--profile",
26-
"developer",
27-
"--skip-registration",
28-
])
22+
.args(["init", "--non-interactive", "--profile", "developer"])
2923
.output()
3024
.unwrap();
3125
assert!(init_output.status.success());

docs/cli/commands/primary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Set up your cryptographic identity and Git signing
1818
| `--force` || Force overwrite if identity already exists |
1919
| `--dry-run` || Preview agent configuration without creating files or identities |
2020
| `--registry <REGISTRY>` | `https://auths-registry.fly.dev` | Registry URL for automatic identity registration |
21-
| `--skip-registration` || Skip automatic registry registration during setup |
21+
| `--register` || Register identity with the Auths Registry after creation |
2222
| `--json` || Emit machine-readable JSON |
2323
| `-q, --quiet` || Suppress non-essential output |
2424
| `--repo <REPO>` || Override the local storage directory (default: ~/.auths) |

docs/guides/identity/profiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ auths init --profile developer --non-interactive --key-alias my-key
5252
| `--force` | `false` | Overwrite existing identity |
5353
| `--non-interactive` | `false` | Skip all prompts, use defaults |
5454
| `--registry` | `https://auths-registry.fly.dev` | Registry URL for identity registration |
55-
| `--skip-registration` | `false` | Skip automatic registry registration |
55+
| `--register` | `false` | Register identity with the Auths Registry |
5656

5757
### CI profile
5858

tests/e2e/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def init_identity(auths_bin, isolated_env):
9696
"""Pre-initialized Auths identity."""
9797
result = run_auths(
9898
auths_bin,
99-
["init", "--profile", "developer", "--non-interactive", "--skip-registration"],
99+
["init", "--profile", "developer", "--non-interactive", ],
100100
env=isolated_env,
101101
)
102102
result.assert_success()

tests/e2e/test_identity_lifecycle.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TestIdentityLifecycle:
1313
def test_init_developer_profile(self, auths_bin, isolated_env):
1414
result = run_auths(
1515
auths_bin,
16-
["init", "--profile", "developer", "--non-interactive", "--skip-registration"],
16+
["init", "--profile", "developer", "--non-interactive", ],
1717
env=isolated_env,
1818
)
1919
result.assert_success()
@@ -25,29 +25,29 @@ def test_init_developer_profile(self, auths_bin, isolated_env):
2525
def test_init_ci_profile(self, auths_bin, isolated_env):
2626
result = run_auths(
2727
auths_bin,
28-
["init", "--profile", "ci", "--non-interactive", "--skip-registration"],
28+
["init", "--profile", "ci", "--non-interactive", ],
2929
env=isolated_env,
3030
)
3131
result.assert_success()
3232

3333
def test_init_agent_profile(self, auths_bin, isolated_env):
3434
result = run_auths(
3535
auths_bin,
36-
["init", "--profile", "agent", "--non-interactive", "--skip-registration"],
36+
["init", "--profile", "agent", "--non-interactive", ],
3737
env=isolated_env,
3838
)
3939
result.assert_success()
4040

4141
def test_init_already_initialized(self, auths_bin, isolated_env):
4242
run_auths(
4343
auths_bin,
44-
["init", "--profile", "developer", "--non-interactive", "--skip-registration"],
44+
["init", "--profile", "developer", "--non-interactive", ],
4545
env=isolated_env,
4646
).assert_success()
4747

4848
second = run_auths(
4949
auths_bin,
50-
["init", "--profile", "developer", "--non-interactive", "--skip-registration"],
50+
["init", "--profile", "developer", "--non-interactive", ],
5151
env=isolated_env,
5252
)
5353
# Second init should either fail or warn
@@ -102,7 +102,7 @@ def test_full_lifecycle(self, auths_bin, isolated_env, tmp_path):
102102
# Init
103103
run_auths(
104104
auths_bin,
105-
["init", "--profile", "developer", "--non-interactive", "--skip-registration"],
105+
["init", "--profile", "developer", "--non-interactive", ],
106106
env=isolated_env,
107107
).assert_success()
108108

0 commit comments

Comments
 (0)