Juan Picado @jotadeveloper
c264f944fb
fix: unpublish and add or remove star colision ( #1434 )
...
* fix: unpublish and add or remove star colision
The issue was the npm star use a similar payload, but we did not check properly the shape of the payload, this fix and allow unpublish correctly.
Improve unit testing for publishing and unpublishing
Add new code documentation for future changes.
* chore: update secrets baseline
* chore: add missing type
this will requires update types in the future
2019-08-10 13:38:06 +02:00
Juan Picado @jotadeveloper
e35d8d99db
Merge pull request #1409 from verdaccio/fix-1400
...
fix: allows pkg names that starts with dash
2019-07-28 23:11:03 +02:00
Juan Picado @jotadeveloper
be8fed50d9
refactor: add generatePackageMetadata utility
...
- Tests suites must be independent each other, this is a refactor that allow star endpoint to be fully independent.
- Add putPackage utility to put new packages
2019-07-27 23:48:00 +02:00
Juan Picado @jotadeveloper
e319435d73
fix: allows pkg names that start with dash
...
Description
In sinopia 9f662a69e1 (diff-50e3aa130a4f97a42ee2cf111c7b1d9d)
a validation name for packages that start with dashs was added due this pattern is reserved by couchdb, but npmjs allows that now. I guess this is not a restriction anymore.
fix: https://github.com/verdaccio/verdaccio/issues/1400
2019-07-27 18:28:41 +02:00
Juan Picado @jotadeveloper
54e62fbb53
chore: add supertest link
2019-07-27 13:01:58 +02:00
Juan Picado @jotadeveloper
851cacf5af
chore: update readme test
2019-07-27 12:58:48 +02:00
Juan Picado @jotadeveloper
ea633eb977
chore: update js to ts extensions
2019-07-27 12:55:20 +02:00
Juan Picado @jotadeveloper
138748830b
chore: fix typo
2019-07-27 12:49:34 +02:00
Juan Picado @jotadeveloper
ffe7b699f2
chore: update readme for tests
2019-07-27 12:44:27 +02:00
Juan Picado @jotadeveloper
293132772f
chore: organize readme sections
2019-07-27 09:23:58 +02:00
Juan Picado @jotadeveloper
37f48aa1ce
chore: add debug info about run the unit test
2019-07-27 08:51:38 +02:00
Juan Picado @jotadeveloper
b96445f0c7
chore: fix typo
2019-07-27 08:38:56 +02:00
Juan Picado @jotadeveloper
be7bbe9e60
chore: increase unit testing documentation
2019-07-27 08:37:33 +02:00
Juan Picado @jotadeveloper
aa94aa9b0c
chore: remove ununsed prop in storage spec config file
2019-07-27 07:21:45 +02:00
Juan Picado @jotadeveloper
85a1fbe96e
chore: add extra timeout for some heavy test
2019-07-27 07:20:30 +02:00
Juan Picado @jotadeveloper
7aef6d8a59
chore: organize block unit test
...
add some extra context
2019-07-27 07:17:08 +02:00
Juan Picado @jotadeveloper
f4e7149806
refactor: add formatters
2019-07-26 09:35:19 +02:00
Juan Picado @jotadeveloper
263f051507
refactor: add levels file
2019-07-26 09:34:16 +02:00
Juan Picado @jotadeveloper
3beb57f7f6
test: add unit test for parser logger strings
2019-07-26 09:33:17 +02:00
Juan Picado @jotadeveloper
66f4197236
feat: convert project to typescript ( #1374 )
...
* chore: test
* chore: add
* chore: more progress
* chore: progress in migration, fix prettier parser
* chore: reduce tsc errors
* chore: refactor storage utils types
* chore: refactor utils types
* chore: refactor local storage types
* chore: refactor config utils types
* chore: refactor tsc types
* refactor: apply eslint fix, tabs etc
* chore: fix lint errors
* test: update unit test conf to typescript setup
few test refactored to typescript
* chore: enable more unit test
migrate to typescript
* chore: migrate storage test to tsc
* chore: migrate up storage test to tsc
* refactor: enable plugin and auth test
* chore: migrate plugin loader test
* chore: update dependencies
* chore: migrate functional test to typescript
* chore: add codecove
* chore: update express
* chore: downgrade puppeteer
The latest version does not seems to work properly fine.
* chore: update dependencies
2019-07-16 08:40:01 +02:00
Juan Picado @jotadeveloper
a0cf98546b
chore: update dependencies
...
regular maintenance
2019-07-08 09:23:07 +02:00
Juan Picado @jotadeveloper
d252e66588
Merge remote-tracking branch 'origin/master' into 4.1.x
...
# Conflicts:
# test/unit/modules/cli/cli.spec.js
2019-06-20 15:10:26 +02:00
Daniel Ruf
a92bd5f633
fix: correctly check the keepAliveTimeout value, fixes #1352 ( #1353 )
...
* fix: correctly check the keepAliveTimeout value, fixes #1352
* test: check keepAliveTimeout configurations using the CLI
2019-06-19 09:00:48 +02:00
Juan Picado @jotadeveloper
e3da67fad9
chore: avoid template test case is being run
2019-06-13 22:16:40 +02:00
Juan Picado @jotadeveloper
0fa26293a8
Merge remote-tracking branch 'origin/master' into 4.1.x
2019-06-13 22:04:35 +02:00
Will Smythe
eb7a8e3528
fix(api): return 503 to npm/yarn on uplink connection timeout ( #1331 )
...
fix #1328 and #720
Type: bug
The following has been addressed in the PR:
Instead of returning a 404 (Not Found) when npm, yarn, etc requests a package and the package cannot be acquired from an uplink due to a connection timeout, socket timeout, or connection reset problem, a 503 (service unavailable) is returned by Verdaccio instead. In limited testing of a few versions of npm and yarn, both of these clients correctly attempt to retry the request when a 503 is returned.
Added functional tests to verify the behavior (this adds a dev dependency on nock, which provides HTTP request mocking
Description:
This resolves issue #1328 and #720 , and ensures npm/yarn install commands don't fail immediately when there is an intermittent network timeout problem with an uplink. Instead Verdaccio will appropriately respond to the client with a 503. A 404 response (current behavior) incorrectly tells the client that the package does not exist (which may or may not be true) and to not try again.
2019-06-13 21:42:01 +02:00
Juan Picado @jotadeveloper
f242d1b261
chore(docs): add testing development notes ( #1343 )
...
* chore: add testing notes
co-contributions by:
@lirantal @DanielRuf
This PR aims to add on boarding proccess for new contributors to test verdaccio, update test or add new features.
* chore: add new sections
* chore: add functional test notes
* chore: fix typos
Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>
* chore: add functional test block
Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>
* chore: add before commit guide
Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>
* chore: add ci notes
Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>
* chore: extend notes
Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>
* chore: update ci notes
Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
* chore: update test/README.md
Co-Authored-By: Liran Tal <liran.tal@gmail.com>
2019-06-13 18:28:43 +02:00
Juan Picado @jotadeveloper
85c1bd1f76
fix(api): force authenticate on login ( #1347 )
...
When a user has a valid token and tries to login with other credentials the endpoint returns 201.
The reason was if another user logged previously and had a valid token stored in the terminal. We must authenticate any user that tries to log in even if the token stored is valid.
We must check credentials again and return a new token, if the credentials are wrong we reject the login. Furthermore, the new token will update the list of groups.
2019-06-13 06:58:43 +02:00
Juan Picado @jotadeveloper
46eeb7e963
chore: remove test workflow from actions ( #1323 )
...
* chore: remove test workflow from actions
It fails randomly, we need to investigate the reasons.
* chore: re-enable unit test
2019-05-25 15:21:55 +02:00
Juan Picado @jotadeveloper
1f42c526ae
chore: disable unit test
...
Not the best, but I don't want this fails on middle of the release
2019-05-25 14:58:53 +02:00
Honza Hommer
95d134bdfd
feat: parse YAML/JSON/JS config file ( #1258 )
...
* Parse JSON/YAML config file.
* fix missing export
* fix: typos
* test(config): remove JSON test
* feat: better config error handling, tests
* fix: detect YAML config file via extension
* docs: https://github.com/verdaccio/website/pull/99
2019-05-21 22:50:14 -07:00
Juan Picado @jotadeveloper
8786a3740e
test: relocate api spec test
2019-05-20 08:47:52 +02:00
Juan Picado @jotadeveloper
4bf6b3b844
test: fix broken test for validate parameters
2019-05-20 08:29:17 +02:00
Juan Picado @jotadeveloper
b1eb7c6278
test: relocate unit test cli, proxy, utils
2019-05-20 07:53:47 +02:00
Juan Picado @jotadeveloper
ca2e23cf9d
test: relocate unit test
2019-05-20 07:41:12 +02:00
Juan Picado @jotadeveloper
596c727a35
test: relocate notification test
2019-05-20 07:33:39 +02:00
Juan Picado @jotadeveloper
e7400cef71
test: relocate plugin storage
2019-05-20 07:26:40 +02:00
Juan Picado @jotadeveloper
3929633f7e
test: relocate test
2019-05-19 23:07:17 +02:00
Juan Picado @jotadeveloper
b4c42c1a78
test: relocate spec test
2019-05-19 22:23:12 +02:00
Juan Picado @jotadeveloper
2f3ec2ce42
test: increase usage of constants
2019-05-19 21:37:43 +02:00
Juan Picado @jotadeveloper
d052bcef89
test: relocate helpers
2019-05-19 21:03:45 +02:00
Juan Picado @jotadeveloper
26c5e2d670
Merge branch 'master' into 4.1.x
2019-05-17 08:04:13 -07:00
Juan Picado @jotadeveloper
7686417f29
feat: update readme v4 ( #1312 )
...
* feat: update readme v4
* chore: update @verdaccio/ui-theme@0.1.9
* chore: update @verdaccio/ui-theme@0.1.10
2019-05-17 08:03:58 -07:00
Marc Udoff
b9ffac5d1b
feat: plugin support to filter packages
...
Add a plugin that can filter all package metadata before being returned.
This enables blocking of packages from verdaccio.
IPluginStorageFilter are loaded like other plugins from the config.
Verdaccio will look for plugins in config.filters and pass this to
storage.init. This is the same design as other plugins and will be
dynamically found with the same rules. These plugins must impliment
a filter_metadata method, which is called serially (in the order
loaded from the config) for every metadata request. It gets a current
copy of a package metadata and may choose to modify it as required.
For example, this may be used to block a bad version of a package or
add a time delay from when new packages can be used from your
registry. Errors in a filter will cause a 404, similar to upLinkErrors
as it is not safe to recover gracefully from them. Note: When version
is removed, be careful about updating tags.
Fixes : #818
2019-05-15 20:04:41 -04:00
Ayush Sharma
a588588cf3
chore: removes verdaccio update banner ( #1309 )
2019-05-12 10:38:32 -07:00
Juan Picado @jotadeveloper
b4bc6ff4e5
chore: fix #1292 add missing dependencies
...
remove non required dependencies
2019-05-09 23:41:16 +02:00
Daniel Ruf
ff71640e8a
feat: replace chalk with kleur ( #1289 ) @DanielRuf
...
* chore: replace chalk with kleur
* build: add updated lockfile
* chore: add flow-typed stub for kleur 3.0.3
* chore: remove unnecessary whitespace
* test: update snapshot for update-banner.js
* chore: migrate logger.js from chalk to kleur
* chore: use import instead of require
2019-04-29 08:44:29 +02:00
Juan Picado @jotadeveloper
9abe29593c
test: unit test for scoped download tarball
2019-04-28 09:34:59 +02:00
Juan Picado @jotadeveloper
4242eaa6b8
test: add unit test for whoami referer endpoint
2019-04-28 09:07:48 +02:00
Juan Picado @jotadeveloper
450224dc1f
chore: removed old integration test code
...
this is not in usage, we remove it.
2019-04-28 08:32:10 +02:00