@@ -46,7 +46,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
4646 },
4747 {
4848 name : "imageVersionInvalid" ,
49- args : args {image : "docker .io/fluent/fluent-bit@x.Arg!unset" , filePath : "/dev/stdout" },
49+ args : args {image : "ghcr .io/fluent/fluent-bit@x.Arg!unset" , filePath : "/dev/stdout" },
5050 want : []string {"-p" , "path=/dev/stdout" },
5151 },
5252 {
@@ -56,7 +56,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
5656 },
5757 {
5858 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" },
6060 want : []string {"-p" , "path=/dev/stdout" },
6161 },
6262 {
@@ -66,7 +66,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
6666 },
6767 {
6868 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" },
7070 want : []string {"-p" , "path=/dev/" , "-p" , "file=stdout" },
7171 },
7272 {
@@ -76,22 +76,22 @@ func TestFluentBitConfigFilePath(t *testing.T) {
7676 },
7777 {
7878 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" },
8080 want : []string {"-p" , "path=/dev/" , "-p" , "file=stdout" },
8181 },
8282 {
8383 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" },
8585 want : []string {"-p" , "path=/var/log/nginx/" , "-p" , "file=myaccess.log" },
8686 },
8787 {
8888 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" },
9090 want : []string {"-p" , "path=./" , "-p" , "file=myaccess.log" },
9191 },
9292 {
9393 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" },
9595 want : []string {"-p" , "path=myaccess.log" },
9696 },
9797 }
0 commit comments