@@ -90,9 +90,8 @@ describe('config validation', () => {
9090 } ;
9191
9292 test ( 'config validation passes when only required fields are provided' , ( ) => {
93- const config : Record < string , string | boolean > = {
93+ const config : Record < string , string > = {
9494 url : 'http://mylisteningserver:9200/endpoint' ,
95- hasAuth : true ,
9695 } ;
9796 expect ( validateConfig ( actionType , config ) ) . toEqual ( {
9897 ...defaultValues ,
@@ -102,10 +101,9 @@ describe('config validation', () => {
102101
103102 test ( 'config validation passes when valid methods are provided' , ( ) => {
104103 [ 'post' , 'put' ] . forEach ( ( method ) => {
105- const config : Record < string , string | boolean > = {
104+ const config : Record < string , string > = {
106105 url : 'http://mylisteningserver:9200/endpoint' ,
107106 method,
108- hasAuth : true ,
109107 } ;
110108 expect ( validateConfig ( actionType , config ) ) . toEqual ( {
111109 ...defaultValues ,
@@ -129,9 +127,8 @@ describe('config validation', () => {
129127 } ) ;
130128
131129 test ( 'config validation passes when a url is specified' , ( ) => {
132- const config : Record < string , string | boolean > = {
130+ const config : Record < string , string > = {
133131 url : 'http://mylisteningserver:9200/endpoint' ,
134- hasAuth : true ,
135132 } ;
136133 expect ( validateConfig ( actionType , config ) ) . toEqual ( {
137134 ...defaultValues ,
@@ -158,7 +155,6 @@ describe('config validation', () => {
158155 headers : {
159156 'Content-Type' : 'application/json' ,
160157 } ,
161- hasAuth : true ,
162158 } ;
163159 expect ( validateConfig ( actionType , config ) ) . toEqual ( {
164160 ...defaultValues ,
@@ -188,7 +184,6 @@ describe('config validation', () => {
188184 headers : {
189185 'Content-Type' : 'application/json' ,
190186 } ,
191- hasAuth : true ,
192187 } ;
193188
194189 expect ( validateConfig ( actionType , config ) ) . toEqual ( {
@@ -268,7 +263,6 @@ describe('execute()', () => {
268263 headers : {
269264 aheader : 'a value' ,
270265 } ,
271- hasAuth : true ,
272266 } ;
273267 await actionType . executor ( {
274268 actionId : 'some-id' ,
@@ -326,7 +320,6 @@ describe('execute()', () => {
326320 headers : {
327321 aheader : 'a value' ,
328322 } ,
329- hasAuth : false ,
330323 } ;
331324 const secrets : ActionTypeSecretsType = { user : null , password : null } ;
332325 await actionType . executor ( {
0 commit comments