Skip to content

Commit 17f8ccd

Browse files
committed
Fixed tests.
1 parent 2b482d9 commit 17f8ccd

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

manifests/examples/testing/scenarios/namespaced/injection-nodejs-protect.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: injection-nodejs-protect
55
spec:
66
enabled: true
7-
type: nodejs
7+
type: nodejs-protect
88
selector:
99
labels:
1010
- name: app

manifests/examples/testing/scenarios/namespaced/injection-nodejs.yaml renamed to manifests/examples/testing/scenarios/namespaced/injection-nodejs-v4.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apiVersion: agents.contrastsecurity.com/v1beta1
22
kind: AgentInjector
33
metadata:
4-
name: injection-nodejs
4+
name: injection-nodejs-v4
55
spec:
66
enabled: true
77
type: nodejs
88
selector:
99
labels:
1010
- name: app
11-
value: injection-nodejs
11+
value: injection-nodejs-v4
1212
image:
1313
pullPolicy: Never
1414
connection:
@@ -19,20 +19,20 @@ spec:
1919
apiVersion: apps/v1
2020
kind: Deployment
2121
metadata:
22-
name: injection-nodejs
22+
name: injection-nodejs-v4
2323
labels:
24-
app: injection-nodejs
24+
app: injection-nodejs-v4
2525
spec:
2626
replicas: 1
2727
selector:
2828
matchLabels:
29-
app: injection-nodejs
29+
app: injection-nodejs-v4
3030
strategy:
3131
type: Recreate
3232
template:
3333
metadata:
3434
labels:
35-
app: injection-nodejs
35+
app: injection-nodejs-v4
3636
spec:
3737
containers:
3838
- image: k8s.gcr.io/pause:3.3

manifests/examples/testing/scenarios/namespaced/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
- ./injection-dummy.yaml
1414
- ./injection-java.yaml
1515
- ./injection-javatooloptions.yaml
16-
- ./injection-nodejs.yaml
16+
- ./injection-nodejs-v4.yaml
1717
- ./injection-nodejs-protect.yaml
1818
- ./injection-php.yaml
1919
- ./missing-deps.yaml

manifests/install/all/crds/base/agentinjectors_agents_contrastsecurity_com.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ spec:
3434
type: string
3535
type:
3636
description: |-
37-
The type of agent to inject. Can be one of ['dotnet-core', 'java', 'nodejs', 'php'].
37+
The type of agent to inject. Can be one of ['dotnet-core', 'java', 'nodejs', 'nodejs-protect', 'php'].
3838
Required.
39-
pattern: ^(dotnet-core|dotnet|java|node|nodejs|php|personal-home-page|dummy)$
39+
pattern: ^(dotnet-core|dotnet|java|node|nodejs|node-protect|nodejs-protect|php|personal-home-page|dummy)$
4040
type: string
4141
image:
4242
description: Overrides the default agent images.

tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/Agents/NodeJsInjectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Contrast.K8s.AgentOperator.FunctionalTests.Scenarios.Injection.Agents
1212
{
1313
public class NodeJsInjectionTests : IClassFixture<TestingContext>
1414
{
15-
private const string ScenarioName = "injection-nodejs";
15+
private const string ScenarioName = "injection-nodejs-v4";
1616

1717
private readonly TestingContext _context;
1818

tests/Contrast.K8s.AgentOperator.FunctionalTests/Scenarios/Injection/Agents/NodeJsProtectInjectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Contrast.K8s.AgentOperator.FunctionalTests.Scenarios.Injection.Agents
1212
{
13-
public class NodeJsProtectInjectionTests
13+
public class NodeJsProtectInjectionTests : IClassFixture<TestingContext>
1414
{
1515
private const string ScenarioName = "injection-nodejs-protect";
1616

0 commit comments

Comments
 (0)