mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
refactor(test): add lint rule for messages starting with the component (#2045)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -65,7 +65,7 @@ func TestEnableExtension(t *testing.T) {
|
||||
data, err := os.ReadFile(logFile.Name())
|
||||
So(err, ShouldBeNil)
|
||||
So(string(data), ShouldContainSubstring,
|
||||
"Sync registries config not provided or disabled, skipping sync")
|
||||
"sync config not provided or disabled, so not enabling sync")
|
||||
})
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ func TestMetricsExtension(t *testing.T) {
|
||||
data, _ := os.ReadFile(logFile.Name())
|
||||
|
||||
So(string(data), ShouldContainSubstring,
|
||||
"Prometheus instrumentation Path not set, changing to '/metrics'.")
|
||||
"prometheus instrumentation path not set, changing to '/metrics'.")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user