Skip to content

Commit

Permalink
Merge pull request #3242 from owncloud/use-ocis-phoenix-service
Browse files Browse the repository at this point in the history
[Tests-only] Use ocis-phoenix for running tests in drone
  • Loading branch information
individual-it authored Mar 25, 2020
2 parents 9d4596b + 2c22126 commit 408357e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ config = {
'all': 'webUIOCIS'
},
'extraEnvironment': {
'SERVER_HOST': 'http://ocis:9100',
'SERVER_HOST': 'http://phoenix:9100',
'BACKEND_HOST': 'http://reva:9140',
'RUN_ON_OCIS': 'true',
'OCIS_SKELETON_DIR': '/var/www/owncloud/server/apps/testing/data/webUISkeleton',
Expand All @@ -89,6 +89,7 @@ config = {
},
'runningOnOCIS': True,
'filterTags': 'not @skip and not @skipOnOCIS',
'screenShots': True,
}
},

Expand Down Expand Up @@ -385,11 +386,11 @@ def acceptance():
)
) if not params['runningOnOCIS'] else (
buildKonnectd() +
buildOcis() +
buildOcisPhoenix() +
buildReva() +
konnectdService() +
revaService() +
ocisServices() +
ocisPhoenixService() +
redisService()
)
) +
Expand Down Expand Up @@ -1010,20 +1011,20 @@ def konnectdService():
}],
}]

def buildOcis():
def buildOcisPhoenix():
return[{
'name': 'build-ocis',
'name': 'build-ocis-phoenix',
'image': 'webhippie/golang:1.13',
'pull': 'always',
'commands': [
'mkdir -p /srv/app/src',
'cd $GOPATH/src',
'mkdir -p github.com/owncloud/',
'cd github.com/owncloud/',
'git clone http://github.com/owncloud/ocis',
'cd ocis',
'git clone http://github.com/owncloud/ocis-phoenix.git',
'cd ocis-phoenix',
'make build',
'cp bin/ocis /var/www/owncloud'
'cp bin/ocis-phoenix /var/www/owncloud'
],
'volumes': [{
'name': 'gopath',
Expand All @@ -1034,9 +1035,9 @@ def buildOcis():
}],
}]

def ocisServices():
def ocisPhoenixService():
return[{
'name': 'ocis',
'name': 'phoenix',
'image': 'webhippie/golang:1.13',
'pull': 'always',
'detach': True,
Expand All @@ -1046,8 +1047,7 @@ def ocisServices():
},
'commands': [
'cd /var/www/owncloud',
'./ocis devldap &',
'./ocis phoenix'
'./ocis-phoenix server',
],
'volumes': [{
'name': 'gopath',
Expand Down Expand Up @@ -1261,7 +1261,7 @@ def runWebuiAcceptanceTests(suite, alternateSuiteName, filterTags, extraEnvironm
'cd /var/www/owncloud/phoenix',
'timeout 60 bash -c \'while [[ "$(curl -s -o /dev/null -w \'\'%{http_code}\'\' http://phoenix/oidc-callback.html)" != "200" ]]; do sleep 5; done\''
if not runningOnOCIS else
'timeout 60 bash -c \'while [[ "$(curl -s -o /dev/null -w \'\'%{http_code}\'\' http://ocis:9100/oidc-callback.html)" != "200" ]]; do sleep 5; done\'',
'timeout 60 bash -c \'while [[ "$(curl -s -o /dev/null -w \'\'%{http_code}\'\' http://phoenix:9100/oidc-callback.html)" != "200" ]]; do sleep 5; done\'',
'yarn run acceptance-tests-drone',
],
'volumes': [{
Expand Down
6 changes: 3 additions & 3 deletions tests/drone/identifier-registration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ clients:
application_type: web
insecure: yes
redirect_uris:
- http://ocis:9100/oidc-callback.html
- http://ocis:9100
- http://phoenix:9100/oidc-callback.html
- http://phoenix:9100
origins:
- http://ocis:9100
- http://phoenix:9100

authorities:

0 comments on commit 408357e

Please sign in to comment.