view · edit · sidebar · attach · print · history




  • Use internal CSS for OEKK
  • finish virbac for Ruby 2.3.1
  • Test importing E-Mails for vetoquinol
  • Keep in Mind



Use internal CSS for OEKK

To be able to test I add the hostname to /etc/conf.d/hostname and restarted the hostname daemon. Also added a file oekk.conf in /etc/apache2/vhost.d with the content

<VirtualHost *:80>                
  DocumentRoot /var/www/
  DirectoryIndex index.rbx 
  RubyAddPath /usr/local/bin/ruby186/lib/ruby/gems/1.8/gems/rclconf-1.0.0/lib
  RubyAddPath /var/www/
  RubyRequire 'sbsm/trans_handler'
  SetHandler ruby-object
  RubyTransHandler SBSM::FlavoredTransHandler.instance
  ErrorLog "|/usr/sbin/cronolog -l /var/www/ /var/www/"
  CustomLog "|/usr/sbin/cronolog -l /var/www/ /var/www/" combined
  AddDefaultCharset UTF-8        

  Alias /robots.txt /var/www/

  RewriteEngine On
  RewriteRule ^/(..)/?$ /$1/ [PT]
  RewriteRule ^/(..)/(oekk)(.*) /$1/oekk$3 [PT]
  RewriteRule ^/(..)/([^/]*)/?(.*) http://$$1/$2/$3 [R,L]


<VirtualHost *:80>                  
  DocumentRoot /var/www/       
  DirectoryIndex index.html        

Added the missing directory /var/www/ and restarted apache2 and oddb-ci2. Tested with

Pushed the commit Use changed OEKK css

This did not work, as external_css was still enabled. Fixed with commit Fixed loading oekk

finish virbac for Ruby 2.3.1

The following task must be done to make use Ruby 2.3.1 on fastpower.

  • Ensure, that passes all tests
  • Stop services and
  • Migrate /service/ to use ruby 2.3.1 (we will use /usr/local/share/src/yus-2.3.1 as checkout instead of /usr/local/share/src/yus)
  • Migrate the database to utf-8 with cd /usr/local/share/src/yus-2.3.1 sudo -u bbmb /usr/local/bin/ruby231 yus_migrate_to_utf_8 config=/var/www/
  • Remarked that the current /var/www/ has the line require 'encoding/character/utf-8 commented out and is at commit 31c7fb6d4775e4997f48213bf08f40daa21dbe83 Updated spelling in lib/bbmb/html/util/lookandfeel.rb
  • Pull changes for /var/www/
  • Backup /service/ and /service/ (to *.bkp file in the same directory)
  • Adapt /service/ to use the ruby231
  • Restart and verify that the service starts for
  • Adapt /service/ to use the ruby231
  • Backup and adapt /etc/apache2/vhosts.d/ for Ruby 2.3.1
  • Restart and verify that the service starts for

But first we migrate the existing selenium test to watir (using a real instance of virbac). Done with login test under watir.

Converted the test from test_login.rb which do not require a mocked implementation of the database. Added a Rakefile to be able to run "rake test". Pushed commit Added watir tests for login.

Now I want to run a stub of the virbac (which is already present under test/stub) and of the http_server (described by Hannes compatibility-brainfuck for integrating Apache-SBSM-Requests with WEBrick)

When connecting to my newly started web server (at localhost:4444), I do not get an answer why? (It simply hangs.) Using

Thread.list.each do |thread|
    STDERR.puts "Thread-#{thread.object_id.to_s(36)}"
    STDERR.puts thread.backtrace.join("\n    \\_ ")

to get a stacktrace of all running.threads.

Test importing E-Mails for vetoquinol

Creating a test for the following Must test

  • That the email gets separated correctly
  • That the attachements are parsed correctly

Made test for splitting the e-mail. This works fine. Working on reading the articles (plain ascii) and the custormer (ISO-8859-1).

view · edit · sidebar · attach · print · history
Page last modified on August 22, 2016, at 04:50 PM