Fwd: Re: Rails 3.2 in Fedora 18
by Vít Ondruch
Hi guys,
Just to let you know that we are moving forward with Rails in F18.
Aeolus might need some tweaks.
Vit
-------- Původní zpráva --------
Předmět: Re: Rails 3.2 in Fedora 18
Datum: Tue, 10 Jul 2012 06:43:59 -0400 (EDT)
Od: Bohuslav Kabrda <bkabrda(a)redhat.com>
Přeposláno - Komu: Ruby SIG mailing list
<ruby-sig(a)lists.fedoraproject.org>
Komu: Ruby SIG mailing list <ruby-sig(a)lists.fedoraproject.org>
So, the Rails 3.2 Feature has been approved on last fesco meeting. Me and Vit have already started working on the first packages that need to be created before actually updating the Rails packages.
On the feature page [1], you can find a list of what has to be updated and packaged for the Rails 3.2 stack. If you'd like to help, feel free to assign yourself by writing your name to the table in [2] and don't forget to update the status of your task.
Also, some updates and rebuilds (to run the tests with updated versions) of the dependent packages will be needed. Find them in [3]. I'd like to ask all of you to update/rebuild your packages when the updated dependencies are built.
One minor issue: rubygem-scruffy claims that it needs bundler < 3, but Rails 3.2 need bundler > 3. So it will either have to be patched (at least the gemspec) to work with new bundler or deprecated. There have been no new versions of scruffy for more than one year. Scruffy is owned by mmorsi, so Mo, could you please have a look at it?
Thanks,
Slavek.
----- Original Message -----
> Hi all,
> I just created a feature page for Rails 3.2 in Fedora 18 [1] - I
> figured we will need to update, as the current 3.0 is getting quite
> old (I'm assuming nobody is against this, right?). I'd be glad if
> you could give me some comments and suggestions before submitting
> the feature to FESCo.
>
> Thanks.
>
> --
> Regards,
> Bohuslav "Slavek" Kabrda.
>
> [1] https://fedoraproject.org/wiki/Features/Rails_3.2
--
Regards,
Bohuslav "Slavek" Kabrda.
[1] https://fedoraproject.org/wiki/Features/Rails_3.2
[2] https://fedoraproject.org/wiki/Features/Rails_3.2#Scope
[3] https://fedoraproject.org/wiki/Features/Rails_3.2#Dependencies
_______________________________________________
ruby-sig mailing list
ruby-sig(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
11 years, 9 months
Status of OpenStack Support
by Marcus Moeller
Hi all,
I am testing the latest Aeolus Release 0.10.0 and wonder about the
status of the OpenStack Support.
I can define a new Provider for OpenStack, and have to enter the
Openstack API_ENTRYPOINT, but no matter which url I povide here (I
assume that I have to provide the public keystone api url, listening on
port 5000, e.g. http://myhost:5000/v2.0), I got an error:
1 error prohibited this Provider from being saved
Url translation missing:
en.activerecord.errors.models.provider.attributes.url.invalid_framework
So has this feature been implemented, yet?
Greets
Marcus
11 years, 9 months
Thread limit in ImageFactory?
by Justin Clift
Hi guys,
Anyone know if these warnings in the ImageFactory log file are
important?
2012-07-12 15:09:34,875 DEBUG paste.httpserver.ThreadPool thread(worker 20) Message: Thread 139904885430016 processed 101 requests (limit 100); stopping thread
2012-07-12 15:09:34,875 DEBUG paste.httpserver.ThreadPool thread(worker 30) Message: Started new worker 139904327390976: Voluntary replacement for thread 139904885430016
2012-07-12 15:10:04,872 DEBUG paste.httpserver.ThreadPool thread(MainThread) Message: Added task (0 tasks queued)
2012-07-12 15:10:04,876 DEBUG paste.httpserver.ThreadPool thread(worker 21) Message: Thread 139904306734848 processed 101 requests (limit 100); stopping thread
2012-07-12 15:10:04,876 DEBUG paste.httpserver.ThreadPool thread(worker 31) Message: Started new worker 139904885430016: Voluntary replacement for thread 139904306734848
2012-07-12 15:10:45,775 DEBUG paste.httpserver.ThreadPool thread(MainThread) Message: Added task (0 tasks queued)
They seem to happen when launching several deployments at
the same time (5 x 2 instance deployments).
The deployments themselves all work fine. Can interact with
the deployed software, etc.
Meanwhile Conductor itself periodically says "Instance vanished"
for them, before coming good again a while later. (repeatedly)
Regards and best wishes,
Justin Clift
--
Aeolus Community Manager
http://www.aeolusproject.org
11 years, 9 months
Sorry for polluting list
by Petr Blaho
I am sorry for polluting mailing list with some partial patchsets.
I have issues with git send-mail.
I will send that patch as soon as I resolve this git issues...
--
With regards
Petr Blaho
11 years, 9 months
[PATCH conductor 2/3] Rspec tests for Provider Accounts API - show
by Petr Blaho
From: Petr Blaho <pblaho(a)redhat.com>
https://www.aeolusproject.org/redmine/issues/3497
Adds rspec tests for Provider Accounts API - show
action
---
.../provider_accounts_controller_spec.rb | 53 +++++++++++++++++++-
1 files changed, 52 insertions(+), 1 deletions(-)
diff --git a/src/spec/controllers/provider_accounts_controller_spec.rb b/src/spec/controllers/provider_accounts_controller_spec.rb
index a88bd25..d1c8241 100644
--- a/src/spec/controllers/provider_accounts_controller_spec.rb
+++ b/src/spec/controllers/provider_accounts_controller_spec.rb
@@ -24,7 +24,6 @@ describe ProviderAccountsController do
# TODO: implement more attributes checks
subject { Nokogiri::XML(response.body) }
context "list of provider accounts" do
- #let(:xml_provider_accounts) { [subject['provider_accounts']['provider_account']].flatten.compact }
let(:xml_provider_accounts) { subject.xpath('//provider_accounts/provider_account') }
context "number of provider accounts" do
it { xml_provider_accounts.size.should be_eql(number_of_provider_accounts) }
@@ -242,6 +241,58 @@ describe ProviderAccountsController do
end
end # #index
+
+ describe "#show" do
+ context "when requested provider account exists" do
+
+ before(:each) do
+ ProviderAccount.stub(:find).and_return(provider_account)
+
+ get :show, :id => 1
+ end
+
+ let(:provider_account) { FactoryGirl.create(:mock_provider_account); ProviderAccount.last }
+
+ it_behaves_like "http OK"
+ it_behaves_like "responding with XML"
+
+ context "XML body" do
+ # TODO: implement more attributes checks
+ #subject { Hash.from_xml(response.body) }
+ subject { Nokogiri::XML(response.body) }
+ let(:xml_provider_account) { subject.xpath("//provider_account[@id=\"#{provider_account.id}\"]") }
+ it "should have correct provider account" do
+ xml_provider_account.xpath('@href').text.should be_eql(api_provider_account_url(provider_account))
+ end
+ end
+
+ end # when requested provider account exists
+
+ context "when requested provider account does not exist" do
+
+ before(:each) do
+ pa = ProviderAccount.find_by_id(1)
+ pa.delete if pa
+ get :show, :id => 1
+ end
+
+ it_behaves_like "http Not Found"
+ it_behaves_like "responding with XML"
+
+ context "XML body" do
+
+ subject { Nokogiri::XML(response.body) }
+
+ it {
+ subject.xpath('//error').size.should be_eql(1)
+ subject.xpath('//error/code').text.should be_eql('RecordNotFound')
+ subject.xpath('//error/message').text.should be_eql("Couldn't find ProviderAccount with ID=1")
+ }
+
+ end
+
+ end
+ end # #show
end
end
--
1.7.7.6
11 years, 9 months
[PATCH conductor 1/3] Feature for Provider Accounts API - show action
by Petr Blaho
From: Petr Blaho <pblaho(a)redhat.com>
https://www.aeolusproject.org/redmine/issues/3425
Adds cucumber scenarios for Provider Accounts API -
show action
---
src/features/provider_account_api.feature | 9 +++++++++
.../step_definitions/provider_account_api_steps.rb | 20 ++++++++++++++++++++
.../step_definitions/provider_account_steps.rb | 4 ++++
.../step_definitions/provider_api_steps.rb | 12 +++---------
4 files changed, 36 insertions(+), 9 deletions(-)
diff --git a/src/features/provider_account_api.feature b/src/features/provider_account_api.feature
index adff4ef..a4098b3 100644
--- a/src/features/provider_account_api.feature
+++ b/src/features/provider_account_api.feature
@@ -20,3 +20,12 @@ Feature: Manage Provider Accounts via API
Given the specified provider does not exist in the system
When I request a list of provider accounts for that provider returned as XML
Then I should receive Not Found error
+
+ Scenario: Get details for provider account as XML
+ Given there is a provider account
+ When I ask for details of that provider account as XML
+ Then I should receive details of that provider account as XML
+
+ Scenario: Get details for non existing provider account
+ When I ask for details of non existing provider account
+ Then I should receive Not Found error
diff --git a/src/features/step_definitions/provider_account_api_steps.rb b/src/features/step_definitions/provider_account_api_steps.rb
index ce9b6af..4e2c682 100644
--- a/src/features/step_definitions/provider_account_api_steps.rb
+++ b/src/features/step_definitions/provider_account_api_steps.rb
@@ -26,3 +26,23 @@ Then /^I should receive list of provider accounts for that provider as XML$/ do
xml_body.xpath('//provider_accounts/provider_account').size.should be_eql(3)
# TODO: test that provider accounts listed is for that provider only
end
+
+When /^I ask for details of that provider account as XML$/ do
+ header 'Accept', 'application/xml'
+ get api_provider_account_path(@provider_account)
+end
+
+Then /^I should receive details of that provider account as XML$/ do
+ response = last_response
+ response.headers['Content-Type'].should include('application/xml')
+ response.status.should be_eql(200)
+ xml_body = Nokogiri::XML(response.body)
+ xml_body.xpath('//provider_account').size.should be_eql(1)
+end
+
+When /^I ask for details of non existing provider account$/ do
+ header 'Accept', 'application/xml'
+ provider_account = ProviderAccount.find_by_id(1)
+ provider_account.delete if provider_account
+ get api_provider_account_path(1)
+end
diff --git a/src/features/step_definitions/provider_account_steps.rb b/src/features/step_definitions/provider_account_steps.rb
index e61e228..ffec799 100644
--- a/src/features/step_definitions/provider_account_steps.rb
+++ b/src/features/step_definitions/provider_account_steps.rb
@@ -57,6 +57,10 @@ Given /^there is a provider account named "([^"]*)"$/ do |label|
@provider_account = FactoryGirl.create(:mock_provider_account, :provider => @provider, :label => label)
end
+Given /^there is a provider account$/ do
+ @provider_account = FactoryGirl.create(:mock_provider_account, :provider => @provider)
+end
+
Given /^there is a second provider account named "([^"]*)"$/ do |label|
@provider = FactoryGirl.create(:provider, :name => 'secondprovider')
@provider_account = FactoryGirl.create(:provider_account, :provider => @provider, :label => label)
diff --git a/src/features/step_definitions/provider_api_steps.rb b/src/features/step_definitions/provider_api_steps.rb
index 40eb3c3..ac03d5d 100644
--- a/src/features/step_definitions/provider_api_steps.rb
+++ b/src/features/step_definitions/provider_api_steps.rb
@@ -38,14 +38,6 @@ When /^I ask for details of non existing provider as XML$/ do
get api_provider_path(1)
end
-Then /^I should receive Not Found error$/ do
- response = last_response
- response.headers['Content-Type'].should include('application/xml')
- response.status.should be_eql(404)
- xml_body = Nokogiri::XML(response.body)
- xml_body.xpath('//error').size.should be_eql(1)
-end
-
When /^I create provider with correct data via XML$/ do
header 'Accept', 'application/xml'
header 'Content-Type', 'application/xml'
@@ -104,10 +96,12 @@ When /^I attempt to delete the provider$/ do
delete api_provider_path(@provider)
end
-Then /^I should receive a Provider Not Found error$/ do
+Then /^I should received?(?: a)?(?: .+)? Not Found error$/ do
response = last_response
response.headers['Content-Type'].should include('application/xml')
response.status.should be_eql(404)
+ xml_body = Nokogiri::XML(response.body)
+ xml_body.xpath('//error').size.should be_eql(1)
end
When /^I update that provider with correct data via XML$/ do
--
1.7.7.6
11 years, 9 months