File tree Expand file tree Collapse file tree
internal/api/integration_test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010 "github.com/stretchr/testify/assert"
1111 "github.com/stretchr/testify/require"
12+
1213 api "github.com/zitadel/nextgen/api/generated"
1314 "github.com/zitadel/nextgen/internal/api/integration_test/helpers"
1415 "github.com/zitadel/nextgen/internal/domain"
@@ -84,6 +85,19 @@ func TestCreateUser(t *testing.T) {
8485 "password" : "my-strong-password" ,
8586 }),
8687 },
88+ {
89+ name : "user with empty value for optional properties" ,
90+ params : api.CreateUserParams {
91+ ProjectID : api .ProjectID (project .ID ),
92+ },
93+ userjson : helpers .MustMarshal (t , map [string ]any {
94+ "$schema" : "https://test.example.schemas.com/schemas/default-human-user.json" ,
95+ "email" : "john.doe.emptyvalueoptionalproperties@example.com" ,
96+ "password" : "my-strong-password" ,
97+ "name" : "" ,
98+ "phoneNumber" : "" ,
99+ }),
100+ },
87101 }
88102 for _ , tc := range tcs {
89103 t .Run (tc .name , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments