11use super :: * ;
2+ use crate :: acme_account_state:: ACCOUNT_BOOTSTRAP_PENDING_FILE ;
23
34fn bootstrap_credentials (
45 bootstrap : & mut PendingAccountBootstrap ,
@@ -209,7 +210,7 @@ fn account_bootstrap_promotion_is_durable_and_cleans_pending_key() {
209210 . path
210211 . parent ( )
211212 . unwrap ( )
212- . join ( ".credentials.bootstrap.pending" ) ;
213+ . join ( ACCOUNT_BOOTSTRAP_PENDING_FILE ) ;
213214 assert ! ( !pending_path. exists( ) ) ;
214215}
215216
@@ -228,7 +229,7 @@ fn account_bootstrap_sanitizes_pending_key_before_unlink() {
228229 . path
229230 . parent ( )
230231 . unwrap ( )
231- . join ( ".credentials.bootstrap.pending" ) ;
232+ . join ( ACCOUNT_BOOTSTRAP_PENDING_FILE ) ;
232233 let retained_link = storage. join ( "pending-key-sanitization-witness" ) ;
233234 std:: fs:: hard_link ( & pending_path, & retained_link) . unwrap ( ) ;
234235
@@ -260,7 +261,7 @@ fn account_bootstrap_recovers_after_credentials_publish_before_cleanup() {
260261 . path
261262 . parent ( )
262263 . unwrap ( )
263- . join ( ".credentials.bootstrap.pending" ) ;
264+ . join ( ACCOUNT_BOOTSTRAP_PENDING_FILE ) ;
264265 assert ! ( !pending_path. exists( ) ) ;
265266}
266267
@@ -326,7 +327,7 @@ fn pending_account_bootstrap_key_is_owner_only() {
326327 . path
327328 . parent ( )
328329 . unwrap ( )
329- . join ( ".credentials.bootstrap.pending" ) ;
330+ . join ( ACCOUNT_BOOTSTRAP_PENDING_FILE ) ;
330331 assert_eq ! (
331332 std:: fs:: metadata( pending_path)
332333 . unwrap( )
@@ -354,7 +355,7 @@ fn account_bootstrap_rejects_symlinked_pending_key() {
354355 . path
355356 . parent ( )
356357 . unwrap ( )
357- . join ( ".credentials.bootstrap.pending" ) ;
358+ . join ( ACCOUNT_BOOTSTRAP_PENDING_FILE ) ;
358359 std:: fs:: remove_file ( & pending_path) . unwrap ( ) ;
359360 let outside = storage. with_extension ( "outside-key" ) ;
360361 std:: fs:: write ( & outside, b"outside" ) . unwrap ( ) ;
0 commit comments