Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that .kuzzlerc.sample is well-formed #1312

Merged
merged 3 commits into from
Jun 4, 2019
Merged

Conversation

scottinet
Copy link
Contributor

@scottinet scottinet commented May 28, 2019

Description

The .kuzzlerc.sample file at the root of the kuzzle directory is a working configuration file. Or at least, it should be: it sometimes happens to be malformed, which can be frustrating for users.

To prevent that, this PR adds a unit test to check that the sample configuration file is well formed.
It loads the JSON file exactly as rc does, by using strip-json-comments on it.

There is no label on that PR on purpose: I think that this PR should go in the "Others" chapter of the changelog.

Other changes

  • Wrapped the content of the kuzzlerc.sample file to 80 characters to make it more readable in terminals.
  • Fix outdated URLs

@scottinet scottinet self-assigned this May 28, 2019
@codecov
Copy link

codecov bot commented May 28, 2019

Codecov Report

Merging #1312 into 1-dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            1-dev    #1312   +/-   ##
=======================================
  Coverage   93.79%   93.79%           
=======================================
  Files          98       98           
  Lines        6967     6967           
=======================================
  Hits         6535     6535           
  Misses        432      432

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd0b88b...c6246e4. Read the comment docs.

@scottinet scottinet merged commit d49dc01 into 1-dev Jun 4, 2019
@scottinet scottinet deleted the test-kuzzlerc-sample branch June 4, 2019 09:03
@Aschen Aschen mentioned this pull request Jun 14, 2019
Aschen added a commit that referenced this pull request Jun 14, 2019
Release 1.8.0

Bug fixes

    [ #1311 ] Fix promise leaks (scottinet)
    [ #1298 ] Fix disabled protocol initialization (Aschen)
    [ #1297 ] Fix timeouts on plugin action returing the request (benoitvidis)
    [ #1288 ] Fix an error when trying a non-partial bulk update (scottinet)
    [ #1286 ] Allows bulk inserts on aliases (benoitvidis)
    [ #1282 ] Scan keys on redis cluster (benoitvidis)
    [ #1279 ] Users must be authenticated to use auth:logout (scottinet)

New features

    [ #1315 ] Add the new Vault module to handle encrypted application secrets (Aschen)
    [ #1302 ] Add write and mWrite (Aschen)
    [ #1305 ] Add pipes & hooks wildcard event (thomasarbona)

Enhancements

    [ #1318 ] Add a maximum ttl to auth:login (benoitvidis)
    [ #1301 ] Upgrade the WebSocket libraries (scottinet)
    [ #1308 ] Events triggering refactor (scottinet)
    [ #1300 ] Collection specifications methods cloisoned to a collection (thomasarbona)
    [ #1295 ] Improve validation error messages (benoitvidis)
    [ #1292 ] Throw an error when the realtime controller is invoked by plugin developers (benoitvidis)
    [ #1257 ] Add ability to define mapping policy for new fields (Aschen)
    [ #1291 ] Fix --help on subcommands (Yoann-Abbes)
    [ #1289 ] Handle ping/pong packets (scottinet)
    [ #1273 ] Fix incomplete access logs (scottinet)

Others

    [ #1317 ] Add ps dependency to plugin-dev Docker image for pm2 (benoitvidis)
    [ #1312 ] Check that .kuzzlerc.sample is well-formed (scottinet)
    [ #1299 ] Add Kuzzle Nightly & Redis 3 and 4 test (alexandrebouthinon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants