From ee55dedaafa0537d62f0f27c7d1298e56bd958db Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Tue, 10 Jun 2025 14:29:14 +0200 Subject: [PATCH] fix(vpn): support default region enum value in tests Signed-off-by: Alexander Dahmen --- blacklist.txt | 1 - templates/go/api_test.mustache | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/blacklist.txt b/blacklist.txt index 12b2f0e..5a9dd67 100644 --- a/blacklist.txt +++ b/blacklist.txt @@ -6,5 +6,4 @@ kms airflow customer -vpn privateendpoint \ No newline at end of file diff --git a/templates/go/api_test.mustache b/templates/go/api_test.mustache index e0e6892..b731661 100644 --- a/templates/go/api_test.mustache +++ b/templates/go/api_test.mustache @@ -30,7 +30,7 @@ func Test_{{packageName}}_{{classname}}Service(t *testing.T) { _apiUrlPath := "{{{path}}}"{{#pathParams}} {{^minLength}} {{^maxLength}} - {{paramName}}Value := {{#isAnyType}}"unspecified type"{{/isAnyType}}{{#isString}}{{#isUuid}}uuid.NewString(){{/isUuid}}{{^isUuid}}"{{paramName}}-value"{{/isUuid}}{{/isString}}{{#isNumber}}123{{/isNumber}}{{#isFloat}}float32(123){{/isFloat}}{{#isDouble}}float64(123){{/isDouble}}{{#isInteger}}int32(123){{/isInteger}}{{#isLong}}int64(123){{/isLong}}{{^isString}}{{^isInteger}}{{defaultValue}}{{/isInteger}}{{/isString}} + {{paramName}}Value := {{#isEnumRef}}{{^isString}}{{dataType}}({{{defaultValue}}}){{/isString}}{{/isEnumRef}}{{#isAnyType}}"unspecified type"{{/isAnyType}}{{#isString}}{{#isUuid}}uuid.NewString(){{/isUuid}}{{^isUuid}}"{{paramName}}-value"{{/isUuid}}{{/isString}}{{#isNumber}}123{{/isNumber}}{{#isFloat}}float32(123){{/isFloat}}{{#isDouble}}float64(123){{/isDouble}}{{#isInteger}}int32(123){{/isInteger}}{{#isLong}}int64(123){{/isLong}}{{^isString}}{{^isInteger}}{{^isEnumRef}}{{{defaultValue}}}{{/isEnumRef}}{{/isInteger}}{{/isString}} {{/maxLength}} {{/minLength}} {{#minLength}}