summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorRishab Joshi <rishab.joshi@mongodb.com>2021-02-05 05:28:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-05 11:07:28 +0000
commitce20c665a0ce3ce04c29d3af89f09f503051e4ca (patch)
treedf1135ea7cc8fa42b92a6a735084a408bc56f646 /src/mongo/idl
parent22e1c611c4c3c42ed8402dbefac3d5a6c21abe10 (diff)
downloadmongo-ce20c665a0ce3ce04c29d3af89f09f503051e4ca.tar.gz
SERVER-54028 Add support for command alias in IDL spec.
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/unittest.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/idl/unittest.idl b/src/mongo/idl/unittest.idl
index 1f1af1ceb24..b53ea3e28ca 100644
--- a/src/mongo/idl/unittest.idl
+++ b/src/mongo/idl/unittest.idl
@@ -1042,6 +1042,16 @@ commands:
api_version: "1"
reply_type: OkReply
+ # Test whether the C++ code for a command with alias name is currently generated.
+ APIVersion1CommandWithAlias:
+ description: A versioned API command with alias
+ command_name: NewCommandName
+ command_alias: OldCommandName
+ namespace: ignored
+ strict: true
+ api_version: "1"
+ reply_type: OkReply
+
##################################################################################################
#
# Test field lists