openshift-origin-controller 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of openshift-origin-controller might be problematic. Click here for more details.

@@ -26,7 +26,7 @@ class CartridgeCache
26
26
  FRAMEWORK_CART_NAMES = [#RHEL6 cartridges
27
27
  "python-2.6", "jenkins-1.4", "ruby-1.8", "ruby-1.9",
28
28
  "diy-0.1", "php-5.3", "jbossas-7", "jbosseap-6.0", "jbossews-1.0",
29
- "perl-5.10", "nodejs-0.6", "zend-5.6",
29
+ "jbossews-2.0", "perl-5.10", "nodejs-0.6", "zend-5.6",
30
30
  ]
31
31
  def self.cartridge_names(cart_type=nil)
32
32
  cart_names = cartridges.map{|c| c.name}
@@ -9,7 +9,7 @@
9
9
 
10
10
  Summary: Cloud Development Controller
11
11
  Name: rubygem-%{gem_name}
12
- Version: 1.3.2
12
+ Version: 1.3.3
13
13
  Release: 1%{?dist}
14
14
  Group: Development/Languages
15
15
  License: ASL 2.0
@@ -79,6 +79,18 @@ mkdir -p %{buildroot}/etc/openshift/
79
79
  %{gem_dir}/doc/%{gem_name}-%{version}
80
80
 
81
81
  %changelog
82
+ * Thu Jan 10 2013 Adam Miller <admiller@redhat.com> 1.3.3-1
83
+ - increased jenkins test timeout (bdecoste@gmail.com)
84
+ - Merge pull request #1134 from bdecoste/master
85
+ (dmcphers+openshiftbot@redhat.com)
86
+ - updated ews2 tests (bdecoste@gmail.com)
87
+ - Fix BZ892006: Make postgresql socket file access solvent and add tests for
88
+ postgres and mysql socket files. (pmorie@gmail.com)
89
+ - added ews2 tests (bdecoste@gmail.com)
90
+ - Refactor to use env var rather than output from hook (jhonce@redhat.com)
91
+ - Merge pull request #1083 from bdecoste/master (openshift+bot@redhat.com)
92
+ - re-enabed ews2 (bdecoste@gmail.com)
93
+
82
94
  * Tue Dec 18 2012 Adam Miller <admiller@redhat.com> 1.3.2-1
83
95
  - - oo-setup-broker fixes: - Open dns ports for access to DNS server from
84
96
  outside the VM - Turn on SELinux booleans only if they are off (Speeds up
@@ -0,0 +1,61 @@
1
+ @runtime_extended
2
+ @runtime_extended2
3
+ @not-origin
4
+ Feature: Cartridge Lifecycle JBossEWS2.0 Verification Tests
5
+ Scenario Outline: Application Creation
6
+ Given the libra client tools
7
+ And an accepted node
8
+ When <app_count> <type> applications are created
9
+ Then the applications should be accessible
10
+
11
+ Scenarios: Application Creation Scenarios
12
+ | app_count | type |
13
+ | 1 | jbossews-2.0 |
14
+
15
+ Scenario Outline: Application Modification
16
+ Given an existing <type> application
17
+ When the application is changed
18
+ Then it should be updated successfully
19
+ And the application should be accessible
20
+
21
+ Scenarios: Application Modification Scenarios
22
+ | type |
23
+ | jbossews-2.0 |
24
+
25
+ Scenario Outline: Application Restarting
26
+ Given an existing <type> application
27
+ When the application is restarted
28
+ Then the application should be accessible
29
+
30
+ Scenarios: Application Restart Scenarios
31
+ | type |
32
+ | jbossews-2.0 |
33
+
34
+ Scenario Outline: Application Tidy
35
+ Given an existing <type> application
36
+ When I tidy the application
37
+ Then the application should be accessible
38
+
39
+ Scenarios: Application Tidy Scenarios
40
+ | type |
41
+ | jbossews-2.0 |
42
+
43
+ Scenario Outline: Application Snapshot
44
+ Given an existing <type> application
45
+ When I snapshot the application
46
+ Then the application should be accessible
47
+ When I restore the application
48
+ Then the application should be accessible
49
+
50
+ Scenarios: Application Snapshot Scenarios
51
+ | type |
52
+ | jbossews-2.0 |
53
+
54
+ Scenario Outline: Application Destroying
55
+ Given an existing <type> application
56
+ When the application is destroyed
57
+ Then the application should not be accessible
58
+
59
+ Scenarios: Application Destroying Scenarios
60
+ | type |
61
+ | jbossews-2.0 |
@@ -0,0 +1,10 @@
1
+ @runtime_extended3
2
+ Feature: Mysql extended tests
3
+
4
+ Scenario: Use socket file to connect to database
5
+ Given a new php-5.3 type application
6
+ And I embed a mysql-5.1 cartridge into the application
7
+ And the application is made publicly accessible
8
+
9
+ When I select from the mysql database using the socket file
10
+ Then the select result from the mysql database should be valid
@@ -0,0 +1,10 @@
1
+ @runtime_extended3
2
+ Feature: Postgresql extended tests
3
+
4
+ Scenario: Use socket file to connect to database
5
+ Given a new php-5.3 type application
6
+ And I embed a postgresql-8.4 cartridge into the application
7
+ And the application is made publicly accessible
8
+
9
+ When I select from the postgresql database using the socket file
10
+ Then the select result from the postgresql database should be valid
@@ -1,7 +1,7 @@
1
1
  @runtime
2
2
  @not-origin
3
- Feature: Cartridge Runtime Standard Checks (JBoss EWS2.0)
3
+ Feature: Cartridge Runtime Standard Checks (JBoss EWS1.0)
4
4
 
5
5
  @runtime2
6
- Scenario: JBoss EWS2.0 cartridge checks
6
+ Scenario: JBoss EWS1.0 cartridge checks
7
7
  Given a new jbossews-1.0 application, verify it using java
@@ -0,0 +1,7 @@
1
+ @runtime
2
+ @not-origin
3
+ Feature: Cartridge Runtime Standard Checks (JBoss EWS2.0)
4
+
5
+ @runtime2
6
+ Scenario: JBoss EWS2.0 cartridge checks
7
+ Given a new jbossews-2.0 application, verify it using java
@@ -14,7 +14,7 @@ When /^I configure a hello_world diy application with jenkins enabled$/ do
14
14
 
15
15
  register_user(@app.login, @app.password) if $registration_required
16
16
  if rhc_create_domain(@app)
17
- @diy_app = rhc_create_app(@app, false, '--enable-jenkins --timeout=120')
17
+ @diy_app = rhc_create_app(@app, false, '--enable-jenkins --timeout=240')
18
18
  @diy_app.create_app_code.should be == 0
19
19
  else
20
20
  raise "Failed to create domain: #{@app}"
@@ -0,0 +1,14 @@
1
+ When /^I select from the mysql database using the socket file$/ do
2
+ cmd = ssh_command("-o LogLevel=quiet \"/usr/bin/mysql -S \\$OPENSHIFT_MYSQL_DB_SOCKET -u \\$OPENSHIFT_MYSQL_DB_USERNAME --password=\\$OPENSHIFT_MYSQL_DB_PASSWORD --batch --silent --execute='select 1'\"")
3
+
4
+ $logger.debug "Running #{cmd}"
5
+
6
+ output = `#{cmd}`
7
+ @mysql_query_result = output.strip
8
+
9
+ $logger.debug "Output: #{output}"
10
+ end
11
+
12
+ Then /^the select result from the mysql database should be valid$/ do
13
+ @mysql_query_result.should be == "1"
14
+ end
@@ -0,0 +1,14 @@
1
+ When /^I select from the postgresql database using the socket file$/ do
2
+ cmd = ssh_command("-o LogLevel=quiet \"PGPASSWORD=\\$OPENSHIFT_POSTGRESQL_DB_PASSWORD /usr/bin/psql -U admin -h \\$OPENSHIFT_POSTGRESQL_DB_SOCKET -d #{@app.name} -c 'select 1' -t\"")
3
+
4
+ $logger.debug "Running #{cmd}"
5
+
6
+ output = `#{cmd}`
7
+ @postgresql_query_result = output.strip
8
+
9
+ $logger.debug "Output: #{output}"
10
+ end
11
+
12
+ Then /^the select result from the postgresql database should be valid$/ do
13
+ @postgresql_query_result.should be == "1"
14
+ end
@@ -133,6 +133,7 @@ jenkins_build = #{@jenkins_build}
133
133
  when "jbossas-7" then "src/main/webapp/index.html"
134
134
  when "jbosseap-6.0" then "src/main/webapp/index.html"
135
135
  when "jbossews-1.0" then "src/main/webapp/index.html"
136
+ when "jbossews-2.0" then "src/main/webapp/index.html"
136
137
  when "nodejs-0.6" then "index.html"
137
138
  end
138
139
  end
@@ -5,6 +5,10 @@ require 'open4'
5
5
  require 'benchmark'
6
6
 
7
7
  module CommandHelper
8
+ def getenv(uuid, var)
9
+ run_stdout("source /var/lib/openshift/#{uuid}/.env/#{var};echo $#{var}").chomp!
10
+ end
11
+
8
12
  def run_stdout(cmd)
9
13
  $logger.info("Running: #{cmd}")
10
14
 
@@ -233,7 +237,7 @@ module CommandHelper
233
237
  time = Benchmark.realtime do
234
238
  result = run_stdout("#{$rhc_script} cartridge add -l #{app.login} -a #{app.name} -p #{app.password} -c #{type} -d")
235
239
  end
236
- $logger.info { "Embed #{type} into #{app.inspect}: OUTPUT\n#{result}" }
240
+ $logger.info { "Embed #{type} into #{app.inspect}: OUTPUT\n<<#{result}>>\n" }
237
241
  log_event "#{time} ADD_EMBED_CART #{app.name} #{type} #{app.login}"
238
242
  if type.start_with?('mysql-')
239
243
  # Recent versions of rhc now return a connection URL in this format:
@@ -244,14 +248,10 @@ module CommandHelper
244
248
  # directory to get the actual values to attach to the app.
245
249
 
246
250
  # Source the env var values from the gear directory
247
- host_val = `source /var/lib/openshift/#{app.uid}/.env/OPENSHIFT_MYSQL_DB_HOST;echo $OPENSHIFT_MYSQL_DB_HOST`.chomp!
248
- port_val = `source /var/lib/openshift/#{app.uid}/.env/OPENSHIFT_MYSQL_DB_PORT;echo $OPENSHIFT_MYSQL_DB_PORT`.chomp!
249
-
250
- # Assign the hostname ourselves, in host:port format
251
- app.mysql_hostname = "#{host_val}:#{port_val}"
252
- app.mysql_user = /Username\s*=\s*(\S+)/.match(result)[1]
253
- app.mysql_password = /Password\s*=\s*(\S+)/.match(result)[1]
254
- app.mysql_database = /Database Name\s*=\s*(\S+)/.match(result)[1]
251
+ app.mysql_hostname = getenv(app.uid, 'OPENSHIFT_MYSQL_DB_HOST')
252
+ app.mysql_user = getenv(app.uid, 'OPENSHIFT_MYSQL_DB_USERNAME')
253
+ app.mysql_password = getenv(app.uid, 'OPENSHIFT_MYSQL_DB_PASSWORD')
254
+ app.mysql_database = getenv(app.uid, 'OPENSHIFT_APP_NAME')
255
255
 
256
256
  app.mysql_hostname.should_not be_nil
257
257
  app.mysql_user.should_not be_nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openshift-origin-controller
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 2
10
- version: 1.3.2
9
+ - 3
10
+ version: 1.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Krishna Raman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-12-18 00:00:00 -05:00
18
+ date: 2013-01-10 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -339,8 +339,10 @@ files:
339
339
  - test/cucumber/step_definitions/cartridge-cron_steps.rb
340
340
  - test/cucumber/step_definitions/api_steps.rb
341
341
  - test/cucumber/step_definitions/cartridge-postgresql_steps.rb
342
+ - test/cucumber/step_definitions/cartridge-postgresql-extended_steps.rb
342
343
  - test/cucumber/step_definitions/application-estimate-steps.rb
343
344
  - test/cucumber/step_definitions/idler_steps.rb
345
+ - test/cucumber/step_definitions/cartridge-mysql-extended_steps.rb
344
346
  - test/cucumber/step_definitions/trap-user_steps.rb
345
347
  - test/cucumber/step_definitions/cartridge-switchyard_steps.rb
346
348
  - test/cucumber/step_definitions/cartridge-jenkins_steps.rb
@@ -357,8 +359,10 @@ files:
357
359
  - test/cucumber/cartridge-postgresql.feature
358
360
  - test/cucumber/cartridge-runtime-standard-jbosseap.feature
359
361
  - test/cucumber/embedded.feature
362
+ - test/cucumber/cartridge-runtime-extended-postgresql.feature
360
363
  - test/cucumber/cartridge-runtime-standard-jbossews10.feature
361
364
  - test/cucumber/cartridge-lifecycle-jenkins.feature
365
+ - test/cucumber/cartridge-runtime-extended-mysql.feature
362
366
  - test/cucumber/cartridge-phpmyadmin.feature
363
367
  - test/cucumber/application-estimate.feature
364
368
  - test/cucumber/cartridge-lifecycle-python.feature
@@ -379,12 +383,14 @@ files:
379
383
  - test/cucumber/support/command_helper.rb
380
384
  - test/cucumber/support/unused.rb
381
385
  - test/cucumber/support/env.rb
386
+ - test/cucumber/cartridge-runtime-standard-jbossews20.feature
382
387
  - test/cucumber/cartridge-lifecycle-ruby18.feature
383
388
  - test/cucumber/rest-applications.feature
384
389
  - test/cucumber/trap-user.feature
385
390
  - test/cucumber/rest-quickstarts.feature
386
391
  - test/cucumber/cartridge-runtime-extended-python.feature
387
392
  - test/cucumber/cartridge-lifecycle-nodejs.feature
393
+ - test/cucumber/cartridge-lifecycle-jbossews20.feature
388
394
  - test/cucumber/cartridge-runtime-standard-perl.feature
389
395
  - test/cucumber/cartridge-runtime-extended-db.feature
390
396
  - test/cucumber/rest-workflow.feature
@@ -485,8 +491,10 @@ test_files:
485
491
  - test/cucumber/step_definitions/cartridge-cron_steps.rb
486
492
  - test/cucumber/step_definitions/api_steps.rb
487
493
  - test/cucumber/step_definitions/cartridge-postgresql_steps.rb
494
+ - test/cucumber/step_definitions/cartridge-postgresql-extended_steps.rb
488
495
  - test/cucumber/step_definitions/application-estimate-steps.rb
489
496
  - test/cucumber/step_definitions/idler_steps.rb
497
+ - test/cucumber/step_definitions/cartridge-mysql-extended_steps.rb
490
498
  - test/cucumber/step_definitions/trap-user_steps.rb
491
499
  - test/cucumber/step_definitions/cartridge-switchyard_steps.rb
492
500
  - test/cucumber/step_definitions/cartridge-jenkins_steps.rb
@@ -503,8 +511,10 @@ test_files:
503
511
  - test/cucumber/cartridge-postgresql.feature
504
512
  - test/cucumber/cartridge-runtime-standard-jbosseap.feature
505
513
  - test/cucumber/embedded.feature
514
+ - test/cucumber/cartridge-runtime-extended-postgresql.feature
506
515
  - test/cucumber/cartridge-runtime-standard-jbossews10.feature
507
516
  - test/cucumber/cartridge-lifecycle-jenkins.feature
517
+ - test/cucumber/cartridge-runtime-extended-mysql.feature
508
518
  - test/cucumber/cartridge-phpmyadmin.feature
509
519
  - test/cucumber/application-estimate.feature
510
520
  - test/cucumber/cartridge-lifecycle-python.feature
@@ -525,12 +535,14 @@ test_files:
525
535
  - test/cucumber/support/command_helper.rb
526
536
  - test/cucumber/support/unused.rb
527
537
  - test/cucumber/support/env.rb
538
+ - test/cucumber/cartridge-runtime-standard-jbossews20.feature
528
539
  - test/cucumber/cartridge-lifecycle-ruby18.feature
529
540
  - test/cucumber/rest-applications.feature
530
541
  - test/cucumber/trap-user.feature
531
542
  - test/cucumber/rest-quickstarts.feature
532
543
  - test/cucumber/cartridge-runtime-extended-python.feature
533
544
  - test/cucumber/cartridge-lifecycle-nodejs.feature
545
+ - test/cucumber/cartridge-lifecycle-jbossews20.feature
534
546
  - test/cucumber/cartridge-runtime-standard-perl.feature
535
547
  - test/cucumber/cartridge-runtime-extended-db.feature
536
548
  - test/cucumber/rest-workflow.feature