Skip to content

Commit e881cce

Browse files
committed
feat: add postman step
1 parent 3cbe1db commit e881cce

File tree

8 files changed

+24
-3
lines changed

8 files changed

+24
-3
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/workflows/postman.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ jobs:
6464
sleep 10
6565
done
6666
echo "API is ready!"
67+
- name: Install Postman CLI
68+
run: |
69+
curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
70+
- name: Login to Postman CLI
71+
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
72+
- name: Run API tests
73+
run: |
74+
postman collection run "44183872-d3b3cdc9-ba1f-4a71-bcba-6a3cb3dc9643" -e "43715313-d380e919-5142-44e6-b52c-02f8b04da8fa"
6775
- name: Show logs
6876
run: |
6977
echo "::group::Core Server Logs"

src/openapi/api.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,6 @@ components:
25982598
type: object
25992599
properties:
26002600
name:
2601-
example: name
26022601
$ref: 'definitions.yaml#/idName'
26032602
required:
26042603
- name
@@ -2611,12 +2610,11 @@ components:
26112610
type: object
26122611
properties:
26132612
name:
2614-
type: string
2613+
$ref: 'definitions.yaml#/idName'
26152614
labels:
26162615
type: object
26172616
properties:
26182617
apl.io/teamId:
2619-
example: team-name
26202618
$ref: 'definitions.yaml#/idName'
26212619
required:
26222620
- apl.io/teamId

src/openapi/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ buildMode:
118118
name:
119119
title: Name
120120
type: string
121+
example: MY_ENV_VAR
121122
value:
122123
title: Value
123124
type: string
125+
example: my-value
124126
required:
125127
- name
126128
- value

src/openapi/codeRepo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ AplCodeRepoSpec:
5959
default: false
6060
secret:
6161
type: string
62+
example: my-secret
6263
required:
6364
- gitService
6465
- repositoryUrl

src/openapi/definitions.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ alerts:
108108
annotation:
109109
type: string
110110
pattern: ^((.){1,253}\/)?(.){1,63}$
111+
example: apl.io/annotation
111112
annotations:
112113
description: Kubernetes annotations with arbitrary metadata
113114
type: array
@@ -119,6 +120,7 @@ annotations:
119120
value:
120121
type: string
121122
maxLength: 32767
123+
example: apl-value
122124
autoscaling:
123125
type: object
124126
properties:
@@ -625,6 +627,7 @@ idName:
625627
pattern: ^[a-z]([-a-z0-9]*[a-z0-9])+$
626628
type: string
627629
x-message: a valid name that consists of lowercase letters, dashes
630+
example: team-name
628631
image:
629632
allOf:
630633
- properties:
@@ -654,6 +657,7 @@ imageTag:
654657
pattern: '[\w][\w.-]{0,127}'
655658
type: string
656659
x-message: a valid container registry image tag
660+
example: latest
657661
imageSimple:
658662
properties:
659663
tag:
@@ -951,6 +955,7 @@ repoUrl:
951955
pattern: ^(.+@)*([\w\d\.]+)(:[\d]+){0,1}/*(.*)$
952956
type: string
953957
x-message: a valid git repo URL
958+
example: github.com/example/repo
954959
resource:
955960
properties:
956961
cpu:
@@ -1106,6 +1111,7 @@ svcPredeployed:
11061111
url:
11071112
pattern: ^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)
11081113
type: string
1114+
example: https://gituhb.com/example
11091115
vaultToken:
11101116
title: Token
11111117
type: string

src/openapi/netpol.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ ruleType:
5555
type: string
5656
title: Selector label name
5757
description: 'The name of the Pod selector label.'
58+
example: app
5859
toLabelValue:
5960
type: string
6061
title: Selector label value
6162
description: 'The value of the Pod selector label.'
63+
example: my-app
6264
mode:
6365
type: string
6466
default: AllowAll
@@ -80,10 +82,12 @@ ruleType:
8082
type: string
8183
title: Selector label name
8284
description: 'The name of the Pod selector label.'
85+
example: app
8386
fromLabelValue:
8487
type: string
8588
title: Selector label value
8689
description: 'The value of the Pod selector label.'
90+
example: my-app
8791
required:
8892
- fromNamespace
8993
required:

src/openapi/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,11 @@ AplServiceSpec:
308308
name:
309309
title: Name
310310
type: string
311+
example: my-header
311312
value:
312313
title: Value
313314
type: string
315+
example: my-value
314316
required:
315317
- name
316318
- value

0 commit comments

Comments
 (0)