-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add basic test for workload lifecycle (#1526)
- Loading branch information
Showing
34 changed files
with
2,556 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
frontend/node_modules | ||
frontend/webapp/node_modules | ||
.git/ | ||
Dockerfile | ||
odiglet/Dockerfile | ||
odiglet/base.Dockerfile | ||
odiglet/debug.Dockerfile | ||
tests # not needed in context for odigos components builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,4 @@ spec: | |
timeout: 60s | ||
content: | | ||
../../common/ui-tests/stop_ui_and_clean.sh | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: Destination | ||
metadata: | ||
name: odigos.io.dest.tempo-123123 | ||
namespace: odigos-system | ||
spec: | ||
data: | ||
TEMPO_URL: e2e-tests-tempo.traces:4317 | ||
destinationName: e2e-tests | ||
signals: | ||
- TRACES | ||
type: tempo |
98 changes: 98 additions & 0 deletions
98
tests/e2e/workload-lifecycle/01-assert-apps-installed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: nodejs-unsupported-version | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: nodejs-unsupported-version | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: nodejs-very-old-version | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: nodejs-very-old-version | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: nodejs-minimum-version | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: nodejs-minimum-version | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: nodejs-latest-version | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: nodejs-latest-version | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: nodejs-dockerfile-env | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: nodejs-dockerfile-env | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: nodejs-manifest-env | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: nodejs-manifest-env | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: cpp-http-server | ||
namespace: default | ||
status: | ||
containerStatuses: | ||
- name: cpp-http-server | ||
ready: true | ||
restartCount: 0 | ||
started: true | ||
phase: Running | ||
--- |
174 changes: 174 additions & 0 deletions
174
tests/e2e/workload-lifecycle/01-assert-instrumented.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-nodejs-unsupported-version | ||
status: | ||
conditions: | ||
- message: "javascript runtime version not supported by OpenTelemetry SDK. Found: | ||
8.17.0, supports: 14.0.0" | ||
observedGeneration: 1 | ||
reason: RuntimeVersionNotSupported | ||
status: "False" | ||
type: AppliedInstrumentationDevice | ||
--- | ||
# expecting injection of instrumentation device to be successful since the runtime version was not detected | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-nodejs-very-old-version | ||
status: | ||
conditions: | ||
- message: "Instrumentation device applied successfully" | ||
observedGeneration: 1 | ||
reason: InstrumentationDeviceApplied | ||
status: "True" | ||
type: AppliedInstrumentationDevice | ||
--- | ||
# expecting injection of instrumentation device to be successful since the runtime version is supported | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-nodejs-minimum-version | ||
status: | ||
conditions: | ||
- message: "Instrumentation device applied successfully" | ||
observedGeneration: 1 | ||
reason: InstrumentationDeviceApplied | ||
status: "True" | ||
type: AppliedInstrumentationDevice | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentationInstance | ||
metadata: | ||
namespace: default | ||
labels: | ||
instrumented-app: deployment-nodejs-minimum-version | ||
status: | ||
healthy: true | ||
identifyingAttributes: | ||
- key: service.instance.id | ||
(value != null): true | ||
- key: telemetry.sdk.language | ||
value: nodejs | ||
- key: process.runtime.version | ||
value: "14.0.0" | ||
- key: telemetry.distro.version | ||
value: e2e-test | ||
- key: process.pid | ||
(value != null): true | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-nodejs-latest-version | ||
status: | ||
conditions: | ||
- message: "Instrumentation device applied successfully" | ||
observedGeneration: 1 | ||
reason: InstrumentationDeviceApplied | ||
status: "True" | ||
type: AppliedInstrumentationDevice | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentationInstance | ||
metadata: | ||
namespace: default | ||
labels: | ||
instrumented-app: deployment-nodejs-latest-version | ||
status: | ||
healthy: true | ||
identifyingAttributes: | ||
- key: service.instance.id | ||
(value != null): true | ||
- key: telemetry.sdk.language | ||
value: nodejs | ||
- key: process.runtime.version | ||
(value != null): true | ||
- key: telemetry.distro.version | ||
value: e2e-test | ||
- key: process.pid | ||
(value != null): true | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-nodejs-dockerfile-env | ||
status: | ||
conditions: | ||
- message: "Instrumentation device applied successfully" | ||
observedGeneration: 1 | ||
reason: InstrumentationDeviceApplied | ||
status: "True" | ||
type: AppliedInstrumentationDevice | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentationInstance | ||
metadata: | ||
namespace: default | ||
labels: | ||
instrumented-app: deployment-nodejs-dockerfile-env | ||
status: | ||
healthy: true | ||
identifyingAttributes: | ||
- key: service.instance.id | ||
(value != null): true | ||
- key: telemetry.sdk.language | ||
value: nodejs | ||
- key: process.runtime.version | ||
value: "20.17.0" | ||
- key: telemetry.distro.version | ||
value: e2e-test | ||
- key: process.pid | ||
(value != null): true | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-nodejs-manifest-env | ||
status: | ||
conditions: | ||
- message: "Instrumentation device applied successfully" | ||
observedGeneration: 1 | ||
reason: InstrumentationDeviceApplied | ||
status: "True" | ||
type: AppliedInstrumentationDevice | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentationInstance | ||
metadata: | ||
namespace: default | ||
labels: | ||
instrumented-app: deployment-nodejs-manifest-env | ||
status: | ||
healthy: true | ||
identifyingAttributes: | ||
- key: service.instance.id | ||
(value != null): true | ||
- key: telemetry.sdk.language | ||
value: nodejs | ||
- key: process.runtime.version | ||
value: "20.17.0" | ||
- key: telemetry.distro.version | ||
value: e2e-test | ||
- key: process.pid | ||
(value != null): true | ||
--- | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: InstrumentedApplication | ||
metadata: | ||
namespace: default | ||
name: deployment-cpp-http-server | ||
status: | ||
conditions: | ||
- message: "Instrumentation device applied successfully" | ||
observedGeneration: 1 | ||
reason: InstrumentationDeviceApplied | ||
status: "True" | ||
type: AppliedInstrumentationDevice | ||
--- |
Oops, something went wrong.