~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/t/000--init.t

  • Committer: Bazaar Package Importer
  • Author(s): Michael Lustfield, Micheal Lustfield, Kartik Mistry
  • Date: 2011-03-03 23:39:07 UTC
  • mfrom: (4.2.29 sid)
  • Revision ID: james.westby@ubuntu.com-20110303233907-y48yifhfnn5qjuxz
Tags: 0.8.54-4
[Micheal Lustfield]
* debian/nginx-{full,light,extras}.default:
  + Added comment about alternative to ULIMIT.
* debian/nginx-{full,light,extras}.init.d:
  + Added quotes around a test variable. (Closes: #610946, LP: #699736)
* debian/patches/609343-log-time-iso8601.diff:
  + Added patch to add $time_iso8601 variable to logs. (Closes: #609343)
* Clean up old logrotate files. (Closes: #608983, Closes: #610289)
  + Added Files:
    - debian/nginx-common.preinst
  + Modified Files:
    - debian/rules
  + Moved debian/nginx-common.logrotate to debian/logrotate.
* Added common files to nginx-common package. (Closes: #610290)
  + Removed Files:
    - debian/nginx-full.dirs
    - debian/nginx-light.dirs
    - debian/nginx-full.install
    - debian/nginx-light.install
    - debian/nginx-extras.install
    - debian/nginx.*
  + Added Files:
    - debian/nginx-common.default
    - debian/nginx-common.dirs
    - debian/nginx-common.init.d
    - debian/nginx-common.install
    - debian/nginx-common.manpages
    - debian/logrotate
  + Modified Files:
    - debian/nginx-extras.dirs
    - debian/control
    - debian/rules
* debian/nginx-*.install: (Closes: #609797)
  + Removed NEWS.Debian from nginx-{full,light,extras}.install.
  + Added NEWS.Debian to nginx-common.install.
* nginx-common.postinst:
  + Enforce /var/log/nginx mode and user:group. (Closes: #610983)
  + Enforce /var/log/nginx/*.log mode and user:group. (Closes: #612832)
* debian/rules:
  + Added --with-file-aio to nginx-extras. (Closes: #613175)
  + Removed split clients and user id modules from nginx-light.
* debian/conf/sites-available/default:
  + Fixed a minor typo ( s/Quickstart/QuickStart/ ). (Closes: #613355)
* debian/conf/mime.types:
  + Changed xml type to application/xhtml+xml. (Closes: #613851)
* debian/help/docs/fcgiwrap:
  + Removed Ubuntu specific line in docs. (Closes: #614987)
* debian/conf/sites-available/default:
  + Fixed a pointer to a file. (Closes: #614980)

[Kartik Mistry]
* debian/*.lintian-overrides:
  + Add Lintian overrides for nginx man page. We've manpage in nginx-common
    binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim:set ft=perl ts=4 sw=4 et fdm=marker:
 
2
 
 
3
use lib 'lib';
 
4
use Test::Nginx::Socket;
 
5
 
 
6
repeat_each(1);
 
7
 
 
8
plan tests => repeat_each() * (blocks() + 1 * 1);
 
9
 
 
10
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
 
11
$ENV{TEST_NGINX_MYSQL_PORT} ||= 3306;
 
12
 
 
13
our $http_config = <<'_EOC_';
 
14
    upstream database {
 
15
        drizzle_server 127.0.0.1:$TEST_NGINX_MYSQL_PORT protocol=mysql
 
16
                       dbname=ngx_test user=ngx_test password=ngx_test;
 
17
    }
 
18
_EOC_
 
19
 
 
20
no_shuffle();
 
21
run_tests();
 
22
 
 
23
__DATA__
 
24
 
 
25
=== TEST 1: conv_uid - drop table
 
26
--- http_config eval: $::http_config
 
27
--- config
 
28
    location = /init {
 
29
        drizzle_pass   database;
 
30
        drizzle_query  "DROP TABLE IF EXISTS conv_uid";
 
31
    }
 
32
--- request
 
33
GET /init
 
34
--- error_code: 200
 
35
--- timeout: 10
 
36
 
 
37
 
 
38
 
 
39
=== TEST 2: conv_uid - create table
 
40
--- http_config eval: $::http_config
 
41
--- config
 
42
    location = /init {
 
43
        drizzle_pass   database;
 
44
        drizzle_query  "CREATE TABLE conv_uid(id serial primary key, new_uid integer, old_uid integer)";
 
45
    }
 
46
--- request
 
47
GET /init
 
48
--- error_code: 200
 
49
--- timeout: 10
 
50
 
 
51
 
 
52
 
 
53
=== TEST 3: conv_uid - insert value
 
54
--- http_config eval: $::http_config
 
55
--- config
 
56
    location = /init {
 
57
        drizzle_pass   database;
 
58
        drizzle_query  "INSERT INTO conv_uid(old_uid,new_uid) VALUES(32,56),(35,78)";
 
59
    }
 
60
--- request
 
61
GET /init
 
62
--- error_code: 200
 
63
--- timeout: 10
 
64
 
 
65
 
 
66
 
 
67
=== TEST 4: flush data from memcached
 
68
--- config
 
69
    location /flush {
 
70
        set $memc_cmd flush_all;
 
71
        memc_pass 127.0.0.1:$TEST_NGINX_MEMCACHED_PORT;
 
72
    }
 
73
--- request
 
74
GET /flush
 
75
--- error_code: 200
 
76
--- response_body eval
 
77
"OK\r
 
78
"
 
79
--- timeout: 10