summaryrefslogtreecommitdiff
path: root/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
diff options
context:
space:
mode:
authorHuayu Ouyang <huayu.ouyang@mongodb.com>2021-12-09 15:57:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-09 17:42:47 +0000
commit498f8a7cffd652321d235b4684ffad6897cdd792 (patch)
tree2c06419c112a035ec88db54de929d0365a5959ec /buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
parent61652acf89b2d9e5e3f22cfe74c1de0979d40cd1 (diff)
downloadmongo-498f8a7cffd652321d235b4684ffad6897cdd792.tar.gz
SERVER-61551 IDL compatibility checker should check chained structs
Diffstat (limited to 'buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl')
-rw-r--r--buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl54
1 files changed, 54 insertions, 0 deletions
diff --git a/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl b/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
index e866dbc24e0..3ba1907be5b 100644
--- a/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
+++ b/buildscripts/idl/tests/compatibility_test_pass/old/compatibility_test_pass_old.idl
@@ -443,6 +443,16 @@ structs:
missingUnstableFieldNewField:
type: string
+ CompatibleChainedStructReply:
+ description: "This reply contains an compatible chained struct"
+ chained_structs:
+ StructFieldTypeRecursiveReplyTwo: StructFieldTypeRecursiveReplyTwo
+
+ CompatibleChainedStructType:
+ description: "This struct type contains an compatible chained struct"
+ chained_structs:
+ StructCommandParameterTypeRecursive: StructCommandParameterTypeRecursive
+
commands:
testCommand:
description: "old passing test command"
@@ -1495,3 +1505,47 @@ commands:
missingUnstableFieldOldParameter:
type: int
reply_type: OkReply
+
+ chainedStructCompatible:
+ description: "new command passes because it contains a chained struct that has compatible
+ fields"
+ command_name: chainedStructCompatible
+ namespace: ignored
+ cpp_name: chainedStructCompatible
+ strict: true
+ api_version: "1"
+ reply_type: OkReply
+ chained_structs:
+ VariantStructRecursiveStruct: VariantStructRecursiveStruct
+
+ replyWithCompatibleChainedStruct:
+ description: "new command passes because its reply contains a chained struct that has
+ compatible fields"
+ command_name: replyWithCompatibleChainedStruct
+ namespace: ignored
+ cpp_name: replyWithCompatibleChainedStruct
+ strict: true
+ api_version: "1"
+ reply_type: CompatibleChainedStructReply
+
+ typeWithCompatibleChainedStruct:
+ description: "new command passes because its type contains a chained struct that has
+ compatible fields"
+ command_name: typeWithCompatibleChainedStruct
+ namespace: type
+ type: CompatibleChainedStructType
+ cpp_name: typeWithCompatibleChainedStruct
+ strict: true
+ api_version: "1"
+ reply_type: OkReply
+
+ incompatibleChainedType:
+ description: "new command passes because its chained types are compatible"
+ command_name: incompatibleChainedType
+ namespace: ignored
+ cpp_name: incompatibleChainedType
+ strict: true
+ api_version: "1"
+ reply_type: OkReply
+ chained_types:
+ intToIntString: intToIntString