New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infrastructure command on bastion of Automate HA cluster for node delete #7944
Conversation
👷 Deploy Preview for chef-automate processing.
|
2972a32
to
47918b1
Compare
} | ||
for _, tt := range tests { | ||
t.Run(tt.testName, func(t *testing.T) { | ||
if err := runDeleteNodeCmd(tt.cmd, tt.args); (err != nil) != tt.wantErr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
condition is unnecessarily complex and the if condition also doesn't look correct, please simplify the conditions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
} | ||
}) | ||
t.Run(tt.testName, func(t *testing.T) { | ||
if err := preInfrastructureCmd(tt.cmd, tt.args); (err != nil) != tt.wantErr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
condition is unnecessarily complex and the condition also doesn't look correct, please simplify the conditions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
505684a
to
2169b11
Compare
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
Signed-off-by: Sunanda-Boorla <sboorla@progress.com>
…ete (#7944) * Infrastructure command on bastion Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * Infrastructure command on bastion Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * infrastructure command Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * Changes to increase the coverage Signed-off-by: sandhi <sagarwal@progress.com> * changes for coverage increase Signed-off-by: sandhi <sagarwal@progress.com> * Increasing code coverage Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * Reverting the node-delete change Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * Changes for test case failure Signed-off-by: sandhi <sagarwal@progress.com> * Revert doc changes Signed-off-by: sandhi <sagarwal@progress.com> * changes for test case failure Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * changes for test case failure Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * changes for test case failure Signed-off-by: Sunanda-Boorla <sboorla@progress.com> * Formatting Signed-off-by: Sunanda-Boorla <sboorla@progress.com> --------- Signed-off-by: Sunanda-Boorla <sboorla@progress.com> Signed-off-by: sandhi <sagarwal@progress.com> Co-authored-by: Sunanda-Boorla <sboorla@progress.com> Co-authored-by: sandhi <sagarwal@progress.com>
🔩 Description: What code changed, and why?
As a user of Automate HA, when I run chef-automate infrastructure and chef-automate infrastructure node-delete command on bastion system of Automate HA cluster, I should see output relevant to Automate HA infrastructure
⛓️ Related Resources
👍 Definition of Done
👟 How to Build and Test the Change
chef-automate infrastructure node-delete <node-id>
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
📷 Screenshots, if applicable
https://progresssoftware-my.sharepoint.com/:v:/g/personal/sboorla_progress_com/EdckQQBzYG1JkOtsf6qNp1oBXXJL0dztWa7PyEpcvJamAw?e=gzoFdo
https://progresssoftware-my.sharepoint.com/:v:/g/personal/sboorla_progress_com/EZln7QaOTvZEtQfgbPvGozEBqXmFWxKsXNvtYRc3KKKIVA?e=Pplfba
https://progresssoftware.sharepoint.com/:v:/s/ChefCoreC/ESdkFe-54vFPo-13qc-i1CQBvmUmQQfLdQmypLemy7J2oA?e=YKwNAu