You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Cli.Tests/EndToEndTests.cs
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -136,14 +136,14 @@ public void TestInitializingRestAndGraphQLGlobalSettings()
136
136
}
137
137
138
138
/// <summary>
139
-
/// Test to validate the usage of --graphql.multiple-create.enabled option of the init command for all database types.
139
+
/// Test to validate the usage of --graphql.multiple-mutations.create.enabled option of the init command for all database types.
140
140
///
141
141
/// 1. Behavior for database types other than MsSQL:
142
-
/// - Irrespective of whether the --graphql.multiple-create.enabled option is used or not, fields related to multiple-create will NOT be written to the config file.
142
+
/// - Irrespective of whether the --graphql.multiple-mutations.create.enabled option is used or not, fields related to multiple-create will NOT be written to the config file.
143
143
/// - As a result, after deserialization of such a config file, the Runtime.GraphQL.MultipleMutationOptions is expected to be null.
144
144
/// 2. Behavior for MsSQL database type:
145
145
///
146
-
/// a. When --graphql.multiple-create.enabled option is used
146
+
/// a. When --graphql.multiple-mutations.create.enabled option is used
147
147
/// - In this case, the fields related to multiple mutation and multiple create operations will be written to the config file.
148
148
/// "multiple-mutations": {
149
149
/// "create": {
@@ -152,32 +152,32 @@ public void TestInitializingRestAndGraphQLGlobalSettings()
152
152
/// }
153
153
/// After deserializing such a config file, the Runtime.GraphQL.MultipleMutationOptions is expected to be non-null and the value of the "enabled" field is expected to be the same as the value passed in the init command.
154
154
///
155
-
/// b. When --graphql.multiple-create.enabled option is not used
155
+
/// b. When --graphql.multiple-mutations.create.enabled option is not used
156
156
/// - In this case, fields related to multiple mutation and multiple create operations will NOT be written to the config file.
157
157
/// - As a result, after deserialization of such a config file, the Runtime.GraphQL.MultipleMutationOptions is expected to be null.
158
158
///
159
159
/// </summary>
160
-
/// <param name="isMultipleCreateEnabled">Value interpreted by the CLI for '--graphql.multiple-create.enabled' option of the init command.
160
+
/// <param name="isMultipleCreateEnabled">Value interpreted by the CLI for '--graphql.multiple-mutations.create.enabled' option of the init command.
161
161
/// When not used, CLI interprets the value for the option as CliBool.None
162
162
/// When used with true/false, CLI interprets the value as CliBool.True/CliBool.False respectively.
163
163
/// </param>
164
164
/// <param name="expectedValueForMultipleCreateEnabledFlag"> Expected value for the multiple create enabled flag in the config file.</param>
165
165
[DataTestMethod]
166
-
[DataRow(CliBool.True,"mssql",DatabaseType.MSSQL,DisplayName="Init command with '--graphql.multiple-create.enabled true' for MsSql database type")]
167
-
[DataRow(CliBool.False,"mssql",DatabaseType.MSSQL,DisplayName="Init command with '--graphql.multiple-create.enabled false' for MsSql database type")]
168
-
[DataRow(CliBool.None,"mssql",DatabaseType.MSSQL,DisplayName="Init command without '--graphql.multiple-create.enabled' option for MsSql database type")]
169
-
[DataRow(CliBool.True,"mysql",DatabaseType.MySQL,DisplayName="Init command with '--graphql.multiple-create.enabled true' for MySql database type")]
170
-
[DataRow(CliBool.False,"mysql",DatabaseType.MySQL,DisplayName="Init command with '--graphql.multiple-create.enabled false' for MySql database type")]
171
-
[DataRow(CliBool.None,"mysql",DatabaseType.MySQL,DisplayName="Init command without '--graphql.multiple-create.enabled' option for MySql database type")]
172
-
[DataRow(CliBool.True,"postgresql",DatabaseType.PostgreSQL,DisplayName="Init command with '--graphql.multiple-create.enabled true' for PostgreSql database type")]
173
-
[DataRow(CliBool.False,"postgresql",DatabaseType.PostgreSQL,DisplayName="Init command with '--graphql.multiple-create.enabled false' for PostgreSql database type")]
174
-
[DataRow(CliBool.None,"postgresql",DatabaseType.PostgreSQL,DisplayName="Init command without '--graphql.multiple-create.enabled' option for PostgreSql database type")]
175
-
[DataRow(CliBool.True,"dwsql",DatabaseType.DWSQL,DisplayName="Init command with '--graphql.multiple-create.enabled true' for dwsql database type")]
176
-
[DataRow(CliBool.False,"dwsql",DatabaseType.DWSQL,DisplayName="Init command with '--graphql.multiple-create.enabled false' for dwsql database type")]
177
-
[DataRow(CliBool.None,"dwsql",DatabaseType.DWSQL,DisplayName="Init command without '--graphql.multiple-create.enabled' option for dwsql database type")]
178
-
[DataRow(CliBool.True,"cosmosdb_nosql",DatabaseType.CosmosDB_NoSQL,DisplayName="Init command with '--graphql.multiple-create.enabled true' for cosmosdb_nosql database type")]
179
-
[DataRow(CliBool.False,"cosmosdb_nosql",DatabaseType.CosmosDB_NoSQL,DisplayName="Init command with '--graphql.multiple-create.enabled false' for cosmosdb_nosql database type")]
180
-
[DataRow(CliBool.None,"cosmosdb_nosql",DatabaseType.CosmosDB_NoSQL,DisplayName="Init command without '--graphql.multiple-create.enabled' option for cosmosdb_nosql database type")]
166
+
[DataRow(CliBool.True,"mssql",DatabaseType.MSSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for MsSql database type")]
167
+
[DataRow(CliBool.False,"mssql",DatabaseType.MSSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for MsSql database type")]
168
+
[DataRow(CliBool.None,"mssql",DatabaseType.MSSQL,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for MsSql database type")]
169
+
[DataRow(CliBool.True,"mysql",DatabaseType.MySQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for MySql database type")]
170
+
[DataRow(CliBool.False,"mysql",DatabaseType.MySQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for MySql database type")]
171
+
[DataRow(CliBool.None,"mysql",DatabaseType.MySQL,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for MySql database type")]
172
+
[DataRow(CliBool.True,"postgresql",DatabaseType.PostgreSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for PostgreSql database type")]
173
+
[DataRow(CliBool.False,"postgresql",DatabaseType.PostgreSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for PostgreSql database type")]
174
+
[DataRow(CliBool.None,"postgresql",DatabaseType.PostgreSQL,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for PostgreSql database type")]
175
+
[DataRow(CliBool.True,"dwsql",DatabaseType.DWSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for dwsql database type")]
176
+
[DataRow(CliBool.False,"dwsql",DatabaseType.DWSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for dwsql database type")]
177
+
[DataRow(CliBool.None,"dwsql",DatabaseType.DWSQL,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for dwsql database type")]
178
+
[DataRow(CliBool.True,"cosmosdb_nosql",DatabaseType.CosmosDB_NoSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for cosmosdb_nosql database type")]
179
+
[DataRow(CliBool.False,"cosmosdb_nosql",DatabaseType.CosmosDB_NoSQL,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for cosmosdb_nosql database type")]
180
+
[DataRow(CliBool.None,"cosmosdb_nosql",DatabaseType.CosmosDB_NoSQL,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for cosmosdb_nosql database type")]
@@ -216,7 +216,7 @@ public void TestEnablingMultipleCreateOperation(CliBool isMultipleCreateEnabled,
216
216
}
217
217
else
218
218
{
219
-
Assert.IsNull(runtimeConfig.Runtime.GraphQL.MultipleMutationOptions,message:"MultipleMutationOptions is expected to be null because a) DB type is not MsSQL or b) Either --graphql.multiple-create.enabled option was not used or no value was provided.");
219
+
Assert.IsNull(runtimeConfig.Runtime.GraphQL.MultipleMutationOptions,message:"MultipleMutationOptions is expected to be null because a) DB type is not MsSQL or b) Either --graphql.multiple-mutations.create.enabled option was not used or no value was provided.");
Copy file name to clipboardExpand all lines: src/Cli.Tests/InitTests.cs
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -412,43 +412,43 @@ public Task GraphQLPathWithoutStartingSlashWillHaveItAdded()
412
412
}
413
413
414
414
/// <summary>
415
-
/// Test to validate the contents of the config file generated when init command is used with --graphql.multiple-create.enabled flag option for different database types.
415
+
/// Test to validate the contents of the config file generated when init command is used with --graphql.multiple-mutations.create.enabled flag option for different database types.
416
416
///
417
417
/// 1. For database types other than MsSQL:
418
-
/// - Irrespective of whether the --graphql.multiple-create.enabled option is used or not, fields related to multiple-create will NOT be written to the config file.
418
+
/// - Irrespective of whether the --graphql.multiple-mutations.create.enabled option is used or not, fields related to multiple-create will NOT be written to the config file.
419
419
///
420
420
/// 2. For MsSQL database type:
421
-
/// a. When --graphql.multiple-create.enabled option is used
421
+
/// a. When --graphql.multiple-mutations.create.enabled option is used
422
422
/// - In this case, the fields related to multiple mutation and multiple create operations will be written to the config file.
423
423
/// "multiple-mutations": {
424
424
/// "create": {
425
425
/// "enabled": true/false
426
426
/// }
427
427
/// }
428
428
///
429
-
/// b. When --graphql.multiple-create.enabled option is not used
429
+
/// b. When --graphql.multiple-mutations.create.enabled option is not used
430
430
/// - In this case, fields related to multiple mutation and multiple create operations will NOT be written to the config file.
431
431
///
432
432
/// </summary>
433
433
[DataTestMethod]
434
-
[DataRow(DatabaseType.MSSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-create.enabled true' for MsSQL database type")]
435
-
[DataRow(DatabaseType.MSSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-create.enabled false' for MsSQL database type")]
436
-
[DataRow(DatabaseType.MSSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-create.enabled' option for MsSQL database type")]
437
-
[DataRow(DatabaseType.PostgreSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-create.enabled true' for PostgreSQL database type")]
438
-
[DataRow(DatabaseType.PostgreSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-create.enabled false' for PostgreSQL database type")]
439
-
[DataRow(DatabaseType.PostgreSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-create.enabled' option for PostgreSQL database type")]
440
-
[DataRow(DatabaseType.MySQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-create.enabled true' for MySQL database type")]
441
-
[DataRow(DatabaseType.MySQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-create.enabled false' for MySQL database type")]
442
-
[DataRow(DatabaseType.MySQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-create.enabled' option for MySQL database type")]
443
-
[DataRow(DatabaseType.CosmosDB_NoSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-create.enabled true' for CosmosDB_NoSQL database type")]
444
-
[DataRow(DatabaseType.CosmosDB_NoSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-create.enabled false' for CosmosDB_NoSQL database type")]
445
-
[DataRow(DatabaseType.CosmosDB_NoSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-create.enabled' option for CosmosDB_NoSQL database type")]
446
-
[DataRow(DatabaseType.CosmosDB_PostgreSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-create.enabled true' for CosmosDB_PostgreSQL database type")]
447
-
[DataRow(DatabaseType.CosmosDB_PostgreSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-create.enabled false' for CosmosDB_PostgreSQL database type")]
448
-
[DataRow(DatabaseType.CosmosDB_PostgreSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-create.enabled' option for CosmosDB_PostgreSQL database type")]
449
-
[DataRow(DatabaseType.DWSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-create.enabled true' for DWSQL database type")]
450
-
[DataRow(DatabaseType.DWSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-create.enabled false' for DWSQL database type")]
451
-
[DataRow(DatabaseType.DWSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-create.enabled' option for DWSQL database type")]
434
+
[DataRow(DatabaseType.MSSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for MsSQL database type")]
435
+
[DataRow(DatabaseType.MSSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for MsSQL database type")]
436
+
[DataRow(DatabaseType.MSSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for MsSQL database type")]
437
+
[DataRow(DatabaseType.PostgreSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for PostgreSQL database type")]
438
+
[DataRow(DatabaseType.PostgreSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for PostgreSQL database type")]
439
+
[DataRow(DatabaseType.PostgreSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for PostgreSQL database type")]
440
+
[DataRow(DatabaseType.MySQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for MySQL database type")]
441
+
[DataRow(DatabaseType.MySQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for MySQL database type")]
442
+
[DataRow(DatabaseType.MySQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for MySQL database type")]
443
+
[DataRow(DatabaseType.CosmosDB_NoSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for CosmosDB_NoSQL database type")]
444
+
[DataRow(DatabaseType.CosmosDB_NoSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for CosmosDB_NoSQL database type")]
445
+
[DataRow(DatabaseType.CosmosDB_NoSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for CosmosDB_NoSQL database type")]
446
+
[DataRow(DatabaseType.CosmosDB_PostgreSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for CosmosDB_PostgreSQL database type")]
447
+
[DataRow(DatabaseType.CosmosDB_PostgreSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for CosmosDB_PostgreSQL database type")]
448
+
[DataRow(DatabaseType.CosmosDB_PostgreSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for CosmosDB_PostgreSQL database type")]
449
+
[DataRow(DatabaseType.DWSQL,CliBool.True,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled true' for DWSQL database type")]
450
+
[DataRow(DatabaseType.DWSQL,CliBool.False,DisplayName="Init command with '--graphql.multiple-mutations.create.enabled false' for DWSQL database type")]
451
+
[DataRow(DatabaseType.DWSQL,CliBool.None,DisplayName="Init command without '--graphql.multiple-mutations.create.enabled' option for DWSQL database type")]
Copy file name to clipboardExpand all lines: src/Cli/Commands/InitOptions.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ public InitOptions(
139
139
[Option("rest.request-body-strict",Required=false,HelpText="(Default: false) When true, rejects extraneous/unmapped fields in the REST request body. When false, allows and ignores them.")]
[Option("mcp.aggregate-records.query-timeout",Required=false,HelpText="Set the execution timeout in seconds for the aggregate-records MCP tool. Default: 30 (integer). Range: 1-600.")]
0 commit comments