@@ -2,7 +2,6 @@ package object
22
33import (
44 "os"
5- "path"
65 "testing"
76
87 "github.com/scaleway/scaleway-cli/internal/core"
@@ -15,15 +14,7 @@ func Test_ConfigInstall(t *testing.T) {
1514 t .Run ("rclone" , core .Test (& core.TestConfig {
1615 Commands : GetCommands (),
1716 Cmd : "scw object config install type=rclone" ,
18- Check : core .TestCheckCombine (
19- func (t * testing.T , ctx * core.CheckFuncCtx ) {
20- _ , err := os .Stat (path .Join (tmpDir , ".config" , "rclone" , "rclone.conf" ))
21- if err != nil {
22- t .Fail ()
23- }
24- },
25- core .TestCheckExitCode (0 ),
26- ),
17+ Check : core .TestCheckExitCode (0 ),
2718 OverrideEnv : map [string ]string {
2819 "HOME" : tmpDir ,
2920 },
@@ -32,15 +23,7 @@ func Test_ConfigInstall(t *testing.T) {
3223 t .Run ("mc" , core .Test (& core.TestConfig {
3324 Commands : GetCommands (),
3425 Cmd : "scw object config install type=mc" ,
35- Check : core .TestCheckCombine (
36- func (t * testing.T , ctx * core.CheckFuncCtx ) {
37- _ , err := os .Stat (path .Join (tmpDir , ".mc" , "config.json" ))
38- if err != nil {
39- t .Fail ()
40- }
41- },
42- core .TestCheckExitCode (0 ),
43- ),
26+ Check : core .TestCheckExitCode (0 ),
4427 OverrideEnv : map [string ]string {
4528 "HOME" : tmpDir ,
4629 },
@@ -49,15 +32,7 @@ func Test_ConfigInstall(t *testing.T) {
4932 t .Run ("s3cmd" , core .Test (& core.TestConfig {
5033 Commands : GetCommands (),
5134 Cmd : "scw object config install type=s3cmd" ,
52- Check : core .TestCheckCombine (
53- func (t * testing.T , ctx * core.CheckFuncCtx ) {
54- _ , err := os .Stat (path .Join (tmpDir , ".s3cfg" ))
55- if err != nil {
56- t .Fail ()
57- }
58- },
59- core .TestCheckExitCode (0 ),
60- ),
35+ Check : core .TestCheckExitCode (0 ),
6136 OverrideEnv : map [string ]string {
6237 "HOME" : tmpDir ,
6338 },
0 commit comments