Skip to content

Commit c5d6e94

Browse files
authored
fix(vpn): support default region enum value in tests (#165)
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 7d34c1d commit c5d6e94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

blacklist.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ kms
66

77
airflow
88
customer
9-
vpn
109
privateendpoint

templates/go/api_test.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Test_{{packageName}}_{{classname}}Service(t *testing.T) {
3030
_apiUrlPath := "{{{path}}}"{{#pathParams}}
3131
{{^minLength}}
3232
{{^maxLength}}
33-
{{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}}
33+
{{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}}
3434
{{/maxLength}}
3535
{{/minLength}}
3636
{{#minLength}}

0 commit comments

Comments
 (0)