Skip to content

Commit

Permalink
adapt integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Sep 19, 2023
1 parent 9281cba commit cedd173
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ commands:
# substitutes current time and namespace, making sure they are changed to env var first
# to prevent bad files in case of a test interrupt
- script: |
envsubst < install.yaml | kubectl apply -f -
envsubst < install.yaml | kubectl apply -f - -n $NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,33 @@ apiVersion: metrics.keptn.sh/v1alpha3
kind: AnalysisValueTemplate
metadata:
name: value-1
namespace: $NAMESPACE
spec:
provider:
name: my-first-mocked-provider
namespace: $NAMESPACE
query: 'query-1'
---
apiVersion: metrics.keptn.sh/v1alpha3
kind: AnalysisValueTemplate
metadata:
name: value-2
namespace: $NAMESPACE
spec:
provider:
name: my-second-mocked-provider
namespace: $NAMESPACE
query: 'query-2'
---
apiVersion: metrics.keptn.sh/v1alpha3
kind: AnalysisValueTemplate
metadata:
name: value-3
namespace: $NAMESPACE
spec:
provider:
name: my-third-mocked-provider
namespace: $NAMESPACE
query: 'query-3'
---
apiVersion: metrics.keptn.sh/v1alpha3
kind: AnalysisDefinition
metadata:
name: ed-my-proj-dev-svc1
namespace: $NAMESPACE
spec:
objectives:
- analysisValueTemplateRef:
Expand Down Expand Up @@ -80,7 +73,6 @@ apiVersion: metrics.keptn.sh/v1alpha3
kind: Analysis
metadata:
name: analysis-sample
namespace: $NAMESPACE
spec:
timeframe:
from: 2023-09-14T07:33:19Z
Expand All @@ -89,13 +81,11 @@ spec:
"ns": "keptn-lifecycle-toolkit-system"
analysisDefinition:
name: ed-my-proj-dev-svc1
namespace: $NAMESPACE
---
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: my-first-mocked-provider
namespace: $NAMESPACE
spec:
type: prometheus
targetServer: "http://mockserver.$NAMESPACE.svc.cluster.local:1080"
Expand All @@ -104,7 +94,6 @@ apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: my-second-mocked-provider
namespace: $NAMESPACE
spec:
type: prometheus
targetServer: "http://mockserver.$NAMESPACE.svc.cluster.local:1080"
Expand All @@ -113,7 +102,6 @@ apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: my-third-mocked-provider
namespace: $NAMESPACE
spec:
type: prometheus
targetServer: "http://mockserver.$NAMESPACE.svc.cluster.local:1080"

0 comments on commit cedd173

Please sign in to comment.