view · edit · sidebar · attach · print · history

Index>

20160822-oekk-css

Summary

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

Commits

Index

Use internal CSS for OEKK

To be able to test http://oekk.oddb-ci2.dyndns.org/ I add the hostname oekk.oddb-ci2.dyndns.org 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/oddb.org/doc
  #ServerName oekk.oddb.org                            
  ServerName oekk.oddb-ci2.dyndns.org
  DirectoryIndex index.rbx 
  RubyAddPath /usr/local/bin/ruby186/lib/ruby/gems/1.8/gems/rclconf-1.0.0/lib
  RubyAddPath /var/www/oddb.org/src
  RubyRequire 'sbsm/trans_handler'
  SetHandler ruby-object
  RubyTransHandler SBSM::FlavoredTransHandler.instance
  ErrorLog "|/usr/sbin/cronolog -l /var/www/oddb.org/log/oekk/error_log /var/www/oddb.org/log/oekk/%Y/%m/%d/error_log"
  CustomLog "|/usr/sbin/cronolog -l /var/www/oddb.org/log/oekk/access_log /var/www/oddb.org/log/oekk/%Y/%m/%d/access_log" combined
  SetEnv DEFAULT_FLAVOR oekk
  AddDefaultCharset UTF-8        

  Alias /robots.txt /var/www/oddb.org/doc/robots.txt

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

</VirtualHost>    

<VirtualHost *:80>                  
  DocumentRoot /var/www/oddb.org/webalizer/oekk       
  ServerName webalizer.oekk.oddb.org
  DirectoryIndex index.html        
</VirtualHost>                                       

Added the missing directory /var/www/oddb.org/webalizer/oekk 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 virbac.bbmb.ch use Ruby 2.3.1 on fastpower.

  • Ensure, that virbac.bbmb.ngiger.ch passes all tests
  • Stop services virbac.bbmb.ch and virbac.bbmb.ch-yus
  • Migrate /service/virbac.bbmb.ch-yus 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/virbac.bbmb.ch/etc/yus.yml
  • Remarked that the current /var/www/virbac.bbmb.ch/doc/index.rbx 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/virbac.bbmb.ch
  • Backup /service/virbac.bbmb.ch/run and /service/virbac.bbmb.ch-yus/run (to *.bkp file in the same directory)
  • Adapt /service/virbac.bbmb.ch-yus/run to use the ruby231
  • Restart and verify that the service starts for virbac.bbmb.ch-yus
  • Adapt /service/virbac.bbmb.ch/run to use the ruby231
  • Backup and adapt /etc/apache2/vhosts.d/virbac.bbmb.ch.conf for Ruby 2.3.1
  • Restart and verify that the service starts for virbac.bbmb.ch

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    \\_ ")
  end

to get a stacktrace of all running.threads.

Test importing E-Mails for vetoquinol

Creating a test for the following https://mail.google.com/mail/u/3/#inbox/156b030e0bf93119. 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