Skip to content

Commit

Permalink
MOSIP-35082 - Fixed failure test case of masterdata for non-English l…
Browse files Browse the repository at this point in the history
…anguages (mosip#1053)

* MOSIP-34506 - Fixed masterdata failure test cases

Signed-off-by: Mohanachandran S <[email protected]>

* MOSIP-34506 - Fixed masterdata failure test cases

Signed-off-by: Mohanachandran S <[email protected]>

* MOSIP-35228 - Fixed the masterdata failures for non english languages

Signed-off-by: Mohanachandran S <[email protected]>

---------

Signed-off-by: Mohanachandran S <[email protected]>
  • Loading branch information
mohanachandran-s authored Aug 21, 2024
1 parent d7cd48c commit a413626
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FetchValidDocuments:
MasterData_FetchValidDocuments_allValid_smoke_with_lang:
endPoint: /v1/masterdata/validdocuments/{languagecode}
endPoint: /v1/masterdata/validdocuments/{languageCode}
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["languagecode"]
templateFields: ["languageCode"]
restMethod: get
inputTemplate: masterdata/FetchValidDocuments/fetchValidDocuments
outputTemplate: masterdata/FetchValidDocuments/fetchValidDocumentsResult
input: '{
"languagecode": "eng"
"languageCode": "eng"
}'
output: '{
"documentcategories": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"languagecode": "{{languagecode}}"
"languageCode": "{{languageCode}}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details where the name parameter equals the specified condition
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -44,7 +44,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details sorted in descending order
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -83,7 +83,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details with condition column as model
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -122,7 +122,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details with condition column as brand
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -162,7 +162,7 @@ SearchMachineSpec:
description: Search for machine spec details with condition column as is active
role: admin
checkErrorsOnlyInResponse: true
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -191,7 +191,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details where the condition column name is name and the filter type is starts with
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -230,7 +230,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details where the condition column name is name and the filter type is contains
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult
Expand Down Expand Up @@ -549,7 +549,7 @@ SearchMachineSpec:
endPoint: /v1/masterdata/machinespecifications/search
description: Search for machine spec details with invalid page size
role: admin
templateFields: ["value"]
templateFields: ["languageCode"]
restMethod: post
inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec
outputTemplate: masterdata/error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CreateTemplateFileFormat:
endPoint: /v1/masterdata/templatefileformats
description: Create a template file format with the input parameter description as missing
role: admin
templateFields: ["description"]
templateFields: ["langCode"]
restMethod: post
inputTemplate: masterdata/TemplateFileFormat/templateFileFormat
outputTemplate: masterdata/error
Expand Down

0 comments on commit a413626

Please sign in to comment.