1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
Commit Graph

655 Commits

Author SHA1 Message Date
Juan Picado @jotadeveloper
3f6eeb4d7d
fix: update uplinks auth header
* increases unit test coverage
* remove dead code
* update documentation
* light refactoring

fix #670
2018-04-29 21:50:10 +02:00
Juan Picado @jotadeveloper
de61e469ed
refactor: storage utilities
relocate methods, no logic change
2018-04-22 22:14:21 +02:00
Juan Picado @jotadeveloper
e5caa71d35
refactor: storage is async
allows storage to initalize whether a async call is required on start up.
2018-04-21 18:36:06 +02:00
Juan Picado @jotadeveloper
848e004eb5
refactor: local database methods are async 2018-04-20 19:40:48 +02:00
Juan Picado @jotadeveloper
6491db4191
fix: api login use case when user already exist
It adds a new use case based on the plugin update. 409 in case user exists already and 201 when new user has been created.
2018-04-03 07:08:44 +02:00
Christopher Kelley
5c5af275ab
fix: correct linter errors and warnings 2018-03-26 13:51:14 -04:00
Christopher Kelley
78bb95c0c2
Merge branch 'master' into 628-auth-user-zero 2018-03-26 09:21:33 -04:00
Christopher Kelley
8bbedc933b
[Close #628] Test and correct auth plugin values 2018-03-26 09:20:12 -04:00
Juan Picado @jotadeveloper
57a6771681
Merge branch 'master' into issue-542 2018-03-24 20:15:58 +01:00
Ayush Sharma
0d3cf84c01 fix(test): replaces LocaleString with date-nfs/format
fix(test): replaces timezone to UTC

fix(test): updates variable definitions

fix(test): updates time format
2018-03-24 23:31:24 +05:30
Juan Picado @jotadeveloper
2022a30419
fix: unit test and better error handling 2018-03-24 10:12:25 +01:00
Juan Picado @jotadeveloper
b9a6edf9b0
chore: update verdaccio-memory dep 2018-03-24 09:07:36 +01:00
Juan Picado @jotadeveloper
4f395500b6
test: disable test 2018-03-20 17:46:20 +01:00
Juan Picado @jotadeveloper
011f5bf55b
test: disable test 2018-03-20 17:01:40 +01:00
Juan Picado @jotadeveloper
8d5a7f0c30
Merge branch 'master' into issue-587 2018-03-18 15:52:16 +01:00
Aaron Lozier
a56e8ad030 chore: update package and yarn to latest flow-types; skip test per #542 2018-03-18 09:27:51 -05:00
Juan Picado @jotadeveloper
d9e6e87702
test: add unit test for login web ui 2018-03-18 13:41:36 +01:00
Juan Picado @jotadeveloper
f0d2e8592f
test: add test for web ui endpoints
packages, sidebar and search
2018-03-18 08:46:02 +01:00
Juan Picado @jotadeveloper
37d2aa8d49
test: add unit test for utilities 2018-03-17 18:28:54 +01:00
Juan Picado @jotadeveloper
7237ab340f
refactor: add flow support on publish endpoint 2018-03-17 11:54:57 +01:00
Juan Picado @jotadeveloper
1740aad834
test(e2e): add test for protected packages
Protected packages are not displayed on UI
2018-03-13 22:15:21 +01:00
Juan Picado @jotadeveloper
036120b777
fix: add teardown for unit test 2018-03-11 19:25:13 +01:00
Juan Picado @jotadeveloper
547da379e9
test: add test for proxy access
the test will check whether avoiding proxy on uplink configuration avoid proxy access
2018-03-11 18:55:19 +01:00
Juan Picado @jotadeveloper
d200bf4507
refactor: remove use strict 2018-03-11 00:19:47 +01:00
Juan Picado @jotadeveloper
c2619854dd
refactor: migrate imports to es6 2018-03-10 23:13:26 +01:00
Juan Picado @jotadeveloper
76fe6cb5d7
refactor: apply flow and imports es6 2018-03-10 21:09:04 +01:00
Ayush Sharma
2de47454bf test: updates verdaccio-htpasswd tests
bumps verdaccio-htpasswd to 0.1.4
2018-03-04 22:14:29 +05:30
Juan Picado @jotadeveloper
0167de508c
refactor: move specific flow types into the project 2018-02-26 21:28:09 +01:00
Juan Picado @jotadeveloper
50288e79e7
fix: allow uplink comparison for https protocol
fix #571
2018-02-24 21:20:17 +01:00
Juan Picado @jotadeveloper
18ef37393e
test: add unit test for isUplinkValid #571 2018-02-24 20:50:00 +01:00
Juan Picado @jotadeveloper
199c98314d
refactor: add types to new files
pluging-loader and auth
2018-02-24 20:31:03 +01:00
Juan Picado @jotadeveloper
afd1b6e2dd
test: refactor and add small test for auth class 2018-02-24 20:31:02 +01:00
Juan Picado @jotadeveloper
d086073069
fix(flow): fix flow definitions 2018-02-24 20:31:00 +01:00
Juan Picado @jotadeveloper
66031363b9
test(e2e): add test scenario for sidebar 2018-02-11 00:02:14 +01:00
Juan Picado @jotadeveloper
e91bb8e723
test(e2e): add test scenario to load readme on detail page 2018-02-10 17:09:02 +01:00
Juan Picado @jotadeveloper
508d175778
test(e2e): add test scenario to display published packages on ui 2018-02-10 16:45:29 +01:00
Juan Picado @jotadeveloper
1f05808018
test(e2e): add logout test 2018-02-10 13:20:17 +01:00
Juan Picado @jotadeveloper
8c2a755f84
test(e2e): add test scenario to login user 2018-02-10 09:41:01 +01:00
Juan Picado @jotadeveloper
9807e21dee
test: add e2e support 2018-02-09 08:42:34 +01:00
Juan Picado @jotadeveloper
780874ece9
test: add husky and lint 2018-02-08 23:25:18 +01:00
Juan Picado @jotadeveloper
27286a5bff
test: add e2e test - testing ci mode 2018-02-08 22:45:13 +01:00
Juan Picado @jotadeveloper
f7414e9bb2
chore(flow): update flow definitions for proxy 2018-02-04 14:15:51 +01:00
Juan Picado @jotadeveloper
42f23da363
refactor: methods to camel case 2018-02-03 22:36:28 +01:00
Juan Picado @jotadeveloper
bee4d1cf4f
test(unit): add test for uplink offline, refactor proxy 2018-02-03 22:21:23 +01:00
Juan Picado @jotadeveloper
885345f4cf
test(unit): add unit test for publish and unpublish 2018-01-28 20:25:19 +01:00
Juan Picado @jotadeveloper
c08f257bf1
test(unit): add unit test for basic searc 2018-01-28 18:58:51 +01:00
Juan Picado @jotadeveloper
7c717359fc
chore(build): skip test 2018-01-28 18:48:56 +01:00
Juan Picado @jotadeveloper
234299fe2a
test(dist-tag): add unit test for dist-tag 2018-01-28 14:51:51 +01:00
Juan Picado @jotadeveloper
ec36521ab8
fix(dist-tag): fix #411 latest tag is incorrect 2018-01-28 11:53:49 +01:00
Juan Picado @jotadeveloper
819f06015e
test(unit): add unit test for packages endpoint 2018-01-28 11:38:22 +01:00
Juan Picado @jotadeveloper
181ea648fa
fix(flow): done does not accept arguments 2018-01-28 09:46:22 +01:00
Juan Picado @jotadeveloper
e4a21839d4
chore(flowt): update jest definition 2018-01-28 09:35:33 +01:00
Juan Picado @jotadeveloper
5140b57efb
refactor(test): remove deprecate auth support, fix all test 2018-01-28 02:47:54 +01:00
Juan Picado @jotadeveloper
aa3101ef9a
test(unit): add test for add_user and login 2018-01-26 18:16:51 +01:00
Juan Picado @jotadeveloper
a5ac23ef14
test(unit): relocate unit test 2018-01-25 23:31:47 +01:00
Juan Picado @jotadeveloper
d9a008e881
test(unit): add unit test for add user 2018-01-25 23:14:03 +01:00
Juan Picado @jotadeveloper
eaa0e3f8bd
test(unit): add unit test for ping and whoiam 2018-01-25 21:37:37 +01:00
Juan Picado @jotadeveloper
7d9736eaba
fix: wrong import reference 2018-01-18 07:03:21 +01:00
Juan Picado @jotadeveloper
046e8b1ae1
feat: add node api to launch verdaccio programmatically 2018-01-18 07:03:12 +01:00
Juan Picado @jotadeveloper
123625419a build: update flow to latest 2018-01-15 23:04:58 +00:00
Juan Picado @jotadeveloper
ccb14a54df build: update jest dependencies 2018-01-15 23:04:58 +00:00
Juan Picado @jotadeveloper
84b810e68a fix: add storage es6 plugin suport and fix plugin logic 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
d352c6c63f refactor: load storage as plugin and as fallback use LocalStorage 2018-01-07 07:59:36 +00:00
Ayush Sharma
cbcd86efb4 webui: package sidebar test cases 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
c602a4c9e7 test: add unit test for up-storage, getRemoteMetadata, fetchTarball 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
9d82eb8820 test: add unit test for up-storage 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
ce5af8a004 fix: flow lint errors 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
b494d47eeb test: add additonal unit test for local-storage 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
d0e97cf076 test: add some unit test for local-storage 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
e0d3223968 refactor: fix code review suggestions 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
3c157a221a refactor: update snapshots 2018-01-07 07:59:36 +00:00
Ayush Sharma
d24904c650 webui: tests and dependency mock fixes
deps fixes

deps fixes
2018-01-07 07:59:36 +00:00
Ayush Sharma
ab4b9a0e2e webui: removes function check in search component in test 2018-01-07 07:59:36 +00:00
Ayush Sharma
5ae7863d8f webui snapshot testing
deps fixes for ui tests

snapshot fixes
2018-01-07 07:59:36 +00:00
Ayush Sharma
e03672b70b Chore: typo and spacing fixes
test name fixes
2018-01-07 07:59:36 +00:00
Ayush Sharma
ea47691300 Fix: Header component test 2018-01-07 07:59:36 +00:00
Ayush Sharma
3052e5fb22 Webui component test with Jest 2018-01-07 07:59:36 +00:00
Ayush Sharma
753281effe Package detail component test 2018-01-07 07:59:36 +00:00
Ayush Sharma
c56c03065b WIP: package & Package list component tests 2018-01-07 07:59:36 +00:00
Ayush Sharma
84b29fcf08 webui: <NotFound /> component test case 2018-01-07 07:59:36 +00:00
Ayush Sharma
6a6d7ed4de webui: <Help /> component test case 2018-01-07 07:59:36 +00:00
Ayush Sharma
e38f284b0b webui: <NoItems /> component test case 2018-01-07 07:59:36 +00:00
Ayush Sharma
b77c0ea7bb webui: <Readme /> component test case 2018-01-07 07:59:36 +00:00
Ayush Sharma
50884dfd7e webui: <Search /> component test case
Fix: placeholder test for <Search /> component

minor fix
2018-01-07 07:59:36 +00:00
Ayush Sharma
de867e7a65 Webui: bootstrap and test setup 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
0c9e504d1a refactor: clean scripts and dependencies 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
1b1a784640 refactor: remove old module 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
e00e41b24b refactor: fix linting 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
ca5fd82d95 refactor: jest migration completed 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
4cbbb2f370 refactor: functional testing add more test 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
037095f851 refactor: functional testing with jest set up 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
86d92e96d2 chore: add unit test for smart request 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
adf7f3adb3 refactor: refactor functional test server launch (wip) 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
31c2bd48a0 refactor: migrate unit test to Jest 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
a5e162d475 feature: Update Build pipeline for Babel transpiler (#349)
feature: Update Build pipeline for Babel transpiler
2018-01-07 07:59:36 +00:00
Ayush Sharma
6e35e10a72 fix: dist-tag put and delete endpoint removed
dist tags test fixes

minor-fixes: new line
2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
7f4f7380ac refactor: fix rebase unit test 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
4c0733ca32 refactor: These files will be migrated to another repository 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
112cee789e refactor: remove local-storage in favor of the new dependency 2018-01-07 07:59:36 +00:00
Juan Picado @jotadeveloper
121dc3c058 refactor: fix dist-tag tests 2018-01-07 07:59:36 +00:00
Ayush Sharma
b605d1ed7e fix: notification for multiple endpoints
add silent fail case for notification promise
2017-12-15 08:08:16 +05:30
Håkan Canberger
374a5e8e7b feat: Add middleware plugins from fl4re/sinopia
This is basically the PR fl4re/sinopia#18 by @fredr
2017-11-01 15:01:25 +01:00
Ramon Henrique Ornelas
3fcdc62736 test: add test return default headers 2017-09-30 21:29:13 -03:00
Ramon Henrique Ornelas
231a4d7227 refactor: small changes in the code
- describe message tests;
- remove condition duplicate;
- add logger in exceptions;
2017-09-30 21:07:45 -03:00
Ramon Henrique Ornelas
f7ad05ec86 test: add test uplink auth 2017-09-30 00:06:42 -03:00
Yuuki Tada
f80ff856ba Add DATE and VERSION in search result
modified:   src/lib/storage/local/local-storage.js
	modified:   test/functional/tags/preserve_tags.spec.js
2017-09-07 02:53:26 +00:00
Juan Picado @jotadeveloper
23bcf6fb86
test: Increase coverage for local-data storage 2017-08-26 07:44:18 +02:00
Juan Picado @jotadeveloper
2c3a8f9d42
test: Add unit test for a scenario when the database is corrupted 2017-08-26 07:44:17 +02:00
Juan Picado @jotadeveloper
d7e6bae469
refactor: move stream tarball helper as a dependency 2017-08-06 22:52:30 +02:00
Juan Picado @jotadeveloper
32a1b6e6e2
refactor: restore default time out to 20s 2017-08-06 22:04:35 +02:00
Juan Picado @jotadeveloper
8b93b579d3
refactor: naming clean up, relocation, organize by category 2017-08-06 21:54:15 +02:00
Juan Picado @jotadeveloper
d53ce9750b
refactor: rename unit test clean up 2017-08-05 10:34:31 +02:00
Juan Picado @jotadeveloper
644c0981db
fix: configuration files inconsistencies, add unit test 2017-08-02 20:46:06 +02:00
Juan Picado @jotadeveloper
cda92ac5ab
refactor: relocate unit test 2017-08-02 20:45:21 +02:00
Juan Picado @jotadeveloper
a038b282ec refactor: scoped packages unit test, relocate other unit test 2017-07-30 15:56:00 +00:00
Juan Picado @jotadeveloper
1e6c7dd6ea refactor: unit test for readme, preserve tags on publish 2017-07-30 15:56:00 +00:00
Juan Picado @jotadeveloper
6f006fbf40
test: Add functional test to un publish a single version 2017-07-30 17:55:41 +02:00
Juan Picado @jotadeveloper
2df4f7b628
fix: eslint globally read all files, rename jsx to js. Reduce amount of repeated configuration 2017-07-18 21:14:12 +02:00
Juan Picado @jotadeveloper
cfffd04736
refactor: disable readme test 2017-07-18 21:14:10 +02:00
Juan Picado @jotadeveloper
5b1ac962f2
fix: unit test library reference 2017-07-18 21:14:09 +02:00
Juan Picado @jotadeveloper
5f345a90df
fix: dot files, dependencies and update scripts 2017-07-18 21:14:09 +02:00
Meeeeow
7fef14c322
refactor: directory structure 2017-07-18 21:08:10 +02:00
Juan Picado @jotadeveloper
b3a82bc294
Refactor web, relocate files to web folder 2017-07-18 21:02:05 +02:00
Juan Picado @jotadeveloper
6e91aa88be
(test): Refactor and add documentation some unit test, relocate storages 2017-07-02 00:05:58 +02:00
Juan Picado @jotadeveloper
1ae08b6b78
(test): Add functional test for notifications on publish 2017-07-01 11:17:46 +02:00
Juan Picado @jotadeveloper
19f969d442
(fix): fix formatting, easy to read 2017-07-01 09:10:26 +02:00
Juan Picado @jotadeveloper
aeed698ed2
(fix): add functional test, unpublish package 2017-07-01 09:09:44 +02:00
Juan Picado @jotadeveloper
9640730d6c
(fix): renamed smart request file 2017-07-01 00:06:21 +02:00
Juan Picado @jotadeveloper
a702e69e16
(fix): increase mocha timeout 2017-06-30 23:17:58 +02:00
Juan Picado @jotadeveloper
492eeef721
(fix): trying to fix hangs promises on travis 2017-06-30 23:11:40 +02:00
Juan Picado @jotadeveloper
b2008958f1
(test): Refactor smart request module 2017-06-30 23:11:12 +02:00
Juan Picado @jotadeveloper
e41dad708e
(test): Refactor hash method 2017-06-30 23:10:30 +02:00
Juan Picado @jotadeveloper
1926522f99
(test): Move mocha options to mocha config file 2017-06-30 23:09:17 +02:00
Juan Picado @jotadeveloper
96c9f459c1
(test): Refactor server class, renamed methods to camelCase 2017-06-28 22:56:02 +02:00
Juan Picado @jotadeveloper
15c6cb09fd
(test): Fix mocha debug mode for > Node 7 2017-06-28 22:47:16 +02:00
Juan Picado @jotadeveloper
2ee4f38743
Refactor Storage, move local storage to inner folder.
Refactor methods to camelCase
Relocate utilities
2017-06-10 23:41:24 +02:00
Juan Picado @jotadeveloper
1307181005
Refactor streams, removed not needed dependency 2017-06-10 18:48:20 +02:00
cklein
7018fc99a2 [GH-131] add cache option to uplinks 2017-06-08 17:59:28 +02:00
Ryan Graham
64c3ea445b
don't blindly clobber local dist-tags
If packages are being published to verdaccio as well as upstream to
npmjs.org, then when the cache is updated from npmjs.org it uses the
dist-tags from the upstream even if the locally published version is
actually newer. This makes it very difficult to use verdaccio as a
staging registry for testing out potential releases.

This change partially reverts a change in behaviour that was introduced
in #8 which caused a regression for the staging style workflow that was
supported by sinopia.
2017-06-01 13:59:56 -07:00
Juan Picado
92df8bd178
Fix uppercase lint warning, streams use lowercase function name 2017-05-09 10:11:09 +02:00
Juan Picado
90328d5faf
Fix config.js new shape 2017-04-27 06:54:53 +02:00
Juan Picado
3457e0925d
rebase from master branch 2017-04-23 22:28:35 +02:00
Juan Picado
f282941075
Apply partially new eslint rules, upgrade es6 and replace octal literals by chalk colors 2017-04-23 22:19:31 +02:00
Juan Picado
b05050da5b
Update unit test es6 2017-04-23 21:28:40 +02:00
Juan Picado
d79f12d45a
Migrate Storages to classes 2017-04-23 21:25:24 +02:00
Juan Picado
52cb33ffdd
Remove es6 polyfills and use native Promises 2017-04-23 21:09:48 +02:00
jotadeveloper
d824821b7a Merge pull request #163 from Meeeeow/fix_search
Fix search feature
2017-04-22 10:42:42 +02:00
Juan Picado
580d3e77f7
Fix undefined path value 2017-04-22 09:31:12 +02:00
Juan Picado
7df6962f43
Add unit test for plugin-loader 2017-04-22 08:23:16 +02:00
Meeeeow
38518baf44 fix: search leak private package and ui bug
- Check permission in search API
- Fix author's name not show in search result
2017-04-21 11:53:05 +08:00
Juan Picado
640240e5c2
Remove Symbols dependency, Node 4 as min version supported 2017-04-17 11:36:35 +02:00
Juan Picado
18d52a4103
Add unit test Search indexer 2017-04-12 21:17:28 +02:00
Madison Grubb
01a6c22103 merging in changes from upstream & fixing conflicts 2017-02-04 22:58:26 -05:00
Aram Drevekenin
ccd3d26059 test: adduser created with htpasswd 2017-01-19 17:14:39 +02:00
Juan Carlos Picado
0210752ea5 clean warnings on unit test 2016-12-05 08:42:43 +01:00
Madison Grubb
a7c4285a68 renaming 'sinopia' to verdaccio. 2016-11-07 12:15:38 -05:00
Miguel Mejias
25e00a3172 Implement logout endpoint 2016-10-11 18:44:47 -05:00
trent.earl
b31198f685 Tests should check for presence of title with "Verdaccio" not "Sinopia" 2016-08-20 12:07:52 -05:00
Juan Carlos Picado
5cdadbd7fa Remove sync write file 2016-08-13 08:21:55 +02:00
trent.earl
d8f2d95f92 Rename binary to verdaccio 2016-07-30 19:37:30 -05:00
trent.earl
dd406da3e2 Fix tests for node 6
Node 6 introduced two breaking changes to verdaccio/sinopia
Path functions now throw on null/undefined arguments
Buffer defaults to binary now A lot of test code explicitly converted data to utf8 which broke on checksum
2016-07-30 19:37:04 -05:00
steve-p-com
6301c3f169 Replace YAML package definitions with standard package.json, fix dependencies 2016-04-21 21:13:49 +01:00
steve-p-com
dfdcaa893e Change the way package distribution tags are processed and stored 2016-04-18 20:53:00 +01:00
Jakub Jirutka
fde2321222 Add workaround to handle URLs of scoped packages with unencoded /
Fixes https://github.com/rlidwka/sinopia/issues/104#issuecomment-66790574.
2015-07-12 01:26:18 +03:00
Alex Kocharin
45edca2218 search: stream results from npmjs instead of buffering them 2015-05-17 01:29:16 +03:00
Alex Kocharin
c09d03b20d add dist-tags endpoints 2015-05-10 18:39:53 +03:00
Alex Kocharin
97386397c2 add a code to bind on unix sockets
use "listen: 'unix:sinopia.sock'" for this
2015-04-22 02:38:25 +03:00
Alex Kocharin
137fd5978f fix access control
ref #238
2015-04-21 19:43:12 +03:00
Alex Kocharin
9294981d71 fix tests for 0.10 2015-04-11 20:14:49 +03:00
Alex Kocharin
17bdfd904a test: use promisified supertest-like asserts 2015-04-11 20:11:04 +03:00
Alex Kocharin
6cb257e51f add tests for auth plugins 2015-04-11 16:09:19 +03:00
Alex Kocharin
3e9932d866 update mocha to 2.2.3+, + options file 2015-04-07 22:51:05 +03:00
Alex Kocharin
8a3a03805e fix travis errors 2015-03-28 22:07:17 +03:00
Alex Kocharin
9047e28074 set up some linting (obvious errors only) 2015-03-28 21:25:53 +03:00
Alex Kocharin
1a9596737e add test for parsing listen address 2015-03-28 18:03:36 +03:00
Alex Kocharin
04a9f14b3c fix test broken in 79e2ff2ee 2015-02-12 14:28:19 +03:00
Alex Kocharin
09318d1943 fixed current folder reference in tests 2014-12-22 23:52:08 +03:00
Alex Kocharin
fad4f457ae move logger setup to index.js + tests 2014-12-22 20:58:25 +03:00
Alex Kocharin
c07d819ce9 add tests for scoped packages 2014-12-15 00:03:42 +03:00
Alex Kocharin
bad7aee4ec use /-/whoami endpoint instead of /whoami
Allows to get rid of referer magic, so it's a nice change to have.

See this issue for details:
https://github.com/npm/npm-registry-client/issues/88
2014-12-05 05:04:37 +03:00
Alex Kocharin
a425c5e2ff add scoped packages draft 2014-11-16 20:46:01 +03:00
Alex Kocharin
4c11a42d21 separate web and api routers to different files 2014-11-13 20:14:21 +03:00
Alex Kocharin
c78390752a fix tests 2014-11-12 19:45:40 +03:00
Alex Kocharin
037b3aea6a make use of es6-shim
It's mainly because of Object.setPrototypeOf()
2014-11-12 17:37:43 +03:00
Alex Kocharin
6a778e8c17 change code style to jshttp
close #155, see reasons there

This is a huge commit, so let me know if it will cause
any trouble, I might consider reverting it if it's the case.
2014-11-12 17:37:43 +03:00
Jon de la Motte
4b20afbd15 Fix a typo in the test/README.md
Also made a couple wording changes and fixed a typo.
2014-10-13 12:51:35 -07:00
Alex Kocharin
eda8dfe9ca Validate package name when doing search
+ tests

fix #122
2014-10-02 11:14:59 +04:00
Alex Kocharin
4f028a107b Save readme data that npm provides on publish
fix #100, fix #128
2014-09-25 07:56:31 +04:00
Alex Kocharin
91ee928f06 fix hostname for travis 2014-09-25 05:25:48 +04:00
Alex Kocharin
862b1eeed4 automated tests against fd leaks 2014-09-25 05:21:59 +04:00
Alex Kocharin
8d1781489b tag_version should return if tag is fresh 2014-09-18 00:04:15 +04:00
Alex Kocharin
8f0039de92 '@all' -> '$all' (avoid yaml identifiers) 2014-09-14 19:49:15 +04:00
Alex Kocharin
734565dc05 auth refactoring: part 3
moving htpasswd out
2014-09-06 13:03:22 +04:00
Alex Kocharin
5dd720cc21 add stuff for testing against fd leaks and memory leaks 2014-08-15 01:37:46 +04:00
Alex Kocharin
60ae815c09 make tests more verbose for travis 2014-08-11 08:09:18 +04:00
Alex Kocharin
a8dc1b2f7b option not to cache third party files
ref #85
2014-08-08 05:08:41 +04:00
Alex Kocharin
3809d6eb32 add a bunch of tests for htpasswd 2014-07-23 01:45:28 +04:00
Alex Kocharin
48b7031074 fix mocha debug mode 2014-07-22 22:24:19 +04:00
Joseph Gentle
68bf469ad4 Fixed unit tests 2014-05-15 16:17:48 -07:00
Alex Kocharin
6eada0f22e preserve tags when publishing something (ref #63) 2014-04-13 02:04:48 +00:00
Alex Kocharin
b4c0b89365 set ignore_latest_tag to false by default 2014-04-01 00:13:59 +00:00
Alex Kocharin
9404e811a5 accept gzip from uplinks, fix #54 2014-03-30 21:05:42 +00:00
Alex Kocharin
7967d5857d Revert "fix logs and tests for #56"
This reverts commit df49fb84c1670fa629f69340d32a0dbafb8ee421.
2014-03-29 01:08:00 +00:00
Alex Kocharin
8af77df0e0 fix zero timeouts in config 2014-03-13 19:45:47 +00:00
Alex Kocharin
df49fb84c1 fix logs and tests for #56 2014-03-13 19:23:21 +00:00
Alex Kocharin
d657e180d5 fix tests 2014-03-13 19:19:02 +00:00
Alex Kocharin
bb9612441c trim intervals 2014-03-08 04:38:37 +00:00
Alex Kocharin
48825a2e46 change intervals formatting to match nginx
see http://wiki.nginx.org/ConfigNotation
2014-03-08 04:37:16 +00:00
Alex Kocharin
6b9001ef6c change interval formatting in config
All intervals are now in milliseconds. But you can add
multiples ("ms", "s", "m", "h", "d", "M", "y") to set
value using different units.

For example, value "1.5h" would mean 1.5 hours.
2014-03-08 03:49:59 +00:00
Alex Kocharin
9ff1203688 throw away incomplete downloads 2014-03-07 19:48:24 +00:00
Alex Kocharin
9c4c93695b fix crash in #52 2014-03-07 18:20:41 +00:00
Alex Kocharin
440f42415c adding test for invalid tags, fixes #40 2014-02-03 00:50:51 +04:00
Alex Kocharin
9f662a69e1 validate all url parameters better 2014-02-01 12:08:48 +04:00
Alex Kocharin
2add883370 adding config param to specify upload limits, fixes #39 2014-01-18 23:04:12 +04:00
Alex Kocharin
e522347667 making loose semver versions work, ref #38 2014-01-18 22:57:44 +04:00
Alex Kocharin
5d19b66290 adding integration tests 2013-12-30 12:25:26 +04:00
Alex Kocharin
02f8143097 tests for tags support 2013-12-29 10:40:47 +04:00
Alex Kocharin
6c838c7947 remove all replication-like functionality
apparently it was a bad idea, it's simpler to just run a single
sinopia instance as a master

TODO: write some help in readme about it
2013-12-27 17:23:14 +04:00
Alex Kocharin
f3f4fdc4ac tests 2013-12-27 17:06:57 +04:00
Alex Kocharin
985d705ad2 working on tags / incomplete 2013-12-27 17:06:30 +04:00
Alex Kocharin
3b2bd161b7 logging bad versions 2013-12-21 16:09:29 +04:00
Alex Kocharin
a3a59aa8f3 reorganize tests, and add new ones 2013-12-19 19:11:54 +04:00
Alex Kocharin
d5d2a8bdcc moving unit tests to separate folder 2013-12-16 00:54:50 +04:00
Alex Kocharin
ef61515f28 try to fetch package from uplinks if user requested a tarball we don't know about
closes #29 + tests fix
2013-12-15 03:15:58 +04:00
Alex Kocharin
19e4d78197 test suite for #29 (nothing is fixed yet) 2013-12-13 20:49:48 +04:00
Alex Kocharin
ee16b06b3a style fix 2013-12-13 18:00:46 +04:00
Alex Kocharin
c75249b5b0 commenting out tests that doesn't work yet 2013-12-12 02:02:20 +04:00
Alex Kocharin
942a7747ac fixing tests 2013-12-12 02:01:23 +04:00
Alex Kocharin
203f0300e3 Merge branch '0.5.x' of github.com:rlidwka/sinopia
Conflicts:
	lib/storage.js
	test/start.sh
2013-12-12 01:44:29 +04:00
Alex Kocharin
7ee2361700 better tests for various tags (including bad ones), ref #21 2013-12-12 01:22:35 +04:00
Alex Kocharin
47a92ff273 fail-safe semver parsing + tests, ref #25 2013-12-12 00:51:48 +04:00
Brett Trotter
0b286d1fe3 exit with appropriate status code 2013-12-11 09:04:35 -06:00
Alex Kocharin
bbb402f762 detecting http loops 2013-12-09 07:59:31 +04:00
Alex Kocharin
2f45649a2c improving tags support, ref #8 2013-12-08 02:55:50 +04:00
Alex Kocharin
98d2c3ae18 tests fix 2013-11-24 21:13:21 +04:00
Alex Kocharin
13242c8237 add proxy support, fix #13 2013-11-24 21:07:18 +04:00
Alex Kocharin
aca1dc57d7 taking $PATH into account when launching tests 2013-10-28 10:01:27 +04:00
Alex Kocharin
5da3c8ba58 transaction stub 2013-10-26 15:43:42 +04:00
Alex Kocharin
78f856cf81 shasum check for uploaded tarballs 2013-10-22 11:45:19 +04:00
Alex Kocharin
8b314040d9 fixing race conditions when updating package data 2013-10-22 09:10:25 +04:00
Alex Kocharin
015623f9ae making various test cases work 2013-10-11 13:50:41 +04:00
Alex Kocharin
70f717a295 using undefined instead of anonymous for non-logged in users 2013-10-11 09:53:54 +04:00
Alex Kocharin
cd9f0d7044 disabling loop tests for a while 2013-09-29 08:05:20 +04:00
Alex Kocharin
21ad8945d9 update 2013-09-28 20:46:55 +04:00
Alex Kocharin
f92a839a7f test stuff 2013-09-28 15:14:51 +04:00
Alex Kocharin
c8bb68a4aa adding package version to remote repository 2013-09-28 15:08:38 +04:00
Alex Kocharin
0173c55ead publishing package to all relevant uplinks 2013-09-28 14:59:05 +04:00
Alex Kocharin
57b34a7637 config files splitting + fwd 2013-09-27 16:36:10 +04:00
Alex Kocharin
5dbc825892 through -> streams2 migrate - final 2013-09-27 15:31:28 +04:00
Alex Kocharin
361d653613 testing fetching files from uplinks 2013-09-27 12:56:44 +04:00
Alex Kocharin
102b125f14 moving to mocha for tests 2013-09-27 10:16:46 +04:00
Alex Kocharin
683f4657e4 forking 2 servers for tests 2013-09-27 08:57:09 +04:00
Alex Kocharin
6dc6f31579 better tests 2013-09-27 06:27:11 +04:00
Alex Kocharin
709ffe8e39 tests 2013-09-25 14:01:55 +04:00
Alex Kocharin
6c78876dcd starting to write tests 2013-09-25 12:10:12 +04:00