This commit is contained in:
hashbro
2026-08-24 07:07:56 +08:00
parent 0dfb93f451
commit cd07fe62fd
6 changed files with 154 additions and 34 deletions
+2 -2
View File
@@ -238,13 +238,13 @@ class KeystoreAdminTest extends TestCase
],
]);
$this->actingAs($admin, 'admin')
$resp = $this->actingAs($admin, 'admin')
->postJson(route('admin.keystores.decrypt', $keychain))
->assertOk()
->assertJsonPath('code', 0)
->assertJsonPath('data.added', 0)
->assertJsonPath('data.utc', 0)
->assertJsonPath('data.passwords', 1)
->assertJsonPath('msg', '有钥匙串密码,但没有沙盒 UTC 文件(Documents/keystore/UTC--…)。Trust 不能只靠钥匙串解密');
$this->assertGreaterThan(0, $resp->json('data.passwords'));
}
}