Commit Graph

37 Commits (c6bf01ffa71f6dbebf834f3da0bce5a7e60f59cc)

Author SHA1 Message Date
ByoungUk Lee c6bf01ffa7
Merge branch 'master' into 21815 2025-10-30 11:45:26 +09:00
Byounguk Lee 2f420fc029 test: Verify and log iso version in iso_test.go
Signed-off-by: Byounguk Lee <nimdrak@gmail.com>
2025-10-29 11:24:52 +00:00
Mario Kahlhofer 7387cd3c80 test: Ensure that BTF type information is available
BTF types are required for CO-RE eBPF programs. Check if the kernel was compiled
with CONFIG_DEBUG_INFO_BTF and created the /sys/kernel/btf/vmlinux file.
2025-10-29 09:01:18 +01:00
Nir Soffer 3dc60e2e5d test: Speed up iso test with --no-kubernetes
We don't need to start kubernetes for testing the ISO. On macOS the test
is 2.45 times faster (from 17.137 seconds to 6.974 seconds).

Before:

    % go test -v ./test/integration -run TestISO -tags integration -count 1
    ...
    --- PASS: TestISOImage (16.27s)
        --- PASS: TestISOImage/Setup (15.76s)
        --- PASS: TestISOImage/Binaries (0.00s)
            --- PASS: TestISOImage/Binaries/crictl (0.08s)
            --- PASS: TestISOImage/Binaries/podman (0.09s)
            --- PASS: TestISOImage/Binaries/rsync (0.11s)
            --- PASS: TestISOImage/Binaries/docker (0.11s)
            --- PASS: TestISOImage/Binaries/iptables (0.11s)
            --- PASS: TestISOImage/Binaries/git (0.12s)
            --- PASS: TestISOImage/Binaries/socat (0.08s)
            --- PASS: TestISOImage/Binaries/curl (0.08s)
            --- PASS: TestISOImage/Binaries/wget (0.08s)
        --- PASS: TestISOImage/PersistentMounts (0.00s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/toolbox (0.08s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/boot2docker (0.09s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/cni (0.09s)
            --- PASS: TestISOImage/PersistentMounts//data (0.10s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/kubelet (0.10s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/minikube (0.11s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/docker (0.07s)
    PASS
    Tests completed in 16.268875292s (result code 0)
    ok  	k8s.io/minikube/test/integration	17.137s

After:

    % go test -v ./test/integration -run TestISO -tags integration -count 1
    ...
    --- PASS: TestISOImage (5.77s)
        --- PASS: TestISOImage/Setup (5.30s)
        --- PASS: TestISOImage/Binaries (0.00s)
            --- PASS: TestISOImage/Binaries/wget (0.09s)
            --- PASS: TestISOImage/Binaries/socat (0.09s)
            --- PASS: TestISOImage/Binaries/iptables (0.10s)
            --- PASS: TestISOImage/Binaries/podman (0.10s)
            --- PASS: TestISOImage/Binaries/crictl (0.11s)
            --- PASS: TestISOImage/Binaries/git (0.11s)
            --- PASS: TestISOImage/Binaries/rsync (0.07s)
            --- PASS: TestISOImage/Binaries/docker (0.08s)
            --- PASS: TestISOImage/Binaries/curl (0.08s)
        --- PASS: TestISOImage/PersistentMounts (0.00s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/toolbox (0.08s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/boot2docker (0.09s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/cni (0.09s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/minikube (0.10s)
            --- PASS: TestISOImage/PersistentMounts//data (0.10s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/docker (0.11s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/kubelet (0.07s)
    PASS
    Tests completed in 5.7657725s (result code 0)
    ok  	k8s.io/minikube/test/integration	6.974s
2025-10-27 20:33:49 +02:00
Nir Soffer 5bd82cbe61 test: Fix iso_test on arm64
Virtualbox binaries are not built in the arm64 iso. Test them only on
other architectures.

Example run:

    % go test -v ./test/integration -run TestISO -tags integration

    --- PASS: TestISOImage (17.74s)
        --- PASS: TestISOImage/Setup (17.31s)
        --- PASS: TestISOImage/Binaries (0.00s)
            --- PASS: TestISOImage/Binaries/docker (0.08s)
            --- PASS: TestISOImage/Binaries/podman (0.09s)
            --- PASS: TestISOImage/Binaries/iptables (0.10s)
            --- PASS: TestISOImage/Binaries/git (0.10s)
            --- PASS: TestISOImage/Binaries/curl (0.11s)
            --- PASS: TestISOImage/Binaries/crictl (0.11s)
            --- PASS: TestISOImage/Binaries/wget (0.06s)
            --- PASS: TestISOImage/Binaries/socat (0.07s)
            --- PASS: TestISOImage/Binaries/rsync (0.06s)
        --- PASS: TestISOImage/PersistentMounts (0.00s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/boot2docker (0.08s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/cni (0.09s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/toolbox (0.09s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/minikube (0.10s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/docker (0.10s)
            --- PASS: TestISOImage/PersistentMounts//data (0.11s)
            --- PASS: TestISOImage/PersistentMounts//var/lib/kubelet (0.06s)
2025-10-26 17:05:22 +02:00
Nir Soffer 7bf746b237 test: Fix guest_env_test.go
The test used `go:build iso` so it was not included in the integration
tests. Change to `go:build integration` so we test in the CI.

Rename the file and the test name to make it more clear that this test
is about the iso image.

Skip the test for non vm-driver, since this tests is about the iso
image.

We may need to add a similar test or adapt this test so it can be used
also with the kicbase image.

This test will be useful to validate #21800, avoiding regressions such
as #21788.
2025-10-26 17:05:22 +02:00
Thomas Stromberg 90608a3169 Refactor parallelized integration tests for clarity 2019-09-11 09:59:38 -07:00
Medya Gh 16e5aeec5e lint 2019-08-21 15:56:46 -07:00
Medya Gh 246f33f52b Less Retry on minikube, new auto fail helpers MustStart,MustRun 2019-08-21 15:56:46 -07:00
Medya Gh eef31403b4 Unified StartFail Logging, more t.Error and Added download only test, 2019-08-21 15:56:46 -07:00
Medya Gh e6079dc358 final touch on parallel integration 2019-08-01 16:42:29 -07:00
Medya Gh 4df651a4f8 fix download binary func 2019-08-01 13:44:57 -07:00
Medya Gh 5a5bec97dc detect profile name for all tests using profileName(t) 2019-08-01 12:44:41 -07:00
Medya Gh 4de8fe5aeb making parallel optional 2019-07-31 22:50:04 -07:00
Medya Gh 43751a4f4a linting 2019-07-31 12:05:57 -07:00
Medya Gh ce27dba276 Added timeout for start 2019-07-30 10:45:52 -07:00
Medya Gh e94da73884 Fix zombie defuncts by not waiting for tear down 2019-07-30 10:45:44 -07:00
Medya Gh 4728165354 Add run group for defer paralell 2019-07-30 10:45:44 -07:00
Medya Gh 4c8ea939ab defer delete minikube in all tests 2019-07-30 10:45:31 -07:00
Medya Gh ff747089cc add minikube delete to all tests at the end 2019-07-30 10:45:22 -07:00
Medya Gh dabd0c41d4 get profile names automaticly from test names 2019-07-30 10:45:05 -07:00
Medya Gh e865c93fc9 move all starts to new start func 2019-07-30 10:45:05 -07:00
Medya Gh e3db9a41ba decouple isNoneDriver from minikube driver for more reusability 2019-07-30 10:43:47 -07:00
Medya Gh 9b3f72024a list vms after clean up 2019-07-30 10:42:55 -07:00
Medya Gh ab28a3ced1 # This is a combination of 5 commits.
# This is the 1st commit message:

organize integration tests files by type

# This is the commit message #2:

Adding separate profile for each kind of test

# This is the commit message #3:

Adding clean up to delete newly added TestVms

# This is the commit message #4:

goimport

# This is the commit message #5:

making them run in parallel
2019-07-30 10:40:38 -07:00
Medya Gh d1a41e0015 Added default profile 2019-07-30 10:40:11 -07:00
tstromberg 44c8dd52a8 Add --wait flag to allow users to skip pod health checks 2019-07-12 14:18:43 -07:00
Thomas Strömberg cc5d4e9724
Merge branch 'master' into rkt-remove 2019-03-25 11:31:09 -07:00
Anders F Björklund 71b3e3ec5d Store the toolbox on the disk instead of rootfs
There was a lack of "disk" space, when using memory.

This also makes the toolbox persistent over reboots.
2019-03-25 07:41:21 +01:00
Anders F Björklund 2590fc7b9a Remove the rkt container runtime
It has not been updated since kubernetes 1.9 or so
2019-03-24 08:50:58 +01:00
Thomas Stromberg d1f4e787c6 Don't error if delete fails: there may not be a cluster to delete 2019-01-08 16:22:03 -08:00
Thomas Stromberg 055c8002b1 Replace %s format directives with %v for errors.
Previously we were mixed between the two forms. This commit picks %v,
which is consistent with the Kubernetes code base. They both effectively
do the same thing in this case, though %v works with any object, and %s
only with string objects.
2018-09-28 16:05:27 -07:00
Aaron Prindle a4606583e4 remove all localkube references from code, change /var/lib/localkube to /var/lib/minikube 2018-07-24 12:36:42 -07:00
Matt Rickard f966c8cf31 Add NewMinikubeRunner, separate start args
* Separate start args from args passed to every command.  This is so
that we can call `minikube logs` and `minikube status` with the proper
flags (for the bootstrapper)

* Add a NewMinikubeRunner function to make getting a minikube runner
easier.
2017-09-08 20:14:21 -07:00
dlorenc fb910496a3 Add a test that the right directories are persisted. 2017-02-16 09:41:25 -08:00
dlorenc 220a5ad840 Add a test for required packages. 2017-02-01 16:06:05 -08:00
dlorenc 22dcd7a7c9 Add a starter test for ISO permissions.
We can continue to add other tests to this file.
2017-01-31 08:31:53 -08:00