This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
45 lines (43 loc) · 2.54 KB
/
integration-test-slim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: BTPSA - Integration Test - short
# This file represents a slim version of the "BTP Setup Automator" integration tests
# All tests are executed in sequence on one BTP account to avoid entitlement limits
# This is why not matrix strategy is used
# The steps of a job must execute in any case, so we use always()
on:
workflow_dispatch:
jobs:
integration-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/sap-samples/btp-setup-automator:latest
options: --user root
env:
BTPSA_PARAM_MYEMAIL: ${{ secrets.BTPSA_PARAM_MYEMAIL }}
BTPSA_PARAM_GLOBALACCOUNT: ${{ secrets.BTPSA_PARAM_GLOBALACCOUNT }}
BTPSA_PARAM_MYPASSWORD: ${{ secrets.BTPSA_PARAM_MYPASSWORD }}
steps:
- name: 'Integration test 01: Default use case'
if: ${{ always() }}
working-directory: /home/user
shell: bash
run: ./btpsa -parameterfile 'https://raw.githubusercontent.com/SAP-samples/btp-setup-automator/main/tests/integrationtests/parameterfiles/integrationtest01.json'
- name: 'Integration test 07: Setup SAP Task Center'
if: ${{ always() }}
working-directory: /home/user
shell: bash
run: ./btpsa -parameterfile 'https://raw.githubusercontent.com/SAP-samples/btp-setup-automator/main/tests/integrationtests/parameterfiles/integrationtest07.json'
- name: 'Integration test 04: Only app subscriptions'
if: ${{ always() }}
working-directory: /home/user
shell: bash
run: ./btpsa -parameterfile 'https://raw.githubusercontent.com/SAP-samples/btp-setup-automator/main/tests/integrationtests/parameterfiles/integrationtest04.json'
- name: 'Integration test 05: Only one service without app subscriptions and with an admin, that is the same like the one logging into the script.'
if: ${{ always() }}
working-directory: /home/user
shell: bash
run: ./btpsa -parameterfile 'https://raw.githubusercontent.com/SAP-samples/btp-setup-automator/main/tests/integrationtests/parameterfiles/integrationtest05.json'
- name: 'Integration test 06: create service keys'
if: ${{ always() }}
working-directory: /home/user
shell: bash
run: ./btpsa -parameterfile 'https://raw.githubusercontent.com/SAP-samples/btp-setup-automator/main/tests/integrationtests/parameterfiles/integrationtest06.json'