Skip to content

Commit

Permalink
Merge pull request #181 from owncloud/drone-phoenix-webui
Browse files Browse the repository at this point in the history
[Tests-Only] Run phoenix webui acceptance tests
  • Loading branch information
individual-it authored Apr 6, 2020
2 parents 0e0499c + 62aefa0 commit ed1ab2f
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 8 deletions.
70 changes: 62 additions & 8 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,17 @@ def testing(ctx):
'REVA_STORAGE_OWNCLOUD_DATADIR': '/srv/app/tmp/reva/data',
'REVA_STORAGE_OC_DATA_TEMP_FOLDER': '/srv/app/tmp/',
'REVA_STORAGE_OWNCLOUD_REDIS_ADDR': 'redis:6379',
},
'REVA_OIDC_ISSUER': 'https://ocis-server:9200',
'PHOENIX_WEB_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'PHOENIX_ASSET_PATH': '/srv/app/phoenix/dist',
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
'KONNECTD_ISS': 'https://ocis-server:9200',
'KONNECTD_TLS': 'true',
'LDAP_URI': 'ldap://ldap',
'LDAP_BINDDN': 'cn=admin,dc=owncloud,dc=com',
'LDAP_BINDPW': 'admin',
'LDAP_BASEDN': 'dc=owncloud,dc=com'
},
'commands': [
'mkdir -p /srv/app/tmp/reva',
'bin/ocis server'
Expand All @@ -155,7 +165,7 @@ def testing(ctx):
]
},
{
'name': 'acceptance-tests',
'name': 'oC10APIAcceptanceTests',
'image': 'owncloudci/php:7.2',
'pull': 'always',
'environment' : {
Expand All @@ -171,12 +181,43 @@ def testing(ctx):
'cd /srv/app/testrunner',
'make test-acceptance-api',
],
'volumes': [
{
'name': 'gopath',
'path': '/srv/app',
},
]
'volumes': [{
'name': 'gopath',
'path': '/srv/app',
}]
},
{
'name': 'phoenixWebUIAcceptanceTests',
'image': 'owncloudci/nodejs:10',
'pull': 'always',
'environment': {
'SERVER_HOST': 'http://ocis-server:9100',
'BACKEND_HOST': 'http://ocis-server:9140',
'RUN_ON_OCIS': 'true',
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/reva',
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
'OCIS_PHOENIX_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'LDAP_SERVER_URL': 'ldap://ldap',
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
'LOCAL_UPLOAD_DIR': '/uploads'
},
'commands': [
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
'git clone -b master --depth=1 https://github.com/owncloud/phoenix.git /srv/app/phoenix',
'cp -r /srv/app/phoenix/tests/acceptance/filesForUpload/* /uploads',
'cd /srv/app/phoenix',
'yarn install-all',
'yarn dist',
'yarn run acceptance-tests-drone'
],
'volumes': [{
'name': 'gopath',
'path': '/srv/app',
},
{
'name': 'uploads',
'path': '/uploads'
}]
},
],
'services': [
Expand All @@ -200,12 +241,25 @@ def testing(ctx):
'REDIS_DATABASES': 1
},
},
{
'name': 'selenium',
'image': 'selenium/standalone-chrome-debug:latest',
'pull': 'always',
'volumes': [{
'name': 'uploads',
'path': '/uploads'
}],
},
],
'volumes': [
{
'name': 'gopath',
'temp': {},
},
{
'name': 'uploads',
'temp': {}
}
],
'trigger': {
'ref': [
Expand Down
15 changes: 15 additions & 0 deletions tests/config/drone/identifier-registration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---

# OpenID Connect client registry.
clients:
- id: phoenix
name: OCIS
application_type: web
insecure: yes
redirect_uris:
- http://ocis-server:9100/oidc-callback.html
- http://ocis-server:9100
origins:
- http://ocis-server:9100

authorities:
19 changes: 19 additions & 0 deletions tests/config/drone/ocis-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"server": "http://ocis-server:9140",
"theme": "owncloud",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://ocis-server:9200/.well-known/openid-configuration",
"authority": "https://ocis-server:9200",
"client_id": "phoenix",
"response_type": "code",
"scope": "openid profile email"
},
"apps": [
"files",
"draw-io",
"pdf-viewer",
"markdown-editor",
"media-viewer"
]
}

0 comments on commit ed1ab2f

Please sign in to comment.