Skip to content

Commit

Permalink
Updating plugin id in all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ghale committed Jun 30, 2014
1 parent 00e181c commit 95c33d4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import org.gradle.api.execution.TaskExecutionGraph
import org.gradle.api.plugins.BasePlugin

class JenkinsPluginTest extends PluginProjectSpec {
static final String PLUGINID = 'com.terrafolio.jenkins'

@Override
String getPluginName() {
return 'jenkins'
return PLUGINID
}

def setup() {
Expand Down Expand Up @@ -122,7 +124,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues checks only selected servers" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
def mockConsole = Mock(MockConsoleInterface)
def testFactory = new DefaultConsoleFactory() {
def Object getConsole() {
Expand Down Expand Up @@ -155,7 +157,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues handles only insecure servers" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
def mockConsole = Mock(MockConsoleInterface)
def testFactory = new DefaultConsoleFactory() {
def Object getConsole() {
Expand Down Expand Up @@ -187,7 +189,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues handles task that does not need credentials" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
def mockConsole = Mock(MockConsoleInterface)
def testFactory = new DefaultConsoleFactory() {
def Object getConsole() {
Expand Down Expand Up @@ -224,7 +226,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues checks all secure servers" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
def mockConsole = Mock(MockConsoleInterface)
def testFactory = new DefaultConsoleFactory() {
def Object getConsole() {
Expand Down Expand Up @@ -281,7 +283,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues throws exception on missing username" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
project.jenkins.servers {
test1 {
url 'testUrl'
Expand All @@ -303,7 +305,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues throws exception on missing password" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
project.jenkins.servers {
test1 {
url 'testUrl'
Expand All @@ -325,7 +327,7 @@ class JenkinsPluginTest extends PluginProjectSpec {

def "checkAllServerValues throws exception on missing url" () {
setup:
def JenkinsPlugin plugin = project.plugins.findPlugin('jenkins')
def JenkinsPlugin plugin = project.plugins.findPlugin(PLUGINID)
project.jenkins.servers {
test1 {
username 'testuser'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class JenkinsConfigurationTest extends ProjectSpec {
"""

def setup() {
project.apply plugin: 'jenkins'
project.apply plugin: 'com.terrafolio.jenkins'
}

def "configure adds jenkins job" () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import nebula.test.ProjectSpec

class JenkinsJobDefinitionTest extends ProjectSpec {
def setup() {
project.apply plugin: 'jenkins'
project.apply plugin: 'com.terrafolio.jenkins'
}

def "configure sets name" () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.custommonkey.xmlunit.XMLUnit
class JenkinsJobTest extends ProjectSpec {

def setup() {
project.apply plugin: 'jenkins'
project.apply plugin: 'com.terrafolio.jenkins'
}

def "configure adds to definition"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.custommonkey.xmlunit.XMLUnit
class JenkinsViewTest extends ProjectSpec {

def setup() {
project.apply plugin: 'jenkins'
project.apply plugin: 'com.terrafolio.jenkins'
}

def "configure with dsl closure generates correct xml" () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class JenkinsPluginTaskSpec extends ProjectSpec {
"""

def setup() {
project.apply plugin: 'jenkins'
project.apply plugin: 'com.terrafolio.jenkins'

project.ext.branches = [
master: [parents: []],
Expand Down

0 comments on commit 95c33d4

Please sign in to comment.