(t *testing.T)
| 310 | } |
| 311 | |
| 312 | func TestRunUpgradeCommandReposRequiresOrg(t *testing.T) { |
| 313 | cmd := NewUpgradeCommand() |
| 314 | cmd.SetArgs([]string{"--repos", "*-svc"}) |
| 315 | err := cmd.Execute() |
| 316 | require.Error(t, err) |
| 317 | assert.Contains(t, err.Error(), "--repos requires --org") |
| 318 | } |
| 319 | |
| 320 | func TestRunUpgradeForOrgSkipsFailedRepos(t *testing.T) { |
| 321 | origSearch := searchOrgLockWorkflowReposFn |
nothing calls this directly
no test coverage detected