MT#12347 Some local configs example

export LOCAL_TEST=https://192.168.x.x:yyyy
perl -I {PATH}/ngcp-panel/t/lib/ {PATH}/ngcp-panel/t/api-xxx.t

Change-Id: I162000581304af6b33c58ca432e2ce25e328bd41
changes/34/2334/2
Irina Peshinskaya 10 years ago
parent 7299ed6962
commit 8bd4a9af7e

@ -11,9 +11,6 @@ use Data::Dumper;
use File::Basename;
use bignum qw/hex/;
BEGIN {
unshift(@INC,'../t/lib');
}
use Test::Collection;
use Test::FakeData;
@ -21,7 +18,6 @@ use Test::FakeData;
my $test_machine = Test::Collection->new(
name => 'pbxdevices',
embedded => [qw/pbxdeviceprofiles customers/],
use_cert_login => 0,
);
$test_machine->methods->{collection}->{allowed} = {map {$_ => 1} qw(GET HEAD OPTIONS POST)};
$test_machine->methods->{item}->{allowed} = {map {$_ => 1} qw(GET HEAD OPTIONS PUT PATCH DELETE)};

@ -2,6 +2,8 @@ package Test::Collection;
#later package should be split into 2: apiclient and testcollection
#testcollection will keep object of the apiclient
#export LOCAL_TEST=https://192.168.x.x:yyyy; perl -I {PATH}/ngcp-panel/t/lib/ {PATH}/ngcp-panel/t/api-xxx.t
use strict;
use Test::More;
use Moose;
@ -36,11 +38,6 @@ has 'ua' => (
lazy => 1,
builder => 'init_ua',
);
has 'use_cert_login' => (
is => 'rw',
isa => 'Bool',
default => 1,
);
has 'base_uri' => (
is => 'ro',
isa => 'Str',

Loading…
Cancel
Save