Changeset 1307

Show
Ignore:
Timestamp:
08/14/06 11:20:09
Author:
miyagawa
Message:

switch UserAgent?::RequestHeader? test to printenv, to avoid SSL issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/t/plugins/UserAgent-RequestHeader/printenv.t

    r1296 r1307  
    88__END__ 
    99 
    10 === Test rt.cpan.org 
     10=== Test printenv 
    1111--- input config 
    1212global: 
     
    1616  - module: CustomFeed::Debug 
    1717    config: 
    18       title: RT CPAN 
     18      title: printenv 
    1919      entry: 
    20         - title: rt.cpan.org 
    21           link: http://rt.cpan.org/ 
     20        - title: printenv 
     21          link: http://commonground.mines.edu/printenv.cgi 
    2222  - module: Filter::EntryFullText 
    2323    config: 
    2424      store_html_on_failure: 1 
    2525--- expected 
    26 like $context->update->feeds->[0]->entries->[0]->body, qr!<span class="left">Login</span>!; 
     26unlike $context->update->feeds->[0]->entries->[0]->body, qr!ACCEPT_LANGUAGE!; 
    2727 
    28 === Test rt.cpan.org with Accept-Language: ja 
     28=== Test printenv with Accept-Language: ja 
    2929--- input config 
    3030global: 
     
    3434  - module: CustomFeed::Debug 
    3535    config: 
    36       title: RT CPAN 
     36      title: printenv 
    3737      entry: 
    38         - title: rt.cpan.org 
    39           link: http://rt.cpan.org/ 
     38        - title: printenv 
     39          link: http://commonground.mines.edu/printenv.cgi 
    4040  - module: Filter::EntryFullText 
    4141    config: 
     
    4545      Accept-Language: ja 
    4646--- expected 
    47 like $context->update->feeds->[0]->entries->[0]->body, qr!<span class="left">ログイン</span>!; 
     47like $context->update->feeds->[0]->entries->[0]->body, qr!<TD>HTTP_ACCEPT_LANGUAGE</TD><TD>ja</TD>!; 
    4848 
    49 === Test rt.cpan.org with Accept-Language: ja and rule 
     49=== Test printenv with Accept-Language: ja and rule 
    5050--- input config 
    5151global: 
     
    5555  - module: CustomFeed::Debug 
    5656    config: 
    57       title: RT CPAN 
     57      title: printenv 
    5858      entry: 
    59         - title: rt.cpan.org 
    60           link: http://rt.cpan.org/ 
     59        - title: printenv 
     60          link: http://commonground.mines.edu/printenv.cgi 
    6161  - module: Filter::EntryFullText 
    6262    config: 
     
    6666      Accept-Language: ja 
    6767    rule: 
    68       expression: \$args->{url}->host eq 'rt.cpan.org
     68      expression: \$args->{url}->host eq 'commonground.mines.edu
    6969--- expected 
    70 like $context->update->feeds->[0]->entries->[0]->body, qr!<span class="left">ログイン</span>!; 
     70like $context->update->feeds->[0]->entries->[0]->body, qr!<TD>HTTP_ACCEPT_LANGUAGE</TD><TD>ja</TD>!