Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
2821a10f
Commit
2821a10f
authored
2 years ago
by
Jayaprakash n
Browse files
Options
Download
Patches
Plain Diff
Issue #KN-257 feat: Content Release DIAL codes API refactor.
parent
3a278b83
release-5.3.0
AmiableAnil-patch-1
Gcloud_copy
Gcloud_fix
Remove_unwantedCode_Gcloud_fix
bulk-upload-comptenecy-mapping
bulk-upload-excelsheet
bulk-upload-test_excel
bulk_upload
csp-migration
knowlg-oneclick
local-setup-kube
master
patch-1
patch-2
patch-3
poc_bulk_upload
rahul_bulk_upload_postgres
release-5.1.0
release-5.1.0-content
release-5.2.0
release-5.2.0_RC2
release-5.2.0_RC1
release-5.1.0_RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content-api/content-service/test/controllers/v4/ContentSpec.scala
+2
-2
...api/content-service/test/controllers/v4/ContentSpec.scala
with
2 additions
and
2 deletions
+2
-2
content-api/content-service/test/controllers/v4/ContentSpec.scala
+
2
−
2
View file @
2821a10f
...
...
@@ -195,7 +195,7 @@ class ContentSpec extends BaseSpec {
"return success response for dialcode reserve API"
in
{
val
controller
=
app
.
injector
.
instanceOf
[
controllers.v4.CollectionController
]
val
json
:
JsValue
=
Json
.
parse
(
"""{"request": {"dialcodes": {"count": 5, "qrCodeSpec": { "errorCorrectionLevel": "H" }}}}"""
.
stripMargin
)
val
fakeRequest
=
FakeRequest
(
"POST"
,
"/co
llection
/v4/dialcode/reserve/do_123"
).
withJsonBody
(
json
)
val
fakeRequest
=
FakeRequest
(
"POST"
,
"/co
ntent
/v4/dialcode/reserve/do_123"
).
withJsonBody
(
json
)
val
result
=
controller
.
reserveDialCode
(
"do_123"
)(
fakeRequest
)
isOK
(
result
)
status
(
result
)
must
equalTo
(
OK
)
...
...
@@ -206,7 +206,7 @@ class ContentSpec extends BaseSpec {
"return success response for dialcode release API"
in
{
val
controller
=
app
.
injector
.
instanceOf
[
controllers.v4.CollectionController
]
val
json
:
JsValue
=
Json
.
parse
(
"""{"request": {"dialcodes": {"count": 1}}}"""
.
stripMargin
)
val
fakeRequest
=
FakeRequest
(
"POST"
,
"/co
llection
/v4/dialcode/release/do_123"
).
withJsonBody
(
json
)
val
fakeRequest
=
FakeRequest
(
"POST"
,
"/co
ntent
/v4/dialcode/release/do_123"
).
withJsonBody
(
json
)
val
result
=
controller
.
releaseDialCode
(
"do_123"
)(
fakeRequest
)
isOK
(
result
)
status
(
result
)
must
equalTo
(
OK
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets