fix(mongodbflex): print valid JSON for list cmds#1032
Merged
rubenhoenle merged 2 commits intomainfrom Oct 20, 2025
Merged
Conversation
Fyusel
reviewed
Oct 17, 2025
Fyusel
previously approved these changes
Oct 20, 2025
a735a35 to
6819cc5
Compare
Merging this branch changes the coverage (1 decrease, 2 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Fyusel
approved these changes
Oct 20, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
relates to STACKITCLI-244
Testing
stackit mongodbflex instance list-> should print human-readable message that no instances were foundstackit mongodbflex instance list -o json-> should print valid JSON outputstackit mongodbflex instance list -o yaml-> should print valid YAML outputstackit mongodbflex instance create --name my-instance --cpu 1 --ram 4 --acl 0.0.0.0/0stackit mongodbflex instance list-> should print a table with all mongodb instances which were foundstackit mongodbflex instance list -o json-> should print valid JSON outputstackit mongodbflex instance list -o yaml-> should print valid YAML outputexport INSTANCE_ID="6c709d4e-3d1c-4931-9667-dac42ff9043f"stackit mongodbflex user list --instance-id $INSTANCE_ID-> should print human-readable message that no users were foundstackit mongodbflex user list --instance-id $INSTANCE_ID -o json-> should print valid JSON outputstackit mongodbflex user list --instance-id $INSTANCE_ID -o yaml-> should print valid YAML outputstackit mongodbflex user create --instance-id $INSTANCE_ID --role read --database defaultstackit mongodbflex user list --instance-id $INSTANCE_ID-> should print a table of users which were foundstackit mongodbflex user list --instance-id $INSTANCE_ID -o json-> should print valid JSON outputstackit mongodbflex user list --instance-id $INSTANCE_ID -o yaml-> should print valid YAML outputstackit mongodbflex backup list --instance-id $INSTANCE_ID-> should print human-readable message that no backups were foundstackit mongodbflex backup list --instance-id $INSTANCE_ID -o json-> should print valid JSON outputstackit mongodbflex backup list --instance-id $INSTANCE_ID -o yaml-> should print valid YAML output9. Create a backup:(Not possible, there's no reliable way to create a backup on demand)10. Run the list backups command again-stackit mongodbflex backup list --instance-id $INSTANCE_ID-> should print a table of backups which were found-stackit mongodbflex backup list --instance-id $INSTANCE_ID -o json-> should print valid JSON output-stackit mongodbflex backup list --instance-id $INSTANCE_ID -o yaml-> should print valid YAML outputstackit mongodbflex user delete 20fee51d-763c-45ea-8196-ac1147db3b90 --instance-id $INSTANCE_IDstackit mongodbflex instance delete $INSTANCE_IDChecklist
make fmtmake generate-docs(will be checked by CI)make test(will be checked by CI)make lint(will be checked by CI)