Slide 20
Slide 20 text
Ruby Ͱར༻Մೳ
ҎԼ, Rspec ʹͯςετ࣮ߦલʹ moto_server Λىಈ͍ͯ͠Δ
ྫ.
describe 'MyEc2' do
before(:all) do
@output, @input = PTY.spawn("moto_server ec2")
client = Aws::EC2::Client.new(region: 'us-west-2',
endpoint: 'http://127.0.0.1:5000',
profile: 'mock_profile')
res = client.run_instances({image_id: 'ami-20d1c544',
min_count: 3,
max_count: 3})
...
PyFukuoka #4 | moto Λ 'ͬͱ' ͓͏ ~ Πϯϑϥ୲ͰςετΛ. ͜ͷࢥ͍, ఱਆͷӉ (ͦΒ) ʹڹ͚ ~ 20