Skip to content

Commit

Permalink
success test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrLitkevich committed Feb 7, 2025
1 parent aa42f77 commit 96247f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions cli/cmd/aeon.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ func NewAeonCmd() *cobra.Command {
}

func aeonConnectValidateArgs(cmd *cobra.Command, args []string) error {

fmt.Println("args:", args)
fmt.Println("args[0]", args[0])
if !util.IsRegularFile(args[0]) {
return errors.New("error file not found")
}

if len(args) == 1 && util.IsURL(args[0]) {
connectCtx.Network, connectCtx.Address = libconnect.ParseBaseURI(args[0])
} else if len(args) == 2 && util.IsRegularFile(args[0]) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/aeon/data/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ groups:
ssl_cert_file: './ssl_cert/server.crt'
advertise:
params:
transport: 'plane'
transport: 'plain'
replicasets:
aeon-router-001:
instances:
Expand Down
3 changes: 2 additions & 1 deletion test/integration/aeon/test_aeon.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def test_cli_config_file_success(tt_cmd, tmp_path):
ignore_dangling_symlinks=True, # Игнорируем битые символические ссылки.
)

pathConfig = os.path.join(tmp_path, "config.yaml")
pathConfig = os.path.join(tmp_path, "config.yml")
assert os.path.isfile(pathConfig)

cmd = [str(tt_cmd), *AeonConnectCommand, pathConfig, "aeon-router-001"]
print(f"Run: {' '.join(cmd)}")
Expand Down

0 comments on commit 96247f3

Please sign in to comment.