Skip to content

Commit ec33a95

Browse files
committed
remove the insertion of agent.conf
1 parent 32bb6d3 commit ec33a95

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

Diff for: tests/ffi/agent-flood/test.sh

+2-14
Original file line numberDiff line numberDiff line change
@@ -79,33 +79,21 @@ get_qm_network_mode(){
7979
echo "${qm_network_mode}"
8080
}
8181

82-
disk_cleanup
83-
prepare_test
84-
reload_config
82+
init_ffi
8583
prepare_images
8684

8785
# Assign value to ${controller_host_ip} according to qm network mode
8886
if [ "$(get_qm_network_mode)" == "private" ]; then
8987
controller_host_ip=$(hostname -I | awk '{print $1}')
9088
else
91-
echo "qm network mode should be private not: $(get_qm_network_mode)"
89+
info_message "qm network mode should be private, not: $(get_qm_network_mode)"
9290
exit 1
9391
fi
9492

9593
#Stop QM bluechi-agent
9694
exec_cmd "podman exec -it qm /bin/bash -c \
9795
\"systemctl stop bluechi-agent\""
9896

99-
# This is the workaround when ControllerHost is not in /etc/qm/bluechi/agent.conf.d/agent.conf
100-
# Add ControllerHost to this configuration file
101-
qm_bluechi_agent_config_file="/etc/qm/bluechi/agent.conf.d/agent.conf"
102-
if test -f "${qm_bluechi_agent_config_file}"; then
103-
sed -i '$a \ControllerHost='"${controller_host_ip}"'' ${qm_bluechi_agent_config_file}
104-
else
105-
echo "Configuration file not found: ${qm_bluechi_agent_config_file}"
106-
exit 1
107-
fi
108-
10997
#Prepare quadlet files for testing containers
11098
setup_test_containers_in_qm
11199
#Run containers through systemd

0 commit comments

Comments
 (0)