Skip to content

Commit

Permalink
Run phoenix UI tests with OCIS and owncloud storages
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Nov 13, 2020
1 parent b09072b commit cd9dcbc
Showing 1 changed file with 18 additions and 3 deletions.
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

0 comments on commit cd9dcbc

Please sign in to comment.