Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only] Run phoenix UI tests with OCIS and owncloud storages #854

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ def getTestSuiteNames():
names.append('linting&unitTests-%s' % (key))
return names

def getUITestPipelineNames():
suiteNames = getUITestSuiteNames()
return [
uiTestPipelineName(suiteName, 'owncloud') for suiteName in suiteNames
] + [
uiTestPipelineName(suiteName, 'ocis') for suiteName in suiteNames
]

def uiTestPipelineName(suiteName, storage):
return '%s-%s' % (suiteName, storage)

def getUITestSuiteNames():
return config['uiTests']['suites'].keys()

Expand All @@ -100,7 +111,7 @@ def getDependsOnAllTestPipelines(ctx):
'localApiTests-apiOcisSpecific-ocis',
'localApiTests-apiBasic-owncloud',
'localApiTests-apiBasic-ocis',
] + getCoreApiTestPipelineNames() + getUITestSuiteNames() + ['accountsUITests']
] + getCoreApiTestPipelineNames() + getUITestPipelineNames() + ['accountsUITests']

return dependencies

Expand Down Expand Up @@ -455,7 +466,11 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n

def uiTests(ctx, phoenixBranch, phoenixCommit):
suiteNames = getUITestSuiteNames()
return [uiTestPipeline(suiteName, phoenixBranch, phoenixCommit) for suiteName in suiteNames]
return [
uiTestPipeline(suiteName, phoenixBranch, phoenixCommit, 'owncloud') for suiteName in suiteNames
] + [
uiTestPipeline(suiteName, phoenixBranch, phoenixCommit, 'ocis') for suiteName in suiteNames
]

def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', storage = 'owncloud', accounts_hash_difficulty = 4):
suites = getUITestSuites()
Expand All @@ -466,7 +481,7 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
return {
'kind': 'pipeline',
'type': 'docker',
'name': suiteName,
'name': uiTestPipelineName(suiteName, storage),
'platform': {
'os': 'linux',
'arch': 'amd64',
Expand Down