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-Server/t/22_client_delete_instance.t

    r2882 r4440  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 22_client_delete_instance.t,v 1.1 2005-01-04 03:14:19 jhoblitt Exp $
     5# $Id: 22_client_delete_instance.t,v 1.2 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{
    25     my $idata = PS::IPP::IData::Client->new(
    26         proxy => "http://$hostport/idata",
     25    my $neb = Nebulous::Client->new(
     26        proxy => "http://$hostport/nebulous",
    2727    );
    28     $idata->create( "foo" );
     28    $neb->create( "foo" );
    2929
    30     my $locations = $idata->find_instances( "foo" );
     30    my $locations = $neb->find_instances( "foo" );
    3131
    32     my $uri = $idata->delete_instance( @$locations[0] );
     32    my $uri = $neb->delete_instance( @$locations[0] );
    3333
    3434    is( $uri, @$locations[0], "delete instance" );
     
    3737}
    3838
    39 Test::IData->setup;
     39Test::Nebulous->setup;
    4040
    4141{
    42     my $idata = PS::IPP::IData::Client->new(
    43         proxy => "http://$hostport/idata",
     42    my $neb = Nebulous::Client->new(
     43        proxy => "http://$hostport/nebulous",
    4444    );
    45     $idata->create( "foo" );
    46     $idata->replicate( "foo" );
     45    $neb->create( "foo" );
     46    $neb->replicate( "foo" );
    4747
    48     my $uri1 = $idata->find_instances( "foo" )->[0];
     48    my $uri1 = $neb->find_instances( "foo" )->[0];
    4949
    50     ok( $idata->delete_instance( $uri1 ), "delete instance" );
     50    ok( $neb->delete_instance( $uri1 ), "delete instance" );
    5151
    52     my $uri2 = $idata->find_instances( "foo" )->[0];
     52    my $uri2 = $neb->find_instances( "foo" )->[0];
    5353
    5454    isnt( $uri1, $uri2, "other instance remains" );
    5555
    56     ok( $idata->delete_instance( $uri2 ), "delete instance" );
     56    ok( $neb->delete_instance( $uri2 ), "delete instance" );
    5757
    58     my $locations = $idata->find_instances( "foo" );
     58    my $locations = $neb->find_instances( "foo" );
    5959
    6060    is( $locations, undef, "no remaning instances" );
     
    6262
    6363{
    64     my $idata = PS::IPP::IData::Client->new(
    65         proxy => "http://$hostport/idata",
     64    my $neb = Nebulous::Client->new(
     65        proxy => "http://$hostport/nebulous",
    6666    );
    67     my $uri = $idata->delete_instance( "file:/foo" );
     67    my $uri = $neb->delete_instance( "file:/foo" );
    6868
    6969    is( $uri, undef, "uri does not exist" );
    7070}
    7171
    72 Test::IData->setup;
     72Test::Nebulous->setup;
    7373
    7474eval {
    75     my $idata = PS::IPP::IData::Client->new(
    76         proxy => "http://$hostport/idata",
     75    my $neb = Nebulous::Client->new(
     76        proxy => "http://$hostport/nebulous",
    7777    );
    78     $idata->delete_instance();
     78    $neb->delete_instance();
    7979};
    8080like( $@, qr/1 was expected/, "no params" );
    8181
    82 Test::IData->setup;
     82Test::Nebulous->setup;
    8383
    8484eval {
    85     my $idata = PS::IPP::IData::Client->new(
    86         proxy => "http://$hostport/idata",
     85    my $neb = Nebulous::Client->new(
     86        proxy => "http://$hostport/nebulous",
    8787    );
    88     $idata->delete_instance( "foo", 2 );
     88    $neb->delete_instance( "foo", 2 );
    8989};
    9090like( $@, qr/1 was expected/, "too many params" );
    9191
    92 Test::IData->cleanup;
     92Test::Nebulous->cleanup;
Note: See TracChangeset for help on using the changeset viewer.