Sha256: ed8f333c2c9e801e3c03aca5aa9de0c2ca8fc2f650795f8e9ae0622c8d015c40
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
require 'spec_helper' describe 'servers' do let!(:client) { create_client } let!(:user) { client.users.create!(name: Faker::Name.name, email: Faker::Internet.email) } let!(:account) { client.accounts.create!(owner: user, name: Faker::Name.name) } let!(:provider) { account.providers.create!(type: "aws").resource! } context "with a server", :mock_only do let!(:environment) { create_environment(account: account, name: Faker::Name.name) } before(:each) do pending "adding servers to environments is not yet implemented" another_server = create_server(client, :environment => environment, :provider => provider, :provisioned_id => "i-a1000fce", :state => "running") create_server_event(client, :type => "member-failed", :server => another_server) end it "should list server events" do server = create_server(environment: environment) event = create_server_event(client, type: "memer-failed", server: server) expect(server.events.to_a).to eq([event]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.6.6 | spec/server_events_spec.rb |
ey-core-3.4.5 | spec/server_events_spec.rb |
ey-core-3.6.5 | spec/server_events_spec.rb |