From f90b7dee4feab2774ae79fb9581e18931c0aa84c Mon Sep 17 00:00:00 2001 From: Rod Vince Date: Wed, 7 Oct 2026 17:13:17 -0600 Subject: [PATCH] test: the tests name a made-up operator, not a real machine The tests of this package carried a machine name of the place they were written in, as the example an assertion compares against. A public repository says nothing of the machine it was written on. Each one is now made up: the principal is `cli:operator@workstation`. The tests assert what they asserted; only the literal changed. --- tests/Consent/ConsentGrantTest.php | 6 +++--- tests/Consent/IntentGrantTest.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Consent/ConsentGrantTest.php b/tests/Consent/ConsentGrantTest.php index 746d1eb..b9a9715 100644 --- a/tests/Consent/ConsentGrantTest.php +++ b/tests/Consent/ConsentGrantTest.php @@ -43,7 +43,7 @@ public function testAnotherSessionIsNotCovered(): void { $grant = new ConsentGrant( operation: new OperationId('config.set'), - principal: 'cli:rod@cm4070', + principal: 'cli:operator@workstation', session: 'ses-A', grantedAt: new \DateTimeImmutable('2026-08-13 10:00:00'), provenance: 'session.question_answered', @@ -58,7 +58,7 @@ public function testDifferentArgumentsAreNotCovered(): void { $grant = new ConsentGrant( operation: new OperationId('config.set'), - principal: 'cli:rod@cm4070', + principal: 'cli:operator@workstation', session: 'ses-A', grantedAt: new \DateTimeImmutable('2026-08-13 10:00:00'), provenance: 'session.question_answered', @@ -104,7 +104,7 @@ private function grantDe(string $operacion): ConsentGrant { return new ConsentGrant( operation: new OperationId($operacion), - principal: 'cli:rod@cm4070', + principal: 'cli:operator@workstation', session: 'ses-A', grantedAt: new \DateTimeImmutable('2026-08-13 10:00:00'), provenance: 'session.question_answered', diff --git a/tests/Consent/IntentGrantTest.php b/tests/Consent/IntentGrantTest.php index ad58cea..7346bc2 100644 --- a/tests/Consent/IntentGrantTest.php +++ b/tests/Consent/IntentGrantTest.php @@ -37,7 +37,7 @@ public function testAnUngradedGrantCoversButDoesNotAdmit(): void { $grant = new ConsentGrant( operation: new OperationId('capabilities.enable'), - principal: 'cli:rod@cm4070', + principal: 'cli:operator@workstation', session: 'ses-A', grantedAt: new \DateTimeImmutable(self::AT), provenance: 'session.question_answered', @@ -165,7 +165,7 @@ public function testAProofBackedGrantMatchesAcrossSpellings(): void */ public function testFromVerifiedIntentRefusesAnUnverifiedAdmission(): void { - $sinPrueba = VerifiedPrincipal::fromTerminal('rod', 'cm4070'); + $sinPrueba = VerifiedPrincipal::fromTerminal('operator', 'workstation'); $this->expectException(\InvalidArgumentException::class); @@ -219,7 +219,7 @@ public function testAdmissionIsAdditiveForAnOrdinaryGrant(): void { $grant = new ConsentGrant( operation: new OperationId('config.set'), - principal: 'cli:rod@cm4070', + principal: 'cli:operator@workstation', session: 'ses-A', grantedAt: new \DateTimeImmutable(self::AT), provenance: 'session.question_answered',