[agent-go] [Bastion] - basic accomplished !
This commit is contained in:
@@ -17,6 +17,12 @@ func TestBasicFileExistAndNotNull(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func TestBasicReplace(t *testing.T) {
|
||||
replace := BasicReplace("C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectOctopus\\agent-go\\a_init\\bastion_init\\123.txt", "HarborHostPort", "8033")
|
||||
|
||||
assert.Equal(t, replace, true, "判定为空文件返回false!")
|
||||
}
|
||||
|
||||
func TestBasicReplaceFileNotExists(t *testing.T) {
|
||||
|
||||
replace := BasicReplace(noExistFilePath, "123", "123")
|
||||
|
||||
Reference in New Issue
Block a user