diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-08-04 17:29:34 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-08-04 17:29:34 -0400 |
commit | 66391a21a0a1482f54c29b759bacf88c806c490f (patch) | |
tree | 7f639ae8e3e25c6280b6c5a168b64a7bd66656bb /jstests/core/profile_mapreduce.js | |
parent | ad27c92e01758c96e7ace4cba13574e0d97a761d (diff) | |
download | mongo-66391a21a0a1482f54c29b759bacf88c806c490f.tar.gz |
SERVER-24614 Add Client Metadata's appname to system.profile
Diffstat (limited to 'jstests/core/profile_mapreduce.js')
-rw-r--r-- | jstests/core/profile_mapreduce.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/core/profile_mapreduce.js b/jstests/core/profile_mapreduce.js index 20e3b2e8fbf..181e8684501 100644 --- a/jstests/core/profile_mapreduce.js +++ b/jstests/core/profile_mapreduce.js @@ -49,6 +49,7 @@ assert(profileObj.hasOwnProperty("millis"), tojson(profileObj)); assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj)); assert(profileObj.hasOwnProperty("locks"), tojson(profileObj)); + assert.eq(profileObj.appName, "MongoDB Shell", tojson(profileObj)); // // Confirm metrics for mapReduce with sort stage. @@ -62,6 +63,7 @@ profileObj = getLatestProfilerEntry(testDB); assert.eq(profileObj.hasSortStage, true, tojson(profileObj)); + assert.eq(profileObj.appName, "MongoDB Shell", tojson(profileObj)); // // Confirm namespace field is correct when output is a collection. @@ -91,4 +93,5 @@ profileObj = getLatestProfilerEntry(testDB); assert.eq(profileObj.fromMultiPlanner, true, tojson(profileObj)); + assert.eq(profileObj.appName, "MongoDB Shell", tojson(profileObj)); })(); |