Skip to content

Commit

Permalink
Fix prefix not being unique for nodejs functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Feb 9, 2024
1 parent 2900621 commit 5617c21
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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-cjs
spec:
enabled: true
type: nodejs
selector:
labels:
- name: app
value: injection-nodejs
value: injection-nodejs-cjs
image:
pullPolicy: Never
connection:
Expand All @@ -19,20 +19,20 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: injection-nodejs
name: injection-nodejs-cjs
labels:
app: injection-nodejs
app: injection-nodejs-cjs
spec:
replicas: 1
selector:
matchLabels:
app: injection-nodejs
app: injection-nodejs-cjs
strategy:
type: Recreate
template:
metadata:
labels:
app: injection-nodejs
app: injection-nodejs-cjs
spec:
containers:
- image: k8s.gcr.io/pause:3.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resources:
- ./injection-dummy.yaml
- ./injection-java.yaml
- ./injection-javatooloptions.yaml
- ./injection-nodejs.yaml
- ./injection-nodejs-cjs.yaml
- ./injection-nodejs-esm.yaml
- ./injection-nodejs-protect.yaml
- ./injection-php.yaml
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-cjs";

private readonly TestingContext _context;

Expand Down

0 comments on commit 5617c21

Please sign in to comment.