Skip to content

Commit

Permalink
fix: tests (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Jun 30, 2023
1 parent cf0a6e5 commit 4bd9696
Show file tree
Hide file tree
Showing 78 changed files with 403 additions and 278 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ var _ = Describe("Check stack deployment", func() {
if !dirEntry.IsDir() {
continue
}
if dirEntry.Name() != "multipod-latest" {
continue
}

name := strings.ReplaceAll(dirEntry.Name(), ".", "-")
dirName := dirEntry.Name()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ data:
"match": {
"indexed.provider": this.payload.connector
}
},
{
"match": {
"stack": env("STACK")
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -921,59 +921,6 @@ spec:
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
initContainers:
- command:
- payments
- migrate
env:
- name: POSTGRES_HOST
value: localhost
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_DATABASE
value: monopod-latest-payments
- name: POSTGRES_USERNAME
value: root
- name: POSTGRES_PASSWORD
value: root
- name: POSTGRES_NO_DATABASE_URI
value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT)
- name: POSTGRES_URI
value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable
- name: LISTEN
value: :10003
- name: OTEL_TRACES
value: "true"
- name: OTEL_TRACES_EXPORTER
value: otlp
- name: OTEL_TRACES_EXPORTER_OTLP_INSECURE
value: "true"
- name: OTEL_TRACES_EXPORTER_OTLP_MODE
value: grpc
- name: OTEL_TRACES_PORT
value: "4317"
- name: OTEL_TRACES_ENDPOINT
value: localhost
- name: OTEL_TRACES_EXPORTER_OTLP_ENDPOINT
value: $(OTEL_TRACES_ENDPOINT):$(OTEL_TRACES_PORT)
- name: OTEL_RESOURCE_ATTRIBUTES
- name: BROKER
value: kafka
- name: PUBLISHER_KAFKA_ENABLED
value: "true"
- name: PUBLISHER_KAFKA_BROKER
value: kafka:1234
- name: POSTGRES_DATABASE_NAME
value: $(POSTGRES_DATABASE)
- name: CONFIG_ENCRYPTION_KEY
- name: PUBLISHER_TOPIC_MAPPING
value: '*:monopod-latest-payments'
image: ghcr.io/formancehq/payments:latest
imagePullPolicy: Always
name: migrate
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
Expand Down Expand Up @@ -1003,4 +950,10 @@ spec:
defaultMode: 420
name: search-benthos-templates
name: search-benthos-templates
status: {}
status:
conditions:
- lastTransitionTime: "2023-06-30T15:11:03Z"
lastUpdateTime: "2023-06-30T15:11:03Z"
status: "True"
type: Available
observedGeneration: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: stack.formance.com/v1beta3
kind: Migration
metadata:
annotations:
reloader.stakater.com/auto: "true"
generation: 1
labels:
stack: "true"
name: payments-v0.6.5-post-upgrade
namespace: monopod-latest
spec:
configuration: monopod-latest
module: payments
postUpgrade: true
targetedVersion: v0.6.5
version: monopod-latest
status:
terminated: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: stack.formance.com/v1beta3
kind: Migration
metadata:
annotations:
reloader.stakater.com/auto: "true"
generation: 1
labels:
stack: "true"
name: payments-v0.6.5-pre-upgrade
namespace: monopod-latest
spec:
configuration: monopod-latest
module: payments
postUpgrade: false
targetedVersion: v0.6.5
version: monopod-latest
status:
terminated: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: stack.formance.com/v1beta3
kind: Migration
metadata:
annotations:
reloader.stakater.com/auto: "true"
generation: 1
labels:
stack: "true"
name: payments-v0.6.7-pre-upgrade
namespace: monopod-latest
spec:
configuration: monopod-latest
module: payments
postUpgrade: false
targetedVersion: v0.6.7
version: monopod-latest
status:
terminated: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: stack.formance.com/v1beta3
kind: Migration
metadata:
annotations:
reloader.stakater.com/auto: "true"
generation: 1
labels:
stack: "true"
name: search-v0.7.0-post-upgrade
namespace: monopod-latest
spec:
configuration: monopod-latest
module: search
postUpgrade: true
targetedVersion: v0.7.0
version: monopod-latest
status:
terminated: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: stack.formance.com/v1beta3
kind: Migration
metadata:
annotations:
reloader.stakater.com/auto: "true"
generation: 1
labels:
stack: "true"
name: wallets-v0.4.3-post-upgrade
namespace: monopod-latest
spec:
configuration: monopod-latest
module: wallets
postUpgrade: true
targetedVersion: v0.4.3
version: monopod-latest
status:
terminated: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: auth
namespace: monopod-latest
spec:
clusterIP: 10.0.0.140
clusterIP: 10.0.0.167
clusterIPs:
- 10.0.0.140
- 10.0.0.167
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: control
namespace: monopod-latest
spec:
clusterIP: 10.0.0.163
clusterIP: 10.0.0.245
clusterIPs:
- 10.0.0.163
- 10.0.0.245
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: gateway
namespace: monopod-latest
spec:
clusterIP: 10.0.0.50
clusterIP: 10.0.0.237
clusterIPs:
- 10.0.0.50
- 10.0.0.237
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: ledger
namespace: monopod-latest
spec:
clusterIP: 10.0.0.20
clusterIP: 10.0.0.163
clusterIPs:
- 10.0.0.20
- 10.0.0.163
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: orchestration
namespace: monopod-latest
spec:
clusterIP: 10.0.0.103
clusterIP: 10.0.0.159
clusterIPs:
- 10.0.0.103
- 10.0.0.159
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: payments
namespace: monopod-latest
spec:
clusterIP: 10.0.0.164
clusterIP: 10.0.0.235
clusterIPs:
- 10.0.0.164
- 10.0.0.235
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: search-benthos
namespace: monopod-latest
spec:
clusterIP: 10.0.0.149
clusterIP: 10.0.0.180
clusterIPs:
- 10.0.0.149
- 10.0.0.180
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: search
namespace: monopod-latest
spec:
clusterIP: 10.0.0.133
clusterIP: 10.0.0.184
clusterIPs:
- 10.0.0.133
- 10.0.0.184
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: stargate
namespace: monopod-latest
spec:
clusterIP: 10.0.0.249
clusterIP: 10.0.0.229
clusterIPs:
- 10.0.0.249
- 10.0.0.229
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: wallets
namespace: monopod-latest
spec:
clusterIP: 10.0.0.81
clusterIP: 10.0.0.102
clusterIPs:
- 10.0.0.81
- 10.0.0.102
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: webhooks
namespace: monopod-latest
spec:
clusterIP: 10.0.0.219
clusterIP: 10.0.0.121
clusterIPs:
- 10.0.0.219
- 10.0.0.121
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ data:
"match": {
"indexed.provider": this.payload.connector
}
},
{
"match": {
"stack": env("STACK")
}
}
]
}
Expand Down
Loading

1 comment on commit 4bd9696

@vercel
Copy link

@vercel vercel bot commented on 4bd9696 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.