oracle / oracle/oci-cli

Add a new command for self verification.

Open
#469 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

Issue type

Feature request.

Description

It would be nice if the OCI CLI could verify that everything was configured properly.

Currently this verification possibility is missing and we have to use other methods to check if the OCI CLI was correctly configured. For instance, I am using a dummy oci iam compartment list to check if the OCI configuration works (including authentification check).

Expectation
oci config verify
# OK
echo $?
# 0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing oci config command entry points and the authentication behavior exercised by oci iam compartment list. Define the verification command's success and failure behavior, including the requested OK output and exit code 0, then add coverage for those outcomes; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.