@@ -1135,7 +1135,11 @@ fn login_with_asymmetric_token_and_subject_on_stdin() {
1135
1135
cargo_process ( "login --key-subject=foo --secret-key -v -Z registry-auth" )
1136
1136
. masquerade_as_nightly_cargo ( & [ "registry-auth" ] )
1137
1137
. replace_crates_io ( registry. index_url ( ) )
1138
- . with_stdout ( "please paste the API secret key below" )
1138
+ . with_stdout (
1139
+ "\
1140
+ please paste the API secret key below
1141
+ k3.public.AmDwjlyf8jAV3gm5Z7Kz9xAOcsKslt_Vwp5v-emjFzBHLCtcANzTaVEghTNEMj9PkQ" ,
1142
+ )
1139
1143
. with_stdin ( "k3.secret.fNYVuMvBgOlljt9TDohnaYLblghqaHoQquVZwgR6X12cBFHZLFsaU3q7X3k1Zn36" )
1140
1144
. run ( ) ;
1141
1145
let credentials = fs:: read_to_string ( & credentials) . unwrap ( ) ;
@@ -1152,7 +1156,11 @@ fn login_with_asymmetric_token_on_stdin() {
1152
1156
cargo_process ( "login --secret-key -v -Z registry-auth" )
1153
1157
. masquerade_as_nightly_cargo ( & [ "registry-auth" ] )
1154
1158
. replace_crates_io ( registry. index_url ( ) )
1155
- . with_stdout ( "please paste the API secret key below" )
1159
+ . with_stdout (
1160
+ "\
1161
+ please paste the API secret key below
1162
+ k3.public.AmDwjlyf8jAV3gm5Z7Kz9xAOcsKslt_Vwp5v-emjFzBHLCtcANzTaVEghTNEMj9PkQ" ,
1163
+ )
1156
1164
. with_stdin ( "k3.secret.fNYVuMvBgOlljt9TDohnaYLblghqaHoQquVZwgR6X12cBFHZLFsaU3q7X3k1Zn36" )
1157
1165
. run ( ) ;
1158
1166
let credentials = fs:: read_to_string ( & credentials) . unwrap ( ) ;
@@ -1175,7 +1183,10 @@ fn login_with_asymmetric_key_subject_without_key() {
1175
1183
cargo_process ( "login --secret-key -v -Z registry-auth" )
1176
1184
. masquerade_as_nightly_cargo ( & [ "registry-auth" ] )
1177
1185
. replace_crates_io ( registry. index_url ( ) )
1178
- . with_stdout ( "please paste the API secret key below" )
1186
+ . with_stdout (
1187
+ "please paste the API secret key below
1188
+ k3.public.AmDwjlyf8jAV3gm5Z7Kz9xAOcsKslt_Vwp5v-emjFzBHLCtcANzTaVEghTNEMj9PkQ" ,
1189
+ )
1179
1190
. with_stdin ( "k3.secret.fNYVuMvBgOlljt9TDohnaYLblghqaHoQquVZwgR6X12cBFHZLFsaU3q7X3k1Zn36" )
1180
1191
. run ( ) ;
1181
1192
@@ -1199,6 +1210,7 @@ fn login_with_generate_asymmetric_token() {
1199
1210
cargo_process ( "login --generate-keypair -Z registry-auth" )
1200
1211
. masquerade_as_nightly_cargo ( & [ "registry-auth" ] )
1201
1212
. replace_crates_io ( registry. index_url ( ) )
1213
+ . with_stdout ( "k3.public.[..]" )
1202
1214
. run ( ) ;
1203
1215
let credentials = fs:: read_to_string ( & credentials) . unwrap ( ) ;
1204
1216
assert ! ( credentials. contains( "secret-key = \" k3.secret." ) ) ;
0 commit comments