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/08_server_delete_instance.t

    r2872 r4440  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 08_server_delete_instance.t,v 1.3 2005-01-03 23:55:29 jhoblitt Exp $
     5# $Id: 08_server_delete_instance.t,v 1.4 2005-06-30 02:35:06 jhoblitt Exp $
    66
    77use strict;
     
    1212use lib qw( ./t ./lib );
    1313
    14 use PS::IPP::IData::Server;
    15 use PS::IPP::IData::Util qw( :standard );
    16 use Test::IData;
     14use Nebulous::Server;
     15use Nebulous::Util qw( :standard );
     16use Test::Nebulous;
    1717
    18 my $idata = "PS::IPP::IData::Server";
     18my $neb = "Nebulous::Server";
    1919
    20 $idata->setup(
     20$neb->setup(
    2121    "DBI:mysql:database=test:host=localhost",
    2222    "test",
     
    2424);
    2525
    26 Test::IData->setup;
     26Test::Nebulous->setup;
    2727
    2828{
    29     my $uri = $idata->create_object( "foo" );
     29    my $uri = $neb->create_object( "foo" );
    3030
    31     ok( $idata->delete_instance( $uri ), "delete instance" );
     31    ok( $neb->delete_instance( $uri ), "delete instance" );
    3232}
    3333
    34 Test::IData->setup;
     34Test::Nebulous->setup;
    3535
    3636{
    37     my $uri1 = $idata->create_object( "foo" );
    38     my $uri2 = $idata->replicate_object( "foo" );
     37    my $uri1 = $neb->create_object( "foo" );
     38    my $uri2 = $neb->replicate_object( "foo" );
    3939
    40     ok( $idata->delete_instance( $uri1 ), "delete instance" );
     40    ok( $neb->delete_instance( $uri1 ), "delete instance" );
    4141
    42     my $locations = $idata->find_instances( "foo" );
     42    my $locations = $neb->find_instances( "foo" );
    4343
    4444    is( $locations->[0], $uri2, "instance remains" );
    4545
    46     ok( $idata->delete_instance( $uri2 ), "delete instance" );
     46    ok( $neb->delete_instance( $uri2 ), "delete instance" );
    4747
    4848    eval {
    49         $idata->find_instances( "foo" );
     49        $neb->find_instances( "foo" );
    5050    };
    5151    like( $@, qr/no instances found/, "storage object was deleted" );
    5252}
    5353
    54 Test::IData->setup;
     54Test::Nebulous->setup;
    5555
    5656eval {
    57     $idata->delete_instance( "file:/foo" );
     57    $neb->delete_instance( "file:/foo" );
    5858};
    5959like( $@, qr/no instance is associated with uri/, "uri does not exist" );
    6060
    61 Test::IData->setup;
     61Test::Nebulous->setup;
    6262
    6363eval {
    64     $idata->delete_instance();
     64    $neb->delete_instance();
    6565};
    6666like( $@, qr/1 was expected/, "no params" );
    6767
    68 Test::IData->setup;
     68Test::Nebulous->setup;
    6969
    7070eval {
    71     $idata->delete_instance( "foo", 2 );
     71    $neb->delete_instance( "foo", 2 );
    7272};
    7373like( $@, qr/1 was expected/, "too many params" );
    7474
    75 Test::IData->cleanup;
     75Test::Nebulous->cleanup;
Note: See TracChangeset for help on using the changeset viewer.