File tree 3 files changed +2
-22
lines changed 3 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,8 @@ fn block_publish_due_to_no_token() {
280
280
// Now perform the actual publish
281
281
assert_that ( p. cargo ( "publish" ) . masquerade_as_nightly_cargo ( )
282
282
. arg ( "--registry" ) . arg ( "alternative" ) . arg ( "-Zunstable-options" ) ,
283
- execs ( ) . with_status ( 101 ) ) ;
283
+ execs ( ) . with_status ( 101 )
284
+ . with_stderr_contains ( "error: no upload token found, please run `cargo login`" ) ) ;
284
285
}
285
286
286
287
#[ test]
Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ const CONFIG_FILE: &str = r#"
23
23
24
24
[registries.test-reg]
25
25
index = "http://dummy_index/"
26
-
27
- [registries.test.reg]
28
- index = "http://dummy_index/"
29
26
"# ;
30
27
31
28
fn setup_old_credentials ( ) {
@@ -167,21 +164,3 @@ fn registry_credentials() {
167
164
// Also ensure that we get the new token for the registry
168
165
assert ! ( check_token( TOKEN , Some ( reg) ) ) ;
169
166
}
170
-
171
- #[ test]
172
- fn registry_credentials_with_dots ( ) {
173
- setup_old_credentials ( ) ;
174
- setup_new_credentials ( ) ;
175
-
176
- let reg = "test.reg" ;
177
-
178
- assert_that ( cargo_process ( ) . arg ( "login" ) . masquerade_as_nightly_cargo ( )
179
- . arg ( "--registry" ) . arg ( reg) . arg ( TOKEN ) . arg ( "-Zunstable-options" ) ,
180
- execs ( ) . with_status ( 0 ) ) ;
181
-
182
- // Ensure that we have not updated the default token
183
- assert ! ( check_token( ORIGINAL_TOKEN , None ) ) ;
184
-
185
- // Also ensure that we get the new token for the registry
186
- assert ! ( check_token( TOKEN , Some ( reg) ) ) ;
187
- }
You can’t perform that action at this time.
0 commit comments