Recommended
PDF
PDF
PDF
PDF
PDF
OpenCenterによるOpenStack自動構築
PDF
JOSUG2014 OpenStack 4th birthday party in Japan; the way of OpenStack API Dragon
PPT
PPT
PPT
PPTX
PDF
PDF
超簡単!ActivePerlをWindows Serverにインストール
PDF
PDF
まっつんチャレンジ OSC出張編 45分でわかる PHP+Eclipseによるテスト駆動開発環境の構築
PPTX
Myfirst cloudfoundry intro_20161201
PPTX
How to deploy & operate OpenStack Production
PDF
Serverspec at Testing Framework Meeting
PPT
PPTX
Open shiftoriginquickstart clouddevelopercircle_20170920
PDF
PDF
Quarkus による超音速な Spring アプリケーション開発
PDF
PDF
Lapp環境をソースからインストールする(debian)
PDF
OpenStackSDK with Ansible
PDF
.NET 5 勉強会 ~.NET Framework から .NET へ~
PDF
PDF
開発エンジニアがChefで テスト駆動サーバー設定してみた #biglobetechtalk
PDF
PDF
PDF
Walter ファミリーの紹介 at Shibuya.go#1
More Related Content
PDF
PDF
PDF
PDF
PDF
OpenCenterによるOpenStack自動構築
PDF
JOSUG2014 OpenStack 4th birthday party in Japan; the way of OpenStack API Dragon
PPT
PPT
What's hot
PPT
PPTX
PDF
PDF
超簡単!ActivePerlをWindows Serverにインストール
PDF
PDF
まっつんチャレンジ OSC出張編 45分でわかる PHP+Eclipseによるテスト駆動開発環境の構築
PPTX
Myfirst cloudfoundry intro_20161201
PPTX
How to deploy & operate OpenStack Production
PDF
Serverspec at Testing Framework Meeting
PPT
PPTX
Open shiftoriginquickstart clouddevelopercircle_20170920
PDF
PDF
Quarkus による超音速な Spring アプリケーション開発
PDF
PDF
Lapp環境をソースからインストールする(debian)
PDF
OpenStackSDK with Ansible
PDF
.NET 5 勉強会 ~.NET Framework から .NET へ~
PDF
PDF
開発エンジニアがChefで テスト駆動サーバー設定してみた #biglobetechtalk
PDF
Viewers also liked
PDF
PDF
Walter ファミリーの紹介 at Shibuya.go#1
PDF
PDF
3分でわかるAzureでのService Principal
PDF
PDF
PDF
Why my Go program is slow?
PDF
PDF
PDF
Introduction to ATDD with Cucumber and RSpec
PDF
Fluentd at Bay Area Kubernetes Meetup
PDF
PPTX
PDF
How To Write Middleware In Ruby
PDF
Embulk, an open-source plugin-based parallel bulk data loader
PDF
偶然にも500万個のSSH公開鍵を手に入れた俺たちは
PDF
ハイブリッドクラウドの現実とAzureの使いどころ
Similar to Serverspec at July Tech Festa 2013
PPTX
Serverspec at hbstudy #45
PDF
PDF
テスト駆動インフラ構築-Chefとserverspecを使ったインフラ自動化のすすめ-
PPTX
PDF
serverspecでサーバ環境のテストを書いてみよう
PDF
Chefを利用した運用省力化とDevOpsの取り組みについて
PDF
Using Chef for Infrastructure Automation of Ameba Pigg
PDF
KEY
Web Operations and Perl kansai.pm#14
PDF
Cloud Foundry: Open Platform as a Service
PDF
Infrastrucure as a CodeにおけるJenkinsの役割
PDF
PPTX
インフラ構築とテストについて(ITインフラ業務自動化現状確認会)
PPTX
[SAPPORO CEDEC] サービスの効果を高めるグリー内製ツールの技術と紹介
PDF
PDF
PDF
itamae + Serverspecで テスト駆動インフラやってみた #shibuyarb
PDF
サーバの構築作業や運用管理を自動化する「Chef」 (CADC研究レポート発表LT)
PDF
PDF
More from Gosuke Miyashita
PPTX
PPTX
PPTX
Maglica - A Simple Internal Cloud Tool at #techkayac
PPTX
PPTX
Inside Sqale's Backend at RubyConf Taiwan 2012
PPTX
PPTX
PPTX
Inside Sqale's Backend at YAPC::Asia Tokyo 2012
PPTX
Inside Sqale's Backend at Sapporo Ruby Kaigi 2012
PPT
Assurer - a pluggable server testing/monitoring framework
PPTX
Open Source System Administration Framework - Func
PPTX
PPTX
PPTX
PPT
Puppet Best Practices? at COOKPAD
PPT
How Danga::Socket handles asynchronous processing and how to write asynchrono...
PPT
Danga::Socketの非同期処理の仕組みとPerlbalで非同期処理するプラグインを書く方法
PPT
Xen Summit 2008 Tokyo - Operating Xen domains through LL(Perl/Python) with li...
PPT
関西オープンソース 2008 30days Albumの裏側
PPT
How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
Serverspec at July Tech Festa 2013 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 17. 18. 19. 20. 21. 22. 23. require 'chefspec'
describe 'http_server::default' do
let (:chef_run) {
ChefSpec::ChefRunner.new.converge
'http_server::default‘
}
it 'should install nginx' do
expect(chef_run).to install_package 'nginx'
end
it 'should start nginx' do
expect(chef_run).to start_service 'nginx'
end
end
24. 25. class TestNginx < MiniTest::Chef::TestCase
def test_package_is_installed
assert_installed package("nginx")
end
def test_service_is_running
assert_running service("nginx")
end
end
26. 27. 28. 29. 30. 31. 32. 33. 34. describe Array, "when empty" do
before do
@empty_array = []
end
it "should be empty" do
expect(@empty_array).to be_empty
end
it "should size 0" do
expect(@empty_array.size).to eq 0
end
end
35. 36. describe package('httpd') do
it { should be_installed }
end
describe service('httpd') do
it { should be_enabled }
it { should be_running }
end
describe port(80) do
it { should be_listening }
end
39. 40. 41. 42. 43. # yum install rubygems
# gem install serverspec rake
# serverspec-init
# rake spec
44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 89.