From 5237db2da0ef4db3bebc03ad022886a0548bb1c3 Mon Sep 17 00:00:00 2001 From: ViscousPot Date: Thu, 12 Dec 2024 22:48:58 +0000 Subject: [PATCH] tests: make auth test faster --- .maestro/auth/gitea.yaml | 8 ----- .maestro/auth/github.yaml | 8 ----- .maestro/auth/https.yaml | 8 ----- .maestro/auth/src/gitea.rs | 65 ++++++++++++++++++------------------- .maestro/auth/src/github.rs | 65 ++++++++++++++++++------------------- .maestro/auth/src/https.rs | 49 +++++++++++++--------------- .maestro/auth/src/ssh.rs | 65 ++++++++++++++++++------------------- .maestro/auth/ssh.yaml | 8 ----- 8 files changed, 116 insertions(+), 160 deletions(-) diff --git a/.maestro/auth/gitea.yaml b/.maestro/auth/gitea.yaml index ee3f9e6a..5d8537e2 100644 --- a/.maestro/auth/gitea.yaml +++ b/.maestro/auth/gitea.yaml @@ -3,14 +3,6 @@ appId: com.viscouspot.gitsync - runFlow: ../common/kill.yaml -- runFlow: ../common/launch_notif_perm.yaml -- runFlow: flows/open_auth/positive.yaml -- runFlow: flows/gitea/start.yaml -- runFlow: flows/gitea/auth.yaml -- runFlow: ../clone/flows/assert.yaml -- runFlow: ../clone/flows/list/assert.yaml -- runFlow: ../common/kill.yaml - - runFlow: ../common/launch_notif_perm.yaml - runFlow: flows/open_auth/positive.yaml - runFlow: flows/gitea/start.yaml diff --git a/.maestro/auth/github.yaml b/.maestro/auth/github.yaml index c70639fb..8b6a3de0 100644 --- a/.maestro/auth/github.yaml +++ b/.maestro/auth/github.yaml @@ -3,14 +3,6 @@ appId: com.viscouspot.gitsync - runFlow: ../common/kill.yaml -- runFlow: ../common/launch_notif_perm.yaml -- runFlow: flows/open_auth/positive.yaml -- runFlow: flows/github/start.yaml -- runFlow: flows/github/auth.yaml -- runFlow: ../clone/flows/assert.yaml -- runFlow: ../clone/flows/list/assert.yaml -- runFlow: ../common/kill.yaml - - runFlow: ../common/launch_notif_perm.yaml - runFlow: flows/open_auth/positive.yaml - runFlow: flows/github/start.yaml diff --git a/.maestro/auth/https.yaml b/.maestro/auth/https.yaml index 6ca526fc..1a8fd9cb 100644 --- a/.maestro/auth/https.yaml +++ b/.maestro/auth/https.yaml @@ -3,14 +3,6 @@ appId: com.viscouspot.gitsync - runFlow: ../common/kill.yaml -- runFlow: ../common/launch_notif_perm.yaml -- runFlow: flows/open_auth/positive.yaml -- runFlow: flows/https/start.yaml -- runFlow: flows/https/auth.yaml -- runFlow: ../clone/flows/assert.yaml -- runFlow: ../clone/flows/list/assert_not.yaml -- runFlow: ../common/kill.yaml - - runFlow: ../common/launch_notif_perm.yaml - runFlow: flows/open_auth/positive.yaml - runFlow: flows/https/start.yaml diff --git a/.maestro/auth/src/gitea.rs b/.maestro/auth/src/gitea.rs index 06d7ec04..18d8cd76 100644 --- a/.maestro/auth/src/gitea.rs +++ b/.maestro/auth/src/gitea.rs @@ -3,41 +3,38 @@ use crate::Input; pub fn get_input() -> Input { Input { before_all: vec![], - before_each: vec![], - flows: vec![vec![ - vec![vec![ - "launch_notif_perm", - "open_auth/positive", - "gitea/start", - "gitea/auth", - "../clone/flows/assert", - "../clone/flows/list/assert", - ]], + before_each: vec![vec![ + "launch_notif_perm", + "open_auth/positive", + "gitea/start", + "gitea/auth", + "../clone/flows/assert", + "../clone/flows/list/assert", + ]], + flows: vec![vec![vec![ vec![ - vec![ - "../clone/flows/list/gitea", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/url/gitea", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/local/positive", - "../clone/flows/select_folder/neutral", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], + "../clone/flows/list/gitea", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", ], - ]], + vec![ + "../clone/flows/url/gitea", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + vec![ + "../clone/flows/local/positive", + "../clone/flows/select_folder/neutral", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + ]]], } } diff --git a/.maestro/auth/src/github.rs b/.maestro/auth/src/github.rs index 47131a91..3c71d6d5 100644 --- a/.maestro/auth/src/github.rs +++ b/.maestro/auth/src/github.rs @@ -3,41 +3,38 @@ use crate::Input; pub fn get_input() -> Input { Input { before_all: vec![], - before_each: vec![], - flows: vec![vec![ - vec![vec![ - "launch_notif_perm", - "open_auth/positive", - "github/start", - "github/auth", - "../clone/flows/assert", - "../clone/flows/list/assert", - ]], + before_each: vec![vec![ + "launch_notif_perm", + "open_auth/positive", + "github/start", + "github/auth", + "../clone/flows/assert", + "../clone/flows/list/assert", + ]], + flows: vec![vec![vec![ vec![ - vec![ - "../clone/flows/list/github", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/url/github", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/local/positive", - "../clone/flows/select_folder/neutral", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], + "../clone/flows/list/github", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", ], - ]], + vec![ + "../clone/flows/url/github", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + vec![ + "../clone/flows/local/positive", + "../clone/flows/select_folder/neutral", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + ]]], } } diff --git a/.maestro/auth/src/https.rs b/.maestro/auth/src/https.rs index 5db9a131..26cc0cd6 100644 --- a/.maestro/auth/src/https.rs +++ b/.maestro/auth/src/https.rs @@ -3,33 +3,30 @@ use crate::Input; pub fn get_input() -> Input { Input { before_all: vec![], - before_each: vec![], - flows: vec![vec![ - vec![vec![ - "launch_notif_perm", - "open_auth/positive", - "https/start", - "https/auth", - "../clone/flows/assert", - "../clone/flows/list/assert_not", - ]], + before_each: vec![vec![ + "launch_notif_perm", + "open_auth/positive", + "https/start", + "https/auth", + "../clone/flows/assert", + "../clone/flows/list/assert_not", + ]], + flows: vec![vec![vec![ vec![ - vec![ - "../clone/flows/url/https", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/local/positive", - "../clone/flows/select_folder/neutral", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], + "../clone/flows/url/https", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", ], - ]], + vec![ + "../clone/flows/local/positive", + "../clone/flows/select_folder/neutral", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + ]]], } } diff --git a/.maestro/auth/src/ssh.rs b/.maestro/auth/src/ssh.rs index e8e890ba..6fa646e5 100644 --- a/.maestro/auth/src/ssh.rs +++ b/.maestro/auth/src/ssh.rs @@ -3,41 +3,38 @@ use crate::Input; pub fn get_input() -> Input { Input { before_all: vec![], - before_each: vec![], - flows: vec![vec![ - vec![vec![ - "launch_notif_perm", - "open_auth/positive", - "ssh/start", - "ssh/auth", - "../clone/flows/assert", - "../clone/flows/list/assert_not", - ]], + before_each: vec![vec![ + "launch_notif_perm", + "open_auth/positive", + "ssh/start", + "ssh/auth", + "../clone/flows/assert", + "../clone/flows/list/assert_not", + ]], + flows: vec![vec![vec![ vec![ - vec![ - "../clone/flows/url/ssh_at", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/url/ssh_protocol", - "../clone/flows/select_folder_dialog/positive", - "../clone/flows/select_folder/positive", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], - vec![ - "../clone/flows/local/positive", - "../clone/flows/select_folder/neutral", - "../clone/flows/select_folder/assert_not", - "../clone/flows/select_folder_dialog/assert_not", - "../home/flows/deselect_repo/positive", - ], + "../clone/flows/url/ssh_at", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", ], - ]], + vec![ + "../clone/flows/url/ssh_protocol", + "../clone/flows/select_folder_dialog/positive", + "../clone/flows/select_folder/positive", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + vec![ + "../clone/flows/local/positive", + "../clone/flows/select_folder/neutral", + "../clone/flows/select_folder/assert_not", + "../clone/flows/select_folder_dialog/assert_not", + "../home/flows/deselect_repo/positive", + ], + ]]], } } diff --git a/.maestro/auth/ssh.yaml b/.maestro/auth/ssh.yaml index 636435c8..07aae517 100644 --- a/.maestro/auth/ssh.yaml +++ b/.maestro/auth/ssh.yaml @@ -3,14 +3,6 @@ appId: com.viscouspot.gitsync - runFlow: ../common/kill.yaml -- runFlow: ../common/launch_notif_perm.yaml -- runFlow: flows/open_auth/positive.yaml -- runFlow: flows/ssh/start.yaml -- runFlow: flows/ssh/auth.yaml -- runFlow: ../clone/flows/assert.yaml -- runFlow: ../clone/flows/list/assert_not.yaml -- runFlow: ../common/kill.yaml - - runFlow: ../common/launch_notif_perm.yaml - runFlow: flows/open_auth/positive.yaml - runFlow: flows/ssh/start.yaml