@@ -105,9 +105,9 @@ describe('RASP - command_injection.js', () => {
105
105
106
106
start . publish ( ctx )
107
107
108
- const persistent = { [ addresses . SHELL_COMMAND ] : 'cmd' }
108
+ const ephemeral = { [ addresses . SHELL_COMMAND ] : 'cmd' }
109
109
sinon . assert . calledOnceWithExactly (
110
- waf . run , { persistent } , req , { type : 'command_injection' , variant : 'shell' }
110
+ waf . run , { ephemeral } , req , { type : 'command_injection' , variant : 'shell' }
111
111
)
112
112
} )
113
113
@@ -122,9 +122,9 @@ describe('RASP - command_injection.js', () => {
122
122
123
123
start . publish ( ctx )
124
124
125
- const persistent = { [ addresses . SHELL_COMMAND ] : [ 'cmd' , 'arg0' , 'arg1' ] }
125
+ const ephemeral = { [ addresses . SHELL_COMMAND ] : [ 'cmd' , 'arg0' , 'arg1' ] }
126
126
sinon . assert . calledOnceWithExactly (
127
- waf . run , { persistent } , req , { type : 'command_injection' , variant : 'shell' }
127
+ waf . run , { ephemeral } , req , { type : 'command_injection' , variant : 'shell' }
128
128
)
129
129
} )
130
130
@@ -154,9 +154,9 @@ describe('RASP - command_injection.js', () => {
154
154
155
155
start . publish ( ctx )
156
156
157
- const persistent = { [ addresses . EXEC_COMMAND ] : [ 'ls' ] }
157
+ const ephemeral = { [ addresses . EXEC_COMMAND ] : [ 'ls' ] }
158
158
sinon . assert . calledOnceWithExactly (
159
- waf . run , { persistent } , req , { type : 'command_injection' , variant : 'exec' }
159
+ waf . run , { ephemeral } , req , { type : 'command_injection' , variant : 'exec' }
160
160
)
161
161
} )
162
162
@@ -171,9 +171,9 @@ describe('RASP - command_injection.js', () => {
171
171
172
172
start . publish ( ctx )
173
173
174
- const persistent = { [ addresses . EXEC_COMMAND ] : [ 'ls' , '-la' , '/tmp' ] }
174
+ const ephemeral = { [ addresses . EXEC_COMMAND ] : [ 'ls' , '-la' , '/tmp' ] }
175
175
sinon . assert . calledOnceWithExactly (
176
- waf . run , { persistent } , req , { type : 'command_injection' , variant : 'exec' }
176
+ waf . run , { ephemeral } , req , { type : 'command_injection' , variant : 'exec' }
177
177
)
178
178
} )
179
179
0 commit comments