diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-05-03 13:25:41 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-05-05 17:29:59 -0700 |
commit | a05c579f1c3695c4ddead0a5cfc2c92422bd4f8f (patch) | |
tree | 769ad843f263d354bcf6ed544093ac562cc8b2f4 /tests | |
parent | f01626d5bad8eb0298897e90a124301008cdd0da (diff) |
meta: print in json for stack/frames, cmdline and version
- Follow formatting rules based on RFC4627 -
http://www.ietf.org/rfc/rfc4627.txt
- Add checks for json in regression test meta.t
Change-Id: I480d32ce042b202d3ed8939623c629a03b458551
BUG: 1089216
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/7653
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/basic/meta.t | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/basic/meta.t b/tests/basic/meta.t index baea27d3dff..7a810bcbc35 100755 --- a/tests/basic/meta.t +++ b/tests/basic/meta.t @@ -19,8 +19,13 @@ EXPECT 'Started' volinfo_field $V0 'Status'; TEST glusterfs -s $H0 --volfile-id $V0 $M0; -# the read() on frames file itself should be visible as a frame -TEST grep -q READ $M0/.meta/frames; +# verify json validity + +TEST /usr/bin/json_verify < $M0/.meta/frames; + +TEST /usr/bin/json_verify < $M0/.meta/cmdline; + +TEST /usr/bin/json_verify < $M0/.meta/version; # default log level (INFO) is 7 TEST grep -q 7 $M0/.meta/logging/loglevel; |