Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3f4faf4
chnages added for the bug
cx-harshjeet-patil Jan 1, 2026
1c3f1d9
some new chnages for bug
cx-harshjeet-patil Jan 1, 2026
fc453ad
chnages restored
cx-harshjeet-patil Jan 1, 2026
f7d0138
comment removed
cx-harshjeet-patil Jan 1, 2026
111d604
code matched to main
cx-harshjeet-patil Jan 1, 2026
cd90cd3
new changes for the bug
cx-harshjeet-patil Jan 2, 2026
f5daffa
final code changes
cx-harshjeet-patil Jan 2, 2026
bd30069
new changes
cx-harshjeet-patil Jan 5, 2026
cd45691
removed unused dependency
cx-harshjeet-patil Jan 5, 2026
a2ec18f
file restored
cx-harshjeet-patil Jan 5, 2026
d8811b1
commit
cx-harshjeet-patil Jan 5, 2026
eeb6765
file restored
cx-harshjeet-patil Jan 5, 2026
07db916
Merge branch 'main' into bug/AST-127635
cx-anurag-dalke Jan 8, 2026
0dcef78
Test case correction
cx-harshjeet-patil Jan 12, 2026
e01449f
testing
cx-harshjeet-patil Jan 12, 2026
a41f969
new changes
cx-harshjeet-patil Jan 12, 2026
31c20b4
new commit
cx-harshjeet-patil Jan 12, 2026
1bbd257
unit test case fixed
cx-harshjeet-patil Jan 13, 2026
5bd2d9b
root_test restored
cx-harshjeet-patil Jan 13, 2026
0d36ff0
test case restored
cx-harshjeet-patil Jan 13, 2026
9d4ffcf
added viper reset for integration
cx-harshjeet-patil Jan 14, 2026
cdb0f9f
comment removed
cx-harshjeet-patil Jan 14, 2026
78154bb
removed buffer
cx-harshjeet-patil Jan 14, 2026
307fddc
util command restored
cx-harshjeet-patil Jan 15, 2026
a4f8c8b
new changes
cx-harshjeet-patil Jan 15, 2026
2ec9978
Merge branch 'main' into bug/AST-127635
cx-anjali-deore Jan 16, 2026
9174849
commit
cx-harshjeet-patil Jan 16, 2026
4c988f6
added cleanup function
cx-harshjeet-patil Jan 16, 2026
e80bdbd
new commit
cx-harshjeet-patil Jan 17, 2026
7a2647f
new commit
cx-harshjeet-patil Jan 18, 2026
475966c
restored file
cx-harshjeet-patil Jan 18, 2026
3789712
new commit
cx-harshjeet-patil Jan 19, 2026
ba59a20
added oauth override flag
cx-harshjeet-patil Jan 20, 2026
18379ae
flag chnages reverted
cx-harshjeet-patil Jan 21, 2026
2aea195
commit
cx-harshjeet-patil Jan 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/commands/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func TestCreateCommand_WithInvalidFlag_ShouldReturnExitCode1(t *testing.T) {

func executeTestCommand(cmd *cobra.Command, args ...string) error {
fmt.Println("Executing command with args ", args)
defer viper.Reset()
cmd.SetArgs(args)
cmd.SilenceUsage = true
return cmd.Execute()
Expand Down
6 changes: 6 additions & 0 deletions test/integration/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func TestSetConfigProperty_EnvVarConfigFilePath(t *testing.T) {

err, _ = executeCommand(t, "configure", "set", "--prop-name", "cx_client_id", "--prop-value", "example_client_id")
assert.NilError(t, err)
defer func() {
executeCommand(t, "configure", "set", "--prop-name", "cx_client_id", "--prop-value", "")
}()
}

func TestLoadConfiguration_ConfigFilePathFlag(t *testing.T) {
Expand Down Expand Up @@ -100,6 +103,9 @@ func TestSetConfigProperty_ConfigFilePathFlag(t *testing.T) {

err, _ = executeCommand(t, "configure", "set", "--prop-name", "cx_client_id", "--prop-value", "example_client_id", "--config-file-path", filePath)
assert.NilError(t, err)
defer func() {
executeCommand(t, "configure", "set", "--prop-name", "cx_client_id", "--prop-value", "")
}()
}

func TestLoadConfiguration_ConfigFilePathFlagFileWithoutPermission(t *testing.T) {
Expand Down
Loading