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/apache_03_server_create_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     my $uri = $idata->create_object( "foo" )->result;
     27    my $uri = $neb->create_object( "foo" )->result;
    2828
    2929    ok( -e _get_file_path( $uri ), "file exists" );
     
    3232}
    3333
    34 Test::IData->setup;
     34Test::Nebulous->setup;
    3535
    3636{
    3737    # key, class
    38     my $uri = $idata->create_object( "foo", 0 )->result;
    39     $idata->delete_instance( $uri );
     38    my $uri = $neb->create_object( "foo", 0 )->result;
     39    $neb->delete_instance( $uri );
    4040
    4141    ok( -e _get_file_path( $uri ), "file exists" );
     
    4444}
    4545
    46 Test::IData->setup;
     46Test::Nebulous->setup;
    4747
    4848{
    4949    # key, class, volume
    50     my $uri = $idata->create_object( "foo", 0, "node01" )->result;
    51     $idata->delete_instance( $uri );
     50    my $uri = $neb->create_object( "foo", 0, "node01" )->result;
     51    $neb->delete_instance( $uri );
    5252
    5353    ok( -e _get_file_path( $uri ), "file exists" );
     
    5656}
    5757
    58 Test::IData->setup;
     58Test::Nebulous->setup;
    5959
    6060{
    6161    # key, class, volume, comment
    62     my $uri = $idata->create_object( "foo", 0, "node01", "this is foo" )->result;
    63     $idata->delete_instance( $uri );
     62    my $uri = $neb->create_object( "foo", 0, "node01", "this is foo" )->result;
     63    $neb->delete_instance( $uri );
    6464
    6565    ok( -e _get_file_path( $uri ), "file exists" );
     
    6868}
    6969
    70 Test::IData->setup;
     70Test::Nebulous->setup;
    7171
    7272{
    73     $idata->create_object( "foo" );
    74     my $response = $idata->create_object( "foo" );
     73    $neb->create_object( "foo" );
     74    my $response = $neb->create_object( "foo" );
    7575
    7676    like( $response->faultstring, qr/Duplicate entry/, "object already exists" );
    7777}
    7878
    79 Test::IData->setup;
     79Test::Nebulous->setup;
    8080
    8181{
    82     my $response = $idata->create_object();
     82    my $response = $neb->create_object();
    8383
    8484    like( $response->faultstring, qr/2 - 4 were expected/, "no params" );
    8585}
    8686
    87 Test::IData->setup;
     87Test::Nebulous->setup;
    8888
    8989{
    90     my $response = $idata->create_object( 1, 2, 3, 4, 5 );
     90    my $response = $neb->create_object( 1, 2, 3, 4, 5 );
    9191
    9292    like( $response->faultstring, qr/2 - 4 were expected/, "too many params" );
    9393}
    9494
    95 Test::IData->cleanup;
     95Test::Nebulous->cleanup;
Note: See TracChangeset for help on using the changeset viewer.