Skip to content

Commit

Permalink
Merge pull request #154 from bdunne/apache_status
Browse files Browse the repository at this point in the history
MiqApache::Control.status doesn't appear to be used anywhere
  • Loading branch information
jrafanie authored May 8, 2017
2 parents 181f6e6 + 7717432 commit f006edd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
13 changes: 0 additions & 13 deletions lib/gems/pending/util/miq_apache/miq_apache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,6 @@ def self.kill_all
MiqUtil.runcmd("for i in `ipcs -s | awk '/apache/ {print $2}'`; do (ipcrm -s $i); done")
end

def self.status(full = true)
if full
###################################################################
# Displays a full status report from mod_status. For this to work, you need to have
# mod_status enabled on your server and a text-based browser such as lynx available
# on your system. The URL used to access the status report can be set by editing the
# STATUSURL variable in the script.
#
# Command line: apachectl fullstatus
###################################################################
end
end

def self.version
MiqUtil.runcmd("rpm -qa --queryformat '%{VERSION}' httpd")
end
Expand Down
12 changes: 0 additions & 12 deletions spec/util/miq_apache/control_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,6 @@
expect { MiqApache::Control.kill_all }.not_to raise_error
end

# FIXME: need to implement the code and change the test
it "should not do anything when calling status with full true" do
expect(MiqApache::Control).to receive(:run_apache_cmd).never
expect(MiqApache::Control.status(true)).to be_nil
end

# FIXME: need to implement the code and change the test
it "should not do anything when calling status with full false" do
expect(MiqApache::Control).to receive(:run_apache_cmd).never
expect(MiqApache::Control.status(false)).to be_nil
end

it "config_ok? is true if nothing raised" do
allow(MiqUtil).to receive(:runcmd)
expect(described_class.config_ok?).to be_truthy
Expand Down

0 comments on commit f006edd

Please sign in to comment.