Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding structured data test.

This is also breaking thanks to the issue I found with our parser.
  • Loading branch information...
commit a416ad073bdea1512705a0e8a9a2d3c3749e7e21 1 parent fc0922f
@squeeks authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/structure_data.js
View
13 test/structure_data.js
@@ -0,0 +1,13 @@
+var syslogParser = require('../lib/glossy/parse.js'),
+ assert = require('assert');
+
+assert.ok(syslogParser, 'parser loaded');
+var singleStructure = '[exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"]';
+assert.deepEqual(syslogParser.parseStructure(singleStructure), {
+ 'exampleSDID@32473': {
+ iut: '3',
+ eventSource: 'Application',
+ eventID: '1011'
+ }
+});
+
Please sign in to comment.
Something went wrong with that request. Please try again.