Closed Bug 1039191 Opened 10 years ago Closed 10 years ago

Automatically test the sample configuration during tests

Categories

(Hello (Loop) :: Server, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: alexis+bugs, Assigned: rhubscher)

Details

(Whiteboard: [qa+])

Attachments

(1 file)

56 bytes, text/x-github-pull-request
alexis+bugs
: review+
Details | Review
We should automatically test that the sample file is valid, by passing it to the config.js logic during the tests.
Whiteboard: [qa+]
Attached file Link to github PR
Attachment #8474483 - Flags: review?(alexis+bugs)
Assignee: nobody → rhubscher
Status: NEW → ASSIGNED
So https://github.com/mozilla-services/loop-server/pull/174 has been merged.
Can this bug be considered Resolved/Fixed?
https://github.com/mozilla-services/loop-server/commit/6c911f44fe7e8aa762cd27aa27c9162e44f19a5f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8474483 [details] [review]
Link to github PR

Already reviewed and merged.
Attachment #8474483 - Flags: review?(alexis+bugs) → review+
Yep.
$ make test

> mozilla-msisdn-gateway@0.5.0-DEV lint /Users/James/msisdn-gateway
> eslint msisdn-gateway test tools

[2014-08-19 18:13:58] INFO  WEBrick 1.3.1
[2014-08-19 18:13:58] INFO  ruby 2.0.0 (2014-02-24) [universal.x86_64-darwin13]
== Sinatra/1.4.5 has taken the stage on 4567 for production with backup from WEBrick
[2014-08-19 18:13:58] INFO  WEBrick::HTTPServer#start: pid=1187 port=4567


Server listening on http://127.0.0.1:5000
  config
    #validateKeys
      ✓ should throw an error if a key is missing 
      ✓ should not throw if all keys are valid 
    #hexKeyOfSize
      ✓ should check if all chars are hexadecimals 
      ✓ should check the size of the given key 
    sample.json
      ✓ should load.
...etc..
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: