@@ -46,7 +46,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
46
46
},
47
47
{
48
48
name : "imageVersionInvalid" ,
49
- args :
args {
image :
"docker .io/fluent/[email protected] !unset" ,
filePath :
"/dev/stdout" },
49
+ args :
args {
image :
"ghcr .io/fluent/[email protected] !unset" ,
filePath :
"/dev/stdout" },
50
50
want : []string {"-p" , "path=/dev/stdout" },
51
51
},
52
52
{
@@ -56,7 +56,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
56
56
},
57
57
{
58
58
name : "imageVersionLongVersionLess" ,
59
- args : args {image : "docker .io/fluent/fluent-bit:1.4.5" , filePath : "/dev/stdout" },
59
+ args : args {image : "ghcr .io/fluent/fluent-bit:1.4.5" , filePath : "/dev/stdout" },
60
60
want : []string {"-p" , "path=/dev/stdout" },
61
61
},
62
62
{
@@ -66,7 +66,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
66
66
},
67
67
{
68
68
name : "imageVersionLongversionEquals" ,
69
- args : args {image : "docker .io/fluent/fluent-bit:1.4.6" , filePath : "/dev/stdout" },
69
+ args : args {image : "ghcr .io/fluent/fluent-bit:1.4.6" , filePath : "/dev/stdout" },
70
70
want : []string {"-p" , "path=/dev/" , "-p" , "file=stdout" },
71
71
},
72
72
{
@@ -76,22 +76,22 @@ func TestFluentBitConfigFilePath(t *testing.T) {
76
76
},
77
77
{
78
78
name : "imageVersionLongversionGreater" ,
79
- args : args {image : "docker .io/fluent/fluent-bit:1.4.7" , filePath : "/dev/stdout" },
79
+ args : args {image : "ghcr .io/fluent/fluent-bit:1.4.7" , filePath : "/dev/stdout" },
80
80
want : []string {"-p" , "path=/dev/" , "-p" , "file=stdout" },
81
81
},
82
82
{
83
83
name : "longPath" ,
84
- args : args {image : "docker .io/fluent/fluent-bit:1.4.7" , filePath : "/var/log/nginx/myaccess.log" },
84
+ args : args {image : "ghcr .io/fluent/fluent-bit:1.4.7" , filePath : "/var/log/nginx/myaccess.log" },
85
85
want : []string {"-p" , "path=/var/log/nginx/" , "-p" , "file=myaccess.log" },
86
86
},
87
87
{
88
88
name : "relativeFilePath" ,
89
- args : args {image : "docker .io/fluent/fluent-bit:1.4.7" , filePath : "./myaccess.log" },
89
+ args : args {image : "ghcr .io/fluent/fluent-bit:1.4.7" , filePath : "./myaccess.log" },
90
90
want : []string {"-p" , "path=./" , "-p" , "file=myaccess.log" },
91
91
},
92
92
{
93
93
name : "noPathGiven" ,
94
- args : args {image : "docker .io/fluent/fluent-bit:1.4.7" , filePath : "myaccess.log" },
94
+ args : args {image : "ghcr .io/fluent/fluent-bit:1.4.7" , filePath : "myaccess.log" },
95
95
want : []string {"-p" , "path=myaccess.log" },
96
96
},
97
97
}
0 commit comments