mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Merge pull request #54824 from ClickHouse/remove-check-of-config-file-sizes
Remove config files sizes check
This commit is contained in:
commit
2b9b6265da
@ -132,13 +132,6 @@ func TestConfigFileFrameCopy(t *testing.T) {
|
|||||||
configFrame, errs := data.NewConfigFileFrame(path.Join(cwd, "../../../testdata", "configs", "xml"))
|
configFrame, errs := data.NewConfigFileFrame(path.Join(cwd, "../../../testdata", "configs", "xml"))
|
||||||
require.Empty(t, errs)
|
require.Empty(t, errs)
|
||||||
i := 0
|
i := 0
|
||||||
sizes := map[string]int64{
|
|
||||||
"users.xml": int64(2017),
|
|
||||||
"default-password.xml": int64(188),
|
|
||||||
"config.xml": int64(59377),
|
|
||||||
"server-include.xml": int64(168),
|
|
||||||
"user-include.xml": int64(559),
|
|
||||||
}
|
|
||||||
var checkedFiles []string
|
var checkedFiles []string
|
||||||
for {
|
for {
|
||||||
values, ok, err := configFrame.Next()
|
values, ok, err := configFrame.Next()
|
||||||
@ -153,8 +146,6 @@ func TestConfigFileFrameCopy(t *testing.T) {
|
|||||||
newPath := path.Join(tmrDir, fileName)
|
newPath := path.Join(tmrDir, fileName)
|
||||||
err = configFile.Copy(newPath, true)
|
err = configFile.Copy(newPath, true)
|
||||||
require.FileExists(t, newPath)
|
require.FileExists(t, newPath)
|
||||||
destInfo, _ := os.Stat(newPath)
|
|
||||||
require.Equal(t, sizes[fileName], destInfo.Size())
|
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
bytes, err := ioutil.ReadFile(newPath)
|
bytes, err := ioutil.ReadFile(newPath)
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
@ -186,13 +177,6 @@ func TestConfigFileFrameCopy(t *testing.T) {
|
|||||||
configFrame, errs := data.NewConfigFileFrame(path.Join(cwd, "../../../testdata", "configs", "yaml"))
|
configFrame, errs := data.NewConfigFileFrame(path.Join(cwd, "../../../testdata", "configs", "yaml"))
|
||||||
require.Empty(t, errs)
|
require.Empty(t, errs)
|
||||||
i := 0
|
i := 0
|
||||||
sizes := map[string]int64{
|
|
||||||
"users.yaml": int64(1023),
|
|
||||||
"default-password.yaml": int64(132),
|
|
||||||
"config.yaml": int64(41633),
|
|
||||||
"server-include.yaml": int64(21),
|
|
||||||
"user-include.yaml": int64(120),
|
|
||||||
}
|
|
||||||
var checkedFiles []string
|
var checkedFiles []string
|
||||||
for {
|
for {
|
||||||
values, ok, err := configFrame.Next()
|
values, ok, err := configFrame.Next()
|
||||||
@ -207,8 +191,6 @@ func TestConfigFileFrameCopy(t *testing.T) {
|
|||||||
newPath := path.Join(tmrDir, fileName)
|
newPath := path.Join(tmrDir, fileName)
|
||||||
err = configFile.Copy(newPath, true)
|
err = configFile.Copy(newPath, true)
|
||||||
require.FileExists(t, newPath)
|
require.FileExists(t, newPath)
|
||||||
destInfo, _ := os.Stat(newPath)
|
|
||||||
require.Equal(t, sizes[fileName], destInfo.Size())
|
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
bytes, err := ioutil.ReadFile(newPath)
|
bytes, err := ioutil.ReadFile(newPath)
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user