Skip to content

Commit 83a4224

Browse files
committed
fix pending unit tests
1 parent ac7aa69 commit 83a4224

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/groovy/com/rundeck/plugins/ansible/plugin/AnsibleResourceModelSourceSpec.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ class AnsibleResourceModelSourceSpec extends Specification {
140140
getBaseDir() >> Mock(File) {
141141
getAbsolutePath() >> '/tmp'
142142
}
143+
getPropertyLookup() >> Mock(IPropertyLookup){
144+
getProperty("framework.tmp.dir") >> '/tmp'
145+
}
143146
}
144147
ResourceModelSource plugin = new AnsibleResourceModelSource(framework)
145148
Properties config = new Properties()
@@ -167,6 +170,9 @@ class AnsibleResourceModelSourceSpec extends Specification {
167170
getBaseDir() >> Mock(File) {
168171
getAbsolutePath() >> '/tmp'
169172
}
173+
getPropertyLookup() >> Mock(IPropertyLookup){
174+
getProperty("framework.tmp.dir") >> '/tmp'
175+
}
170176
}
171177
ResourceModelSource plugin = new AnsibleResourceModelSource(framework)
172178
Properties config = new Properties()

0 commit comments

Comments
 (0)