19. あなたの側で、あなた以上に考える。serverspecでサーバ状態をテスト
describe service(‘httpd’), :if => os[:family] == ‘redhat’ do
it { should be_enabled }
it { should be_running }
end
...
describe port(80) do
it { should be_listening }
end
...
describe command(‘curl http://169.254../meta/instance-type') do
its(:stdout) { should match /t2.small/ }
end
#サービス httpdの自動起動がOnである
#サービス httpdが起動中である
#port 80がListen状態である事
#インスタンスタイプがt2.smallである事
導入からサンプルテスト実施まで5分あれば十分です!
正となるサーバ状態をテストコード化し繰り返し実施できます
30. あなたの側で、あなた以上に考える。
30
株式会社スカイアーチネットワークス
〒105-0001 東京都港区虎ノ門4-2-12 虎ノ門4丁目MTビル2号館 5階
TEL 03-6743-1100 FAX 03-6743-1101
info@skyarch.net http://www.skyarch.net
All material contained within this presentation is the confidential
And proprietary information of Skyarch Networks Inc. Copyright 2015.
本資料(添付資料を含む)に掲載されている情報(ページデザイン等のビジュアル
を含む)は全て株式会社スカイアーチネットワークスの知的財産です。
この中の情報を再利用したものも全て株式会社スカイアーチネットワークスの
知的財産権に属します。コンテンツの複製、社外への公開、社内利用への転用
は全て、株式会社スカイアーチネットワークスの許諾を必要とする旨、ご理解を
お願いします。(Copyright 2015)