test(agentcompat): add integration scenarios

Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
naiba
2026-07-20 04:51:20 +00:00
co-authored by naiba/CloudCode
parent b3b3d92895
commit 9af3720bf0
96 changed files with 13091 additions and 0 deletions
@@ -0,0 +1,21 @@
//go:build linux
package scenario
import (
"os"
"sigs.k8s.io/yaml"
)
func ReadConfigFile(path string) (AgentConfig, error) {
data, err := os.ReadFile(path)
if err != nil {
return AgentConfig{}, err
}
var config AgentConfig
if err := yaml.Unmarshal(data, &config); err != nil {
return AgentConfig{}, err
}
return config, nil
}