-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure and updated Runtime REST and CACHE setting using in CLI (#2435
) ## Why make this change? Resolved issue #2419 This change is made to enable dab users to update/change values of Rest and Cache runtime settings from CLI commands. <img width="640" alt="image" src="https://github.com/user-attachments/assets/9edaa021-58fb-494e-9c74-a8de10d20102"> <img width="647" alt="image" src="https://github.com/user-attachments/assets/68535a67-fe8d-4396-b874-39ea893e1831"> ## What is this change? 1. Made changes in ConfigureOptions.cs to include the additional parameters for Rest and Cache. 2. Changes in ConfigureGenerator.cs to include the function to update the newly incoming values in the parameters of Rest and Cache runtime settings 3. Changes in Tests to add individual tests for Enabled, Path and Request-Body-Strict for Rest Runtime settings and Enabled and TTL for Cache runtime settings and have two test for multiple parameters in a single command. ## How was this tested? - [x] Integration Tests - [x] Unit Tests ## Sample Request(s) `dab configure --runtime.rest.enabled false -c {Config-File-Name}` Updating the Rest.Enabled value <img width="629" alt="image" src="https://github.com/user-attachments/assets/4132e372-f14f-4553-aa48-7c8fd5731cf2"> `dab configure --runtime.rest.path "/updating -c {Config-File-Name}` Updating the Rest.Path value <img width="623" alt="image" src="https://github.com/user-attachments/assets/23fa44de-9d02-4e0a-ba91-237e937908da"> Errors or Negative Test cases in updating Rest.Path - updating - /upda/ting - /upda ting - /upda@ting <img width="670" alt="image" src="https://github.com/user-attachments/assets/13f5b42e-33ff-4d0d-b5e3-452810d9a4f3"> Cache Sample Requests Update Enabled <img width="673" alt="image" src="https://github.com/user-attachments/assets/ba5b041d-4f33-4e61-96ed-72927dec5b23"> Update TTL <img width="677" alt="image" src="https://github.com/user-attachments/assets/6b0a3c30-b7b8-4c69-9af2-353ea9fc851f">
- Loading branch information
Showing
5 changed files
with
450 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.