mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: removed old integration test code
this is not in usage, we remove it.
This commit is contained in:
parent
117e45783e
commit
450224dc1f
5 changed files with 0 additions and 138 deletions
|
@ -1,24 +0,0 @@
|
||||||
storage: ./.verdaccio_test_env/test-storage
|
|
||||||
|
|
||||||
users:
|
|
||||||
test:
|
|
||||||
password: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
|
|
||||||
|
|
||||||
uplinks:
|
|
||||||
npmjs:
|
|
||||||
url: https://registry.npmjs.org/
|
|
||||||
|
|
||||||
logs:
|
|
||||||
- { type: stdout, format: pretty, level: trace }
|
|
||||||
|
|
||||||
packages:
|
|
||||||
jju:
|
|
||||||
allow_access: all
|
|
||||||
allow_publish: all
|
|
||||||
proxy_access: npmjs
|
|
||||||
|
|
||||||
'*':
|
|
||||||
allow_access: all
|
|
||||||
allow_publish: all
|
|
||||||
|
|
||||||
listen: 55501
|
|
|
@ -1,21 +0,0 @@
|
||||||
storage: ./.verdaccio_test_env/test-storage
|
|
||||||
|
|
||||||
uplinks:
|
|
||||||
npmjs:
|
|
||||||
url: https://registry.npmjs.org/
|
|
||||||
cache: false
|
|
||||||
|
|
||||||
logs:
|
|
||||||
- { type: stdout, format: pretty, level: trace }
|
|
||||||
|
|
||||||
packages:
|
|
||||||
jju:
|
|
||||||
allow_access: all
|
|
||||||
allow_publish: all
|
|
||||||
proxy_access: npmjs
|
|
||||||
|
|
||||||
'*':
|
|
||||||
allow_access: all
|
|
||||||
allow_publish: all
|
|
||||||
|
|
||||||
listen: 55501
|
|
|
@ -1,49 +0,0 @@
|
||||||
#!/usr/bin/perl
|
|
||||||
|
|
||||||
# note to readers: in perl it's useful, in javascript it isn't
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
# setting up working environment && chdir there
|
|
||||||
use Cwd 'abs_path';
|
|
||||||
use File::Basename;
|
|
||||||
$ENV{HOME} = dirname(abs_path( __FILE__ )) . '/.verdaccio_test_env';
|
|
||||||
system('rm -rf .verdaccio_test_env ; mkdir .verdaccio_test_env') and quit('fail');
|
|
||||||
chdir $ENV{HOME};
|
|
||||||
|
|
||||||
use Data::Dumper;
|
|
||||||
my $pid;
|
|
||||||
|
|
||||||
sub quit {
|
|
||||||
print $_[0]."\n";
|
|
||||||
exec("kill $pid ; exit 1");
|
|
||||||
}
|
|
||||||
|
|
||||||
# run verdaccio in a child process
|
|
||||||
if (($pid = fork()) == 0) {
|
|
||||||
exec "../../../bin/verdaccio ../config.yaml";
|
|
||||||
die "exec failed";
|
|
||||||
}
|
|
||||||
|
|
||||||
system('mkdir node_modules') and quit('fail');
|
|
||||||
system('npm set verdaccio_test_config 12345') and quit('fail');
|
|
||||||
|
|
||||||
if (`cat .npmrc` !~ /verdaccio_test_config/) {
|
|
||||||
quit "npm is using wrong config";
|
|
||||||
}
|
|
||||||
|
|
||||||
system('npm set registry http://localhost:55501') and quit('fail');
|
|
||||||
system(q{/bin/echo -e 'test\ntest\ns@s.s\n' | npm adduser}) and quit('fail');
|
|
||||||
|
|
||||||
system('npm install jju') and quit('fail');
|
|
||||||
(`node -e 'console.log(require("jju").parse("{qwerty:123}").qwerty+456)'` =~ /579/) or quit('fail');
|
|
||||||
|
|
||||||
system('npm publish ../verdaccio-test-1.2.3.tgz') and quit('fail');
|
|
||||||
system('npm dist-tag add verdaccio-test@1.2.3 meow') and quit('fail');
|
|
||||||
system('npm install verdaccio-test@meow') and quit('fail');
|
|
||||||
|
|
||||||
(`node -e 'require("verdaccio-test")'` =~ /w==w/) or quit('fail');
|
|
||||||
|
|
||||||
quit("
|
|
||||||
==================================================================
|
|
||||||
All tests seem to be executed successfully, nothing is broken yet.
|
|
||||||
==================================================================");
|
|
|
@ -1,44 +0,0 @@
|
||||||
#!/usr/bin/perl
|
|
||||||
|
|
||||||
# note to readers: in perl it's useful, in javascript it isn't
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
# setting up working environment && chdir there
|
|
||||||
use Cwd 'abs_path';
|
|
||||||
use File::Basename;
|
|
||||||
$ENV{HOME} = dirname(abs_path( __FILE__ )) . '/.verdaccio_test_env';
|
|
||||||
system('rm -rf .verdaccio_test_env ; mkdir .verdaccio_test_env') and quit('fail');
|
|
||||||
chdir $ENV{HOME};
|
|
||||||
|
|
||||||
use Data::Dumper;
|
|
||||||
my $pid;
|
|
||||||
|
|
||||||
sub quit {
|
|
||||||
print $_[0]."\n";
|
|
||||||
exec("kill $pid ; exit 1");
|
|
||||||
}
|
|
||||||
|
|
||||||
# run verdaccio in a child process
|
|
||||||
if (($pid = fork()) == 0) {
|
|
||||||
exec "../../../bin/verdaccio ../config_nocache.yaml";
|
|
||||||
die "exec failed";
|
|
||||||
}
|
|
||||||
|
|
||||||
system('mkdir node_modules') and quit('fail');
|
|
||||||
system('npm set verdaccio_test_config 12345') and quit('fail');
|
|
||||||
|
|
||||||
if (`cat .npmrc` !~ /verdaccio_test_config/) {
|
|
||||||
quit "npm is using wrong config";
|
|
||||||
}
|
|
||||||
|
|
||||||
system('npm set registry http://localhost:55501') and quit('fail');
|
|
||||||
system(q{/bin/echo -e 'test\ntest\ns@s.s\n' | npm adduser}) and quit('fail');
|
|
||||||
|
|
||||||
system('npm install jju') and quit('fail');
|
|
||||||
system('test ! -f ./test-storage/jju/jju-*.tgz') and quit('fail');
|
|
||||||
|
|
||||||
|
|
||||||
quit("
|
|
||||||
==================================================================
|
|
||||||
All tests seem to be executed successfully, nothing is broken yet.
|
|
||||||
==================================================================");
|
|
Binary file not shown.
Loading…
Reference in a new issue