Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvenga committed Nov 15, 2022
1 parent 2b482d9 commit 17f8ccd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: injection-nodejs-protect
spec:
enabled: true
type: nodejs
type: nodejs-protect
selector:
labels:
- name: app
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: agents.contrastsecurity.com/v1beta1
kind: AgentInjector
metadata:
name: injection-nodejs
name: injection-nodejs-v4
spec:
enabled: true
type: nodejs
selector:
labels:
- name: app
value: injection-nodejs
value: injection-nodejs-v4
image:
pullPolicy: Never
connection:
Expand All @@ -19,20 +19,20 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: injection-nodejs
name: injection-nodejs-v4
labels:
app: injection-nodejs
app: injection-nodejs-v4
spec:
replicas: 1
selector:
matchLabels:
app: injection-nodejs
app: injection-nodejs-v4
strategy:
type: Recreate
template:
metadata:
labels:
app: injection-nodejs
app: injection-nodejs-v4
spec:
containers:
- image: k8s.gcr.io/pause:3.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
- ./injection-dummy.yaml
- ./injection-java.yaml
- ./injection-javatooloptions.yaml
- ./injection-nodejs.yaml
- ./injection-nodejs-v4.yaml
- ./injection-nodejs-protect.yaml
- ./injection-php.yaml
- ./missing-deps.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ spec:
type: string
type:
description: |-
The type of agent to inject. Can be one of ['dotnet-core', 'java', 'nodejs', 'php'].
The type of agent to inject. Can be one of ['dotnet-core', 'java', 'nodejs', 'nodejs-protect', 'php'].
Required.
pattern: ^(dotnet-core|dotnet|java|node|nodejs|php|personal-home-page|dummy)$
pattern: ^(dotnet-core|dotnet|java|node|nodejs|node-protect|nodejs-protect|php|personal-home-page|dummy)$
type: string
image:
description: Overrides the default agent images.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Contrast.K8s.AgentOperator.FunctionalTests.Scenarios.Injection.Agents
{
public class NodeJsInjectionTests : IClassFixture<TestingContext>
{
private const string ScenarioName = "injection-nodejs";
private const string ScenarioName = "injection-nodejs-v4";

private readonly TestingContext _context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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

Expand Down

0 comments on commit 17f8ccd

Please sign in to comment.