summaryrefslogtreecommitdiffstats
path: root/test/other
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-06-27 21:47:06 +0000
committerLuke Kanies <luke@madstop.com>2005-06-27 21:47:06 +0000
commit60783f0777eb5dd89d44a8dfd2ced49f06a32d8f (patch)
treed1cf67771de26cd49d98fff28d2e7aa89cbf63e0 /test/other
parent8f95084cd854aef4e3493854e58cefd352cdc68d (diff)
downloadpuppet-60783f0777eb5dd89d44a8dfd2ced49f06a32d8f.tar.gz
puppet-60783f0777eb5dd89d44a8dfd2ced49f06a32d8f.tar.xz
puppet-60783f0777eb5dd89d44a8dfd2ced49f06a32d8f.zip
renaming blink to puppet
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@305 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/other')
-rw-r--r--test/other/tc_fact.rb10
-rw-r--r--test/other/tc_function.rb10
-rw-r--r--test/other/tc_selector.rb14
-rw-r--r--test/other/tc_state.rb26
-rw-r--r--test/other/tc_transactions.rb32
5 files changed, 46 insertions, 46 deletions
diff --git a/test/other/tc_fact.rb b/test/other/tc_fact.rb
index 439f3312d..f0a2cc223 100644
--- a/test/other/tc_fact.rb
+++ b/test/other/tc_fact.rb
@@ -1,20 +1,20 @@
if __FILE__ == $0
$:.unshift '..'
$:.unshift '../../lib'
- $blinkbase = "../../../../language/trunk/"
+ $puppetbase = "../../../../language/trunk/"
end
-require 'blink/fact'
+require 'puppet/fact'
require 'test/unit'
# $Id$
class TestFacts < Test::Unit::TestCase
def test_newfact
- Blink[:debug] = true if __FILE__ == $0
+ Puppet[:debug] = true if __FILE__ == $0
fact = nil
assert_nothing_raised() {
- fact = Blink::Fact.new(
+ fact = Puppet::Fact.new(
:name => "funtest",
:code => "echo funtest",
:interpreter => "/bin/sh"
@@ -22,7 +22,7 @@ class TestFacts < Test::Unit::TestCase
}
assert_equal(
"funtest",
- Blink::Fact["funtest"]
+ Puppet::Fact["funtest"]
)
end
end
diff --git a/test/other/tc_function.rb b/test/other/tc_function.rb
index 5fa3698cc..e35abddd6 100644
--- a/test/other/tc_function.rb
+++ b/test/other/tc_function.rb
@@ -1,11 +1,11 @@
if __FILE__ == $0
$:.unshift '..'
$:.unshift '../../lib'
- $blinkbase = "../../../../language/trunk"
+ $puppetbase = "../../../../language/trunk"
end
-require 'blink/function'
-require 'blink/fact'
+require 'puppet/function'
+require 'puppet/fact'
require 'test/unit'
# $Id$
@@ -17,11 +17,11 @@ class TestFunctions < Test::Unit::TestCase
vars.each { |var|
value = nil
assert_nothing_raised() {
- value = Blink::Function["fact"].call(var)
+ value = Puppet::Function["fact"].call(var)
}
assert_equal(
- Blink::Fact[var],
+ Puppet::Fact[var],
value
)
}
diff --git a/test/other/tc_selector.rb b/test/other/tc_selector.rb
index cd786fd1a..1f01ea87a 100644
--- a/test/other/tc_selector.rb
+++ b/test/other/tc_selector.rb
@@ -1,28 +1,28 @@
if __FILE__ == $0
$:.unshift '..'
$:.unshift '../../lib'
- $blinkbase = "../../../../language/trunk"
+ $puppetbase = "../../../../language/trunk"
end
-require 'blink/selector'
+require 'puppet/selector'
require 'test/unit'
# $Id$
class TestSelector < Test::Unit::TestCase
def setup
- @os = Blink::Fact["operatingsystem"]
- @hostname = Blink::Fact["hostname"]
+ @os = Puppet::Fact["operatingsystem"]
+ @hostname = Puppet::Fact["hostname"]
end
def test_values
- Blink[:debug] = 1
+ Puppet[:debug] = 1
selector = nil
assert_nothing_raised() {
- selector = Blink::Selector.new { |select|
+ selector = Puppet::Selector.new { |select|
select.add("value1") {
- Blink::Fact["hostname"] == @hostname
+ Puppet::Fact["hostname"] == @hostname
}
}
}
diff --git a/test/other/tc_state.rb b/test/other/tc_state.rb
index ab496299e..bd8d1c24e 100644
--- a/test/other/tc_state.rb
+++ b/test/other/tc_state.rb
@@ -1,39 +1,39 @@
if __FILE__ == $0
$:.unshift '..'
$:.unshift '../../lib'
- $blinkbase = "../../../../language/trunk"
+ $puppetbase = "../../../../language/trunk"
end
-require 'blink'
+require 'puppet'
require 'test/unit'
# $Id$
class TestStorage < Test::Unit::TestCase
def setup
- Blink[:debug] = true
- Blink[:statefile] = "/var/tmp/blinkteststate"
+ Puppet[:debug] = true
+ Puppet[:statefile] = "/var/tmp/puppetteststate"
end
def test_simple
state = nil
assert_nothing_raised {
- Blink::Storage.load
+ Puppet::Storage.load
}
assert_nothing_raised {
- state = Blink::Storage.state(Blink::Type)
+ state = Puppet::Storage.state(Puppet::Type)
}
assert(state)
state["/etc/passwd"] = ["md5","9ebebe0c02445c40b9dc6871b64ee416"]
assert_nothing_raised {
- Blink::Storage.store
+ Puppet::Storage.store
}
assert_nothing_raised {
- Blink::Storage.load
+ Puppet::Storage.load
}
assert_equal(
["md5","9ebebe0c02445c40b9dc6871b64ee416"],
- Blink::Storage.state(Blink::Type)["/etc/passwd"]
+ Puppet::Storage.state(Puppet::Type)["/etc/passwd"]
)
end
@@ -41,20 +41,20 @@ class TestStorage < Test::Unit::TestCase
file = nil
state = nil
assert_nothing_raised {
- file = Blink::Type::File.new(
+ file = Puppet::Type::File.new(
:path => "/etc/passwd"
)
}
assert_nothing_raised {
- Blink::Storage.load
+ Puppet::Storage.load
}
assert_nothing_raised {
- state = Blink::Storage.state(file)
+ state = Puppet::Storage.state(file)
}
assert(state)
end
def teardown
- system("rm -f %s" % Blink[:statefile])
+ system("rm -f %s" % Puppet[:statefile])
end
end
diff --git a/test/other/tc_transactions.rb b/test/other/tc_transactions.rb
index 47094b078..d5f2c5da7 100644
--- a/test/other/tc_transactions.rb
+++ b/test/other/tc_transactions.rb
@@ -1,17 +1,17 @@
if __FILE__ == $0
$:.unshift '..'
$:.unshift '../../lib'
- $blinkbase = "../../../../language/trunk"
+ $puppetbase = "../../../../language/trunk"
end
-require 'blink'
+require 'puppet'
require 'test/unit'
# $Id$
class TestTransactions < Test::Unit::TestCase
def setup
- Blink[:debug] = true
+ Puppet[:debug] = true
@groups = %x{groups}.chomp.split(/ /)
unless @groups.length > 1
@@ -22,7 +22,7 @@ class TestTransactions < Test::Unit::TestCase
def teardown
assert_nothing_raised() {
- Blink::Type.allclear
+ Puppet::Type.allclear
}
print "\n\n"
@@ -30,36 +30,36 @@ class TestTransactions < Test::Unit::TestCase
def newfile
assert_nothing_raised() {
- cfile = File.join($blinkbase,"examples/root/etc/configfile")
- unless Blink::Type::File.has_key?(cfile)
- Blink::Type::File.new(
+ cfile = File.join($puppetbase,"examples/root/etc/configfile")
+ unless Puppet::Type::File.has_key?(cfile)
+ Puppet::Type::File.new(
:path => cfile,
:check => [:mode, :owner, :group]
)
end
- return Blink::Type::File[cfile]
+ return Puppet::Type::File[cfile]
}
end
def newservice
assert_nothing_raised() {
- unless Blink::Type::Service.has_key?("sleeper")
- Blink::Type::Service.new(
+ unless Puppet::Type::Service.has_key?("sleeper")
+ Puppet::Type::Service.new(
:name => "sleeper",
:check => [:running]
)
- Blink::Type::Service.setpath(
- File.join($blinkbase,"examples/root/etc/init.d")
+ Puppet::Type::Service.setpath(
+ File.join($puppetbase,"examples/root/etc/init.d")
)
end
- return Blink::Type::Service["sleeper"]
+ return Puppet::Type::Service["sleeper"]
}
end
def newcomp(name,*args)
comp = nil
assert_nothing_raised() {
- comp = Blink::Component.new(:name => name)
+ comp = Puppet::Component.new(:name => name)
}
args.each { |arg|
@@ -179,7 +179,7 @@ class TestTransactions < Test::Unit::TestCase
transaction.evaluate
}
- fakevent = Blink::Event.new(
+ fakevent = Puppet::Event.new(
:event => :ALL_EVENTS,
:object => self,
:transaction => transaction,
@@ -252,7 +252,7 @@ class TestTransactions < Test::Unit::TestCase
transaction.evaluate
}
- fakevent = Blink::Event.new(
+ fakevent = Puppet::Event.new(
:event => :ALL_EVENTS,
:object => self,
:transaction => transaction,