IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2005, 4:35:06 PM (21 years ago)
Author:
jhoblitt
Message:

rename PS::IPP::IData -> Nebulous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/11_client_create.t

    r2872 r4440  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 11_client_create.t,v 1.3 2005-01-03 23:55:29 jhoblitt Exp $
     5# $Id: 11_client_create.t,v 1.4 2005-06-30 02:35:06 jhoblitt Exp $
    66
    77use strict;
     
    1414use lib qw( ./t ./lib );
    1515
    16 use PS::IPP::IData::Client;
    17 use PS::IPP::IData::Util qw( :standard );
    18 use Test::IData;
     16use Nebulous::Client;
     17use Nebulous::Util qw( :standard );
     18use Test::Nebulous;
    1919
    2020my $hostport = Apache::Test->config->{ 'hostport' };
    2121
    22 Test::IData->setup;
     22Test::Nebulous->setup;
    2323
    2424{
    2525    # key
    26     my $idata = PS::IPP::IData::Client->new(
    27         proxy => "http://$hostport/idata",
     26    my $neb = Nebulous::Client->new(
     27        proxy => "http://$hostport/nebulous",
    2828    );
    2929
    30     my $fh = $idata->create( "foo" );
     30    my $fh = $neb->create( "foo" );
    3131
    3232    is( ref $fh, 'GLOB', "good filehandle" );
    3333}
    3434
    35 Test::IData->setup;
     35Test::Nebulous->setup;
    3636
    3737{
    3838    # key, class
    39     my $idata = PS::IPP::IData::Client->new(
    40         proxy => "http://$hostport/idata",
     39    my $neb = Nebulous::Client->new(
     40        proxy => "http://$hostport/nebulous",
    4141    );
    4242
    43     my $fh = $idata->create( "foo", 0 );
     43    my $fh = $neb->create( "foo", 0 );
    4444
    4545    is( ref $fh, 'GLOB', "good filehandle" );
    4646}
    4747
    48 Test::IData->setup;
     48Test::Nebulous->setup;
    4949
    5050{
    5151    # key, class, volume
    52     my $idata = PS::IPP::IData::Client->new(
    53         proxy => "http://$hostport/idata",
     52    my $neb = Nebulous::Client->new(
     53        proxy => "http://$hostport/nebulous",
    5454    );
    5555
    56     my $fh = $idata->create( "foo", 0, "node01" );
     56    my $fh = $neb->create( "foo", 0, "node01" );
    5757
    5858    is( ref $fh, 'GLOB', "good filehandle" );
    5959}
    6060
    61 Test::IData->setup;
     61Test::Nebulous->setup;
    6262
    6363{
    6464    # key, class, volume, comment
    65     my $idata = PS::IPP::IData::Client->new(
    66         proxy => "http://$hostport/idata",
     65    my $neb = Nebulous::Client->new(
     66        proxy => "http://$hostport/nebulous",
    6767    );
    6868
    69     my $fh = $idata->create( "foo", 0, "node01", "this is foo" );
     69    my $fh = $neb->create( "foo", 0, "node01", "this is foo" );
    7070
    7171    is( ref $fh, 'GLOB', "good filehandle" );
    7272}
    7373
    74 Test::IData->setup;
     74Test::Nebulous->setup;
    7575
    7676{
    77     my $idata = PS::IPP::IData::Client->new(
    78         proxy => "http://$hostport/idata",
     77    my $neb = Nebulous::Client->new(
     78        proxy => "http://$hostport/nebulous",
    7979    );
    8080
    81     $idata->create( "foo" );
    82     is( $idata->create( "foo" ), undef, "object already exists" );
     81    $neb->create( "foo" );
     82    is( $neb->create( "foo" ), undef, "object already exists" );
    8383}
    8484
    85 Test::IData->setup;
     85Test::Nebulous->setup;
    8686
    8787eval {
    88     my $idata = PS::IPP::IData::Client->new(
    89         proxy => "http://$hostport/idata",
     88    my $neb = Nebulous::Client->new(
     89        proxy => "http://$hostport/nebulous",
    9090    );
    9191
    92     $idata->create();
     92    $neb->create();
    9393};
    9494like( $@, qr/2 - 4 were expected/, "no params" );
    9595
    96 Test::IData->setup;
     96Test::Nebulous->setup;
    9797
    9898eval {
    99     my $idata = PS::IPP::IData::Client->new(
    100         proxy => "http://$hostport/idata",
     99    my $neb = Nebulous::Client->new(
     100        proxy => "http://$hostport/nebulous",
    101101    );
    102102
    103     $idata->create( 1, 2, 3, 4, 5 );
     103    $neb->create( 1, 2, 3, 4, 5 );
    104104};
    105105like( $@, qr/2 - 4 were expected/, "too many params" );
    106106
    107 Test::IData->cleanup;
     107Test::Nebulous->cleanup;
Note: See TracChangeset for help on using the changeset viewer.