Skip to content

Commit

Permalink
Fix bug in mixedos e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <[email protected]>
  • Loading branch information
manuelbuil committed Jun 28, 2024
1 parent ecd385d commit f9aab55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/mixedos/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def provision(vm, role, role_num, node_num)
# end
# If using libvirt, use virt-viewer for GUI after bring up the node
vm.provision :rke2, run: 'once' do |rke2|
rke2.env = [install_type]
rke2.env = install_type
rke2.config_mode = '0644' # side-step https://github.com/k3s-io/k3s/issues/4321
# rke2.skip_start = true
rke2.config = <<~YAML
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/mixedos/mixedos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// Valid nodeOS: generic/ubuntu2004, opensuse/Leap-15.3.x86_64
var nodeOS = flag.String("nodeOS", "generic/ubuntu2004", "operating system for linux nodes")
var serverCount = flag.Int("serverCount", 1, "number of server nodes")
var linuxAgentCount = flag.Int("linuxAgentCount", 0, "number of linux agent nodes")
var linuxAgentCount = flag.Int("linuxAgentCount", 1, "number of linux agent nodes")
var windowsAgentCount = flag.Int("windowsAgentCount", 1, "number of windows agent nodes")
var ci = flag.Bool("ci", false, "running on CI")
var local = flag.Bool("local", false, "deploy a locally built RKE2")
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/mixedosbgp/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def provision(vm, role, role_num, node_num)
install_type = "Version=#{RELEASE_VERSION}"
else
vm.provision "shell", path: "../scripts/latest_commit.ps1", args: [GITHUB_BRANCH, "./rke2_commits.txt"]
install_type = "Commit=(Get-Content -TotalCount 1 ./rke2_commits.txt)"
install_type = "-Commit=(Get-Content -TotalCount 1 ./rke2_commits.txt)"
end
else
if !RELEASE_VERSION.empty?
Expand Down Expand Up @@ -100,7 +100,7 @@ def provision(vm, role, role_num, node_num)
# end
# If using libvirt, use virt-viewer for GUI after bring up the node
vm.provision :rke2, run: 'once' do |rke2|
rke2.env = [install_type]
rke2.env = install_type
rke2.config_mode = '0644' # side-step https://github.com/k3s-io/k3s/issues/4321
# rke2.skip_start = true
rke2.config = <<~YAML
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func genNodeEnvs(nodeOS string, serverCount, agentCount, windowsAgentCount int)
windowsAgentNames[i] = "windows-agent-" + strconv.Itoa(i)
}

nodeRoles := strings.Join(serverNodeNames, " ") + " " + strings.Join(agentNodeNames, " ") + strings.Join(windowsAgentNames, " ")
nodeRoles := strings.Join(serverNodeNames, " ") + " " + strings.Join(agentNodeNames, " ") + " " + strings.Join(windowsAgentNames, " ")
nodeRoles = strings.TrimSpace(nodeRoles)

nodeBoxes := strings.Repeat(nodeOS+" ", serverCount+agentCount)
Expand Down

0 comments on commit f9aab55

Please sign in to comment.