summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Blaine <jblaine@kickflop.net>2015-09-01 12:38:35 -0400
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-24 17:57:57 -0700
commit349bc2b26772dd02bda97089c09733db8235f0d2 (patch)
tree89e94829f7fd4ad2f468b3e019cc3bf0b1d4e890
parent3dee5a59ce524e28bd95d85d9e33c2c41ced8716 (diff)
downloadchef-349bc2b26772dd02bda97089c09733db8235f0d2.tar.gz
Adjust tests per BTM
-rw-r--r--spec/unit/knife/status_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/knife/status_spec.rb b/spec/unit/knife/status_spec.rb
index f2428b8222..11728a6f9b 100644
--- a/spec/unit/knife/status_spec.rb
+++ b/spec/unit/knife/status_spec.rb
@@ -45,8 +45,8 @@ describe Chef::Knife::Status do
end
it "should filter by nodes older than some mins" do
- @knife.config[:hide_by_mins] = 60
- expect(@query).to receive(:search).with(:node, "NOT ohai_time:[1428569820 TO 1428573420]", opts)
+ @knife.config[:hide_by_mins] = 59
+ expect(@query).to receive(:search).with(:node, "NOT ohai_time:[1428569880 TO 1428573420]", opts)
@knife.run
end
@@ -58,8 +58,8 @@ describe Chef::Knife::Status do
it "should filter by environment and nodes older than some mins" do
@knife.config[:environment] = "production"
- @knife.config[:hide_by_mins] = 60
- expect(@query).to receive(:search).with(:node, "chef_environment:production NOT ohai_time:[1428569820 TO 1428573420]", opts)
+ @knife.config[:hide_by_mins] = 59
+ expect(@query).to receive(:search).with(:node, "chef_environment:production NOT ohai_time:[1428569880 TO 1428573420]", opts)
@knife.run
end
@@ -80,8 +80,8 @@ describe Chef::Knife::Status do
end
it "should filter by nodes older than some mins with nodename specified" do
- @knife.config[:hide_by_mins] = 60
- expect(@query).to receive(:search).with(:node, "name:my_custom_name NOT ohai_time:[1428569820 TO 1428573420]", opts)
+ @knife.config[:hide_by_mins] = 59
+ expect(@query).to receive(:search).with(:node, "name:my_custom_name NOT ohai_time:[1428569880 TO 1428573420]", opts)
@knife.run
end
@@ -93,8 +93,8 @@ describe Chef::Knife::Status do
it "should filter by environment and nodes older than some mins with nodename specified" do
@knife.config[:environment] = "production"
- @knife.config[:hide_by_mins] = 60
- expect(@query).to receive(:search).with(:node, "name:my_custom_name AND chef_environment:production NOT ohai_time:[1428569820 TO 1428573420]", opts)
+ @knife.config[:hide_by_mins] = 59
+ expect(@query).to receive(:search).with(:node, "name:my_custom_name AND chef_environment:production NOT ohai_time:[1428569880 TO 1428573420]", opts)
@knife.run
end
end