Skip to content

Commit 2ca1776

Browse files
committed
debug
1 parent af2cdbb commit 2ca1776

File tree

2 files changed

+171
-7
lines changed

2 files changed

+171
-7
lines changed

.drone.star

+8-7
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,18 @@ config = {
106106
"skip_in_pr": True,
107107
"skip": False,
108108
},
109-
"ocis": {
110-
"version": "5.0",
111-
# comma separated list of tags to be used for filtering. E.g. "@tag1,@tag2"
112-
"tags": "~@skipOnOCIS",
113-
"skip": False,
114-
},
109+
# "ocis": {
110+
# "version": "5.0",
111+
# # comma separated list of tags to be used for filtering. E.g. "@tag1,@tag2"
112+
# "tags": "~@skipOnOCIS",
113+
# "skip": False,
114+
# },
115115
},
116116
},
117117
}
118118

119119
def main(ctx):
120+
return gui_test_pipeline(ctx)
120121
pipelines = check_starlark() + \
121122
gui_tests_format() + \
122123
changelog(ctx)
@@ -186,7 +187,7 @@ def unit_test_pipeline(ctx):
186187
def gui_test_pipeline(ctx):
187188
pipelines = []
188189
for server, params in config["gui-tests"]["servers"].items():
189-
squish_parameters = "--reportgen html,%s --envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false --tags ~@skip --tags ~@skipOnLinux" % dir["guiTestReport"]
190+
squish_parameters = "--testcase %s/tst_loginLogout --reportgen html,%s --envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false --tags ~@skip --tags ~@skipOnLinux" % (dir["guiTest"], dir["guiTestReport"])
190191
if params.get("skip", False):
191192
continue
192193
if ctx.build.event == "pull_request" and params.get("skip_in_pr", False) and not "full-ci" in ctx.build.title.lower():

test/gui/tst_loginLogout/test.feature

+163
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,166 @@ Feature: Logout users
4646
When the user quits the client
4747
And the user starts the client
4848
Then user "Alice" should be connect to the client-UI
49+
50+
51+
@skipOnOCIS
52+
Scenario: login, logout and restart with oauth2 authentication
53+
Given app "oauth2" has been "enabled" in the server
54+
And the user has started the client
55+
When the user adds the following oauth2 account:
56+
| server | %local_server% |
57+
| user | Alice |
58+
| password | 1234 |
59+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
60+
And user "Alice" should be connect to the client-UI
61+
When the user "Alice" logs out of the client-UI
62+
Then user "Alice" should be signed out
63+
When user "Alice" logs in to the client-UI with oauth2
64+
Then user "Alice" should be connect to the client-UI
65+
When the user quits the client
66+
And the user starts the client
67+
Then user "Alice" should be connect to the client-UI
68+
69+
@skipOnOCIS
70+
Scenario: login, logout and restart with oauth2 authentication
71+
Given app "oauth2" has been "enabled" in the server
72+
And the user has started the client
73+
When the user adds the following oauth2 account:
74+
| server | %local_server% |
75+
| user | Alice |
76+
| password | 1234 |
77+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
78+
And user "Alice" should be connect to the client-UI
79+
When the user "Alice" logs out of the client-UI
80+
Then user "Alice" should be signed out
81+
When user "Alice" logs in to the client-UI with oauth2
82+
Then user "Alice" should be connect to the client-UI
83+
When the user quits the client
84+
And the user starts the client
85+
Then user "Alice" should be connect to the client-UI
86+
87+
@skipOnOCIS
88+
Scenario: login, logout and restart with oauth2 authentication
89+
Given app "oauth2" has been "enabled" in the server
90+
And the user has started the client
91+
When the user adds the following oauth2 account:
92+
| server | %local_server% |
93+
| user | Alice |
94+
| password | 1234 |
95+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
96+
And user "Alice" should be connect to the client-UI
97+
When the user "Alice" logs out of the client-UI
98+
Then user "Alice" should be signed out
99+
When user "Alice" logs in to the client-UI with oauth2
100+
Then user "Alice" should be connect to the client-UI
101+
When the user quits the client
102+
And the user starts the client
103+
Then user "Alice" should be connect to the client-UI
104+
105+
@skipOnOCIS
106+
Scenario: login, logout and restart with oauth2 authentication
107+
Given app "oauth2" has been "enabled" in the server
108+
And the user has started the client
109+
When the user adds the following oauth2 account:
110+
| server | %local_server% |
111+
| user | Alice |
112+
| password | 1234 |
113+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
114+
And user "Alice" should be connect to the client-UI
115+
When the user "Alice" logs out of the client-UI
116+
Then user "Alice" should be signed out
117+
When user "Alice" logs in to the client-UI with oauth2
118+
Then user "Alice" should be connect to the client-UI
119+
When the user quits the client
120+
And the user starts the client
121+
Then user "Alice" should be connect to the client-UI
122+
123+
@skipOnOCIS
124+
Scenario: login, logout and restart with oauth2 authentication
125+
Given app "oauth2" has been "enabled" in the server
126+
And the user has started the client
127+
When the user adds the following oauth2 account:
128+
| server | %local_server% |
129+
| user | Alice |
130+
| password | 1234 |
131+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
132+
And user "Alice" should be connect to the client-UI
133+
When the user "Alice" logs out of the client-UI
134+
Then user "Alice" should be signed out
135+
When user "Alice" logs in to the client-UI with oauth2
136+
Then user "Alice" should be connect to the client-UI
137+
When the user quits the client
138+
And the user starts the client
139+
Then user "Alice" should be connect to the client-UI
140+
141+
@skipOnOCIS
142+
Scenario: login, logout and restart with oauth2 authentication
143+
Given app "oauth2" has been "enabled" in the server
144+
And the user has started the client
145+
When the user adds the following oauth2 account:
146+
| server | %local_server% |
147+
| user | Alice |
148+
| password | 1234 |
149+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
150+
And user "Alice" should be connect to the client-UI
151+
When the user "Alice" logs out of the client-UI
152+
Then user "Alice" should be signed out
153+
When user "Alice" logs in to the client-UI with oauth2
154+
Then user "Alice" should be connect to the client-UI
155+
When the user quits the client
156+
And the user starts the client
157+
Then user "Alice" should be connect to the client-UI
158+
159+
@skipOnOCIS
160+
Scenario: login, logout and restart with oauth2 authentication
161+
Given app "oauth2" has been "enabled" in the server
162+
And the user has started the client
163+
When the user adds the following oauth2 account:
164+
| server | %local_server% |
165+
| user | Alice |
166+
| password | 1234 |
167+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
168+
And user "Alice" should be connect to the client-UI
169+
When the user "Alice" logs out of the client-UI
170+
Then user "Alice" should be signed out
171+
When user "Alice" logs in to the client-UI with oauth2
172+
Then user "Alice" should be connect to the client-UI
173+
When the user quits the client
174+
And the user starts the client
175+
Then user "Alice" should be connect to the client-UI
176+
177+
@skipOnOCIS
178+
Scenario: login, logout and restart with oauth2 authentication
179+
Given app "oauth2" has been "enabled" in the server
180+
And the user has started the client
181+
When the user adds the following oauth2 account:
182+
| server | %local_server% |
183+
| user | Alice |
184+
| password | 1234 |
185+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
186+
And user "Alice" should be connect to the client-UI
187+
When the user "Alice" logs out of the client-UI
188+
Then user "Alice" should be signed out
189+
When user "Alice" logs in to the client-UI with oauth2
190+
Then user "Alice" should be connect to the client-UI
191+
When the user quits the client
192+
And the user starts the client
193+
Then user "Alice" should be connect to the client-UI
194+
195+
@skipOnOCIS
196+
Scenario: login, logout and restart with oauth2 authentication
197+
Given app "oauth2" has been "enabled" in the server
198+
And the user has started the client
199+
When the user adds the following oauth2 account:
200+
| server | %local_server% |
201+
| user | Alice |
202+
| password | 1234 |
203+
Then the account with displayname "Alice Hansen" and host "%local_server_hostname%" should be displayed
204+
And user "Alice" should be connect to the client-UI
205+
When the user "Alice" logs out of the client-UI
206+
Then user "Alice" should be signed out
207+
When user "Alice" logs in to the client-UI with oauth2
208+
Then user "Alice" should be connect to the client-UI
209+
When the user quits the client
210+
And the user starts the client
211+
Then user "Alice" should be connect to the client-UI

0 commit comments

Comments
 (0)