|
35 | 35 | Dir.mktmpdir do |path| |
36 | 36 | expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true) |
37 | 37 | expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with( |
38 | | - anything, ["build", "snapshots", "--app-id", "com.example.app", path] |
| 38 | + anything, ["snapshots", "upload", "--app-id", "com.example.app", path] |
39 | 39 | ).and_return(true) |
40 | 40 |
|
41 | 41 | described_class.new.parse("lane :test do |
|
54 | 54 | expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true) |
55 | 55 | expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with( |
56 | 56 | anything, |
57 | | - ["build", "snapshots", "--app-id", "com.example.app", path, |
| 57 | + ["snapshots", "upload", "--app-id", "com.example.app", path, |
58 | 58 | "--head-sha", "abc123", "--base-sha", "def456", |
59 | 59 | "--vcs-provider", "github", "--head-repo-name", "test/repo", |
60 | 60 | "--base-repo-name", "test/repo", "--head-ref", "feature", |
|
85 | 85 | expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true) |
86 | 86 | expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with( |
87 | 87 | anything, |
88 | | - ["build", "snapshots", "--app-id", "com.example.app", path, "--force-git-metadata"] |
| 88 | + ["snapshots", "upload", "--app-id", "com.example.app", path, "--force-git-metadata"] |
89 | 89 | ).and_return(true) |
90 | 90 |
|
91 | 91 | described_class.new.parse("lane :test do |
|
105 | 105 | expect(Fastlane::Helper::SentryConfig).to receive(:parse_api_params).and_return(true) |
106 | 106 | expect(Fastlane::Helper::SentryHelper).to receive(:call_sentry_cli).with( |
107 | 107 | anything, |
108 | | - ["build", "snapshots", "--app-id", "com.example.app", path, "--no-git-metadata"] |
| 108 | + ["snapshots", "upload", "--app-id", "com.example.app", path, "--no-git-metadata"] |
109 | 109 | ).and_return(true) |
110 | 110 |
|
111 | 111 | described_class.new.parse("lane :test do |
|
0 commit comments