mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
integration test fixes
Signed-off-by: Jari Kolehmainen <jkolehmainen@mirantis.com>
This commit is contained in:
parent
3b33ea853b
commit
e809141c6a
@ -128,6 +128,7 @@ jobs:
|
|||||||
sudo apt-get install libgconf-2-4 conntrack -y
|
sudo apt-get install libgconf-2-4 conntrack -y
|
||||||
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
|
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
|
||||||
sudo install minikube-linux-amd64 /usr/local/bin/minikube
|
sudo install minikube-linux-amd64 /usr/local/bin/minikube
|
||||||
|
export CHANGE_MINIKUBE_NONE_USER=true
|
||||||
sudo minikube start --driver=none
|
sudo minikube start --driver=none
|
||||||
displayName: Install integration test dependencies
|
displayName: Install integration test dependencies
|
||||||
- script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux
|
- script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux
|
||||||
|
|||||||
@ -40,7 +40,6 @@ describe("app start", () => {
|
|||||||
let windowCount = await app.client.getWindowCount()
|
let windowCount = await app.client.getWindowCount()
|
||||||
while (windowCount > 1) {
|
while (windowCount > 1) {
|
||||||
windowCount = await app.client.getWindowCount()
|
windowCount = await app.client.getWindowCount()
|
||||||
console.log(windowCount)
|
|
||||||
}
|
}
|
||||||
await app.client.windowByIndex(windowCount - 1)
|
await app.client.windowByIndex(windowCount - 1)
|
||||||
await app.client.waitUntilWindowLoaded()
|
await app.client.waitUntilWindowLoaded()
|
||||||
@ -51,7 +50,7 @@ describe("app start", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('allows to add a cluster', async () => {
|
it('allows to add a cluster', async () => {
|
||||||
const status = spawnSync("minikube status || sudo minikube status", {shell: true})
|
const status = spawnSync("minikube status", {shell: true})
|
||||||
if (status.status !== 0) {
|
if (status.status !== 0) {
|
||||||
console.warn("minikube not running, skipping test")
|
console.warn("minikube not running, skipping test")
|
||||||
return
|
return
|
||||||
@ -64,7 +63,7 @@ describe("app start", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('allows to create a pod', async () => {
|
it('allows to create a pod', async () => {
|
||||||
const status = spawnSync("minikube status || sudo minikube status", {shell: true})
|
const status = spawnSync("minikube status", {shell: true})
|
||||||
if (status.status !== 0) {
|
if (status.status !== 0) {
|
||||||
console.warn("minikube not running, skipping test")
|
console.warn("minikube not running, skipping test")
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user