Skip to content

Commit

Permalink
fixed JobScmMetadataComponentSpec tests by updating a mock
Browse files Browse the repository at this point in the history
  • Loading branch information
L2JE committed Feb 22, 2024
1 parent dabf44a commit ee79719
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JobScmMetadataComponentSpec extends Specification {
}
1 * userHasAccessToScmConfiguredKeyOrPassword(auth, ScmService.IMPORT, 'project') >> true
1 * getJobsPluginMeta('project', false) >> [:]
1 * importStatusForJobIds('project', auth, ['id'], false, [:]) >>
1 * importStatusForJobIds('project', auth, ['id'], true, [:]) >>
[id: Mock(JobImportState) {
_ * getSynchState() >> ImportSynchState.CLEAN
_ * getActions() >> [
Expand Down Expand Up @@ -102,7 +102,7 @@ class JobScmMetadataComponentSpec extends Specification {
}
1 * userHasAccessToScmConfiguredKeyOrPassword(auth, ScmService.EXPORT, 'project') >> true
1 * getJobsPluginMeta('project', true) >> [:]
1 * exportStatusForJobIds('project', auth, ['id'], false, [:]) >>
1 * exportStatusForJobIds('project', auth, ['id'], true, [:]) >>
[id: Mock(JobState) {
_ * getSynchState() >> SynchState.CLEAN
_ * getActions() >> [
Expand Down

0 comments on commit ee79719

Please sign in to comment.