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/apache_04_server_replicate_object.x

    r2785 r4440  
    1111
    1212use Apache::TestUtil;
    13 use PS::IPP::IData::Util qw( :standard );
     13use Nebulous::Util qw( :standard );
    1414use SOAP::Lite;
    15 use Test::IData;
     15use Test::Nebulous;
    1616
    1717my $hostport = Apache::Test::config()->{ 'hostport' };
    18 my $idata = SOAP::Lite->new(
    19     proxy   => "http://$hostport/idata",
    20     uri     => "http://pan-starrs.ifa.hawaii.edu/PS/IPP/IData/Server",
     18my $neb = SOAP::Lite->new(
     19    proxy   => "http://$hostport/nebulous",
     20    uri     => "http://pan-starrs.ifa.hawaii.edu/PS/IPP/Nebulous/Server",
    2121);
    2222
    23 Test::IData->setup;
     23Test::Nebulous->setup;
    2424
    2525{
    2626    # key
    27     $idata->create_object( "foo" );
    28     my $uri = $idata->replicate_object( "foo" )->result;
     27    $neb->create_object( "foo" );
     28    my $uri = $neb->replicate_object( "foo" )->result;
    2929
    3030    ok( -e _get_file_path( $uri ), "file exists" );
     
    3333}
    3434
    35 Test::IData->setup;
     35Test::Nebulous->setup;
    3636
    3737{
    3838    # key, $volume
    39     $idata->create_object( "foo" );
    40     my $uri = $idata->replicate_object( "foo", "node01" )->result;
     39    $neb->create_object( "foo" );
     40    my $uri = $neb->replicate_object( "foo", "node01" )->result;
    4141
    4242    ok( -e _get_file_path( $uri ), "file exists" );
     
    4545}
    4646
    47 Test::IData->setup;
     47Test::Nebulous->setup;
    4848
    4949{
    5050    # key, $volume
    51     $idata->create_object( "foo" );
    52     my $uri1 = $idata->replicate_object( "foo", "node01" )->result;
    53     my $uri2 = $idata->replicate_object( "foo", "node02" )->result;
     51    $neb->create_object( "foo" );
     52    my $uri1 = $neb->replicate_object( "foo", "node01" )->result;
     53    my $uri2 = $neb->replicate_object( "foo", "node02" )->result;
    5454
    5555    ok( -e _get_file_path( $uri1 ), "file exists" );
     
    6060}
    6161
    62 Test::IData->setup;
     62Test::Nebulous->setup;
    6363
    6464{
    65     my $response = $idata->replicate_object();
     65    my $response = $neb->replicate_object();
    6666
    6767    like( $response->faultstring, qr/1 - 2 were expected/, "no params" );
    6868}
    6969
    70 Test::IData->setup;
     70Test::Nebulous->setup;
    7171
    7272{
    73     my $response = $idata->replicate_object( 1, 2, 3 );
     73    my $response = $neb->replicate_object( 1, 2, 3 );
    7474
    7575    like( $response->faultstring, qr/1 - 2 were expected/, "too many params" );
    7676}
    7777
    78 Test::IData->setup;
     78Test::Nebulous->setup;
    7979
    8080{
    81     my $response = $idata->replicate_object( "foo" );
     81    my $response = $neb->replicate_object( "foo" );
    8282
    8383    like( $response->faultstring, qr/storage object does not exist/, "storage object does not exist" );
    8484}
    8585
    86 Test::IData->cleanup;
     86Test::Nebulous->cleanup;
Note: See TracChangeset for help on using the changeset viewer.