Skip to content

Commit e35da7b

Browse files
test(bundle-jvm): Remove API mocks (#2967)
Following #2926, the `bundle-jvm` command no longer makes API requests to Sentry, so we also do not need to mock any server endpoints in the tests.
1 parent f9878c8 commit e35da7b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/integration/debug_files/bundle_jvm.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::integration::{copy_recursively, ServerBehavior, TestManager};
1+
use crate::integration::{copy_recursively, TestManager};
22
use std::fs::{create_dir, remove_dir_all, write};
33

44
#[test]
@@ -16,7 +16,6 @@ fn command_bundle_jvm_out_not_found_creates_dir() {
1616
.unwrap();
1717

1818
TestManager::new()
19-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
2019
.register_trycmd_test(
2120
"debug_files/bundle_jvm/debug_files-bundle-jvm-output-not-found.trycmd",
2221
)
@@ -35,15 +34,13 @@ fn command_bundle_jvm_fails_out_is_file() {
3534
write(testcase_cwd_path.join("file.txt"), "some file content").unwrap();
3635

3736
TestManager::new()
38-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
3937
.register_trycmd_test("debug_files/bundle_jvm/debug_files-bundle-jvm-output-is-file.trycmd")
4038
.with_default_token();
4139
}
4240

4341
#[test]
4442
fn command_bundle_jvm_fails_input_not_found() {
4543
TestManager::new()
46-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
4744
.register_trycmd_test(
4845
"debug_files/bundle_jvm/debug_files-bundle-jvm-input-not-found.trycmd",
4946
)
@@ -53,7 +50,6 @@ fn command_bundle_jvm_fails_input_not_found() {
5350
#[test]
5451
fn command_bundle_jvm_fails_input_is_file() {
5552
TestManager::new()
56-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
5753
.register_trycmd_test("debug_files/bundle_jvm/debug_files-bundle-jvm-input-is-file.trycmd")
5854
.with_default_token();
5955
}
@@ -69,7 +65,6 @@ fn command_bundle_jvm_input_dir_empty() {
6965
copy_recursively("tests/integration/_fixtures/jvm/", testcase_cwd_path).unwrap();
7066
create_dir(testcase_cwd_path.join("empty-dir")).unwrap();
7167
TestManager::new()
72-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
7368
.register_trycmd_test(
7469
"debug_files/bundle_jvm/debug_files-bundle-jvm-input-dir-empty.trycmd",
7570
)
@@ -79,7 +74,6 @@ fn command_bundle_jvm_input_dir_empty() {
7974
#[test]
8075
fn command_bundle_jvm_fails_invalid_uuid() {
8176
TestManager::new()
82-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
8377
.register_trycmd_test("debug_files/bundle_jvm/debug_files-bundle-jvm-invalid-uuid.trycmd");
8478
}
8579

@@ -92,7 +86,6 @@ fn command_bundle_jvm() {
9286
}
9387
copy_recursively("tests/integration/_fixtures/jvm/", testcase_cwd_path).unwrap();
9488
TestManager::new()
95-
.mock_common_upload_endpoints(ServerBehavior::Legacy, Default::default())
9689
.register_trycmd_test("debug_files/bundle_jvm/debug_files-bundle-jvm.trycmd")
9790
.with_default_token();
9891
}

0 commit comments

Comments
 (0)