Skip to content

Commit

Permalink
test: do not install hostname package
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Massaguer Pla <[email protected]>
  • Loading branch information
jordimassaguerpla committed Dec 18, 2024
1 parent c91defe commit 8798f07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/features/support/remote_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize(host, port: 22)
@target = ENV.fetch(ENV_VAR_BY_HOST[@host], nil).to_s.strip
# Remove /etc/motd, or any output from run will contain the content of /etc/motd
ssh('rm -f /etc/motd && touch /etc/motd', host: @target) unless @host == 'localhost'
out, _err, _code = ssh('hostname', host: @target)
out, _err, _code = ssh('echo $HOSTNAME', host: @target)
@hostname = out.strip
raise LoadError, "We can't connect to #{@host} through SSH." if @hostname.empty?

Expand Down
1 change: 1 addition & 0 deletions testsuite/podman_runner/08_manager_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -xe

src_dir=$(cd $(dirname "$0")/../.. && pwd -P)

sudo -i podman exec server bash -c "rpm -e hostname"
sudo -i podman exec server bash -c "/testsuite/podman_runner/provide-db-schema.sh"
sudo -i podman exec -e CERT_O="test_org" -e CERT_OU="test_ou" -e CERT_CITY="test_city" -e CERT_STATE="test_state" -e CERT_COUNTRY="DE" -e CERT_EMAIL="[email protected]" -e CERT_CNAMES="server" -e CERT_PASS="spacewalk" -e UYUNI_FQDN="server" -e MANAGER_USER="admin" -e MANAGER_PASS="spacewalk" -e MANAGER_ADMIN_EMAIL="[email protected]" -e MANAGER_MAIL_FROM="[email protected]" -e MANAGER_ENABLE_TFTP="n" -e MANAGER_DB_NAME="manager" -e MANAGER_DB_HOST="localhost" -e MANAGER_DB_PORT="5432" -e MANAGER_DB_USER="manager" -e MANAGER_DB_PASS="manager" -e MANAGER_DB_PROTOCOL="TCP" -e REPORT_DB_NAME="reportdb" -e REPORT_DB_USER="pythia_susemanager" -e REPORT_DB_PASS="pythia_susemanager" -e EXTERNALDB_ADMIN_USER="" -e EXTERNALDB_ADMIN_PASS="" -e EXTERNALDB_PROVIDER="" -e ISS_PARENT="" -e ACTIVATE_SLP="" -e SCC_USER="" -e SCC_PASS="" server bash -c /usr/lib/susemanager/bin/mgr-setup
sudo -i podman exec server bash -c "/usr/bin/spacewalk-schema-upgrade -y"
Expand Down

0 comments on commit 8798f07

Please sign in to comment.