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
3a278b83
Commit
3a278b83
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
fc492fbf
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
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
content-api/api-tests/Collections/Release DIAL Code API.postman_collection.json
+907
-0
...Collections/Release DIAL Code API.postman_collection.json
content-api/api-tests/Reports/Release DIAL Code API.postman_test_run.json
+488
-0
...tests/Reports/Release DIAL Code API.postman_test_run.json
with
1395 additions
and
0 deletions
+1395
-0
content-api/api-tests/Collections/Release DIAL Code API.postman_collection.json
0 → 100644
+
907
−
0
View file @
3a278b83
This diff is collapsed.
Click to expand it.
content-api/api-tests/Reports/Release DIAL Code API.postman_test_run.json
0 → 100644
+
488
−
0
View file @
3a278b83
{
"id"
:
"0f65eca4-84c1-4ad3-9ca7-4c0c035fe6a1"
,
"name"
:
"Release DIAL Code API"
,
"timestamp"
:
"2022-09-07T11:58:49.914Z"
,
"collection_id"
:
"13387833-d76732b8-56b7-4a54-84f1-4c43e694dcd9"
,
"folder_id"
:
0
,
"environment_id"
:
"0e0b136d-70cc-437e-a0df-ccba162408d9"
,
"totalPass"
:
21
,
"totalFail"
:
0
,
"results"
:
[
{
"id"
:
"32d3736c-e0f7-4d97-9230-4a4c8d8a80eb"
,
"name"
:
"Collection Create"
,
"url"
:
"http://localhost:9000/content/v4/create"
,
"time"
:
49
,
"responseCode"
:
{
"code"
:
200
,
"name"
:
"OK"
},
"tests"
:
{
"Status code is 200"
:
true
},
"testPassFailCounts"
:
{
"Status code is 200"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
49
],
"allTests"
:
[
{
"Status code is 200"
:
true
}
]
},
{
"id"
:
"ce3e135b-72fc-4561-badc-5094ecab1ab2"
,
"name"
:
"Collection Create wo reserved DIAL codes"
,
"url"
:
"http://localhost:9000/content/v4/create"
,
"time"
:
28
,
"responseCode"
:
{
"code"
:
200
,
"name"
:
"OK"
},
"tests"
:
{
"Status code is 200"
:
true
},
"testPassFailCounts"
:
{
"Status code is 200"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
28
],
"allTests"
:
[
{
"Status code is 200"
:
true
}
]
},
{
"id"
:
"1f0520aa-3f59-4c3e-be73-2574ea09a123"
,
"name"
:
"TOC Upload"
,
"url"
:
"http://localhost:9000/collection/v4/import/do_113619625412968448149"
,
"time"
:
533
,
"responseCode"
:
{
"code"
:
200
,
"name"
:
"OK"
},
"tests"
:
{
"Status code is 200"
:
true
},
"testPassFailCounts"
:
{
"Status code is 200"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
533
],
"allTests"
:
[
{
"Status code is 200"
:
true
}
]
},
{
"id"
:
"c7ebfb77-7f9e-483b-afd6-4b6b44067e8b"
,
"name"
:
"Reserve DIAL code"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/reserve/do_113619625412968448149"
,
"time"
:
1702
,
"responseCode"
:
{
"code"
:
200
,
"name"
:
"OK"
},
"tests"
:
{},
"testPassFailCounts"
:
{},
"times"
:
[
1702
],
"allTests"
:
[
{}
]
},
{
"id"
:
"5a0c02b8-ab74-4d12-9ce3-06ba874311b9"
,
"name"
:
"Link DIAL code"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/link/do_113619625412968448149"
,
"time"
:
199
,
"responseCode"
:
{
"code"
:
200
,
"name"
:
"OK"
},
"tests"
:
{},
"testPassFailCounts"
:
{},
"times"
:
[
199
],
"allTests"
:
[
{}
]
},
{
"id"
:
"48eaac17-ecf6-45e2-ad72-b95ef26d9e55"
,
"name"
:
"Release DIAL code"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
101
,
"responseCode"
:
{
"code"
:
200
,
"name"
:
"OK"
},
"tests"
:
{
"Status code is 200"
:
true
,
"Response returns with reservedDialcodes with one less"
:
true
},
"testPassFailCounts"
:
{
"Status code is 200"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response returns with reservedDialcodes with one less"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
101
],
"allTests"
:
[
{
"Status code is 200"
:
true
,
"Response returns with reservedDialcodes with one less"
:
true
}
]
},
{
"id"
:
"cec90850-4020-4b24-a4f3-76b2c52b9da6"
,
"name"
:
"Release DIAL code Invalid Channel Id header"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
24
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_CHANNEL"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_INVALID_CHANNEL"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
24
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_CHANNEL"
:
true
}
]
},
{
"id"
:
"60202782-e345-4c4c-8f1e-939cd7ee8f0b"
,
"name"
:
"Release DIAL code with Zero count"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
30
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_COUNT_RANGE"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_INVALID_COUNT_RANGE"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
30
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_COUNT_RANGE"
:
true
}
]
},
{
"id"
:
"28f49920-9a42-441b-90b6-34260a2cd834"
,
"name"
:
"Release DIAL code with negative count"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
31
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_COUNT_RANGE"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_INVALID_COUNT_RANGE"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
31
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_COUNT_RANGE"
:
true
}
]
},
{
"id"
:
"b0dd02cf-d5b8-44bb-acd7-367bdc5f9592"
,
"name"
:
"Release DIAL code with count greater than max limit(250)"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
35
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_COUNT_RANGE"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_INVALID_COUNT_RANGE"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
35
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_INVALID_COUNT_RANGE"
:
true
}
]
},
{
"id"
:
"208caab7-3f00-47ab-ae97-838e9b4815b4"
,
"name"
:
"Release DIAL code with invalid collection Id"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_dummy_id"
,
"time"
:
35
,
"responseCode"
:
{
"code"
:
404
,
"name"
:
"Not Found"
},
"tests"
:
{
"Status code is 404"
:
true
,
"Response throws RESOURCE_NOT_FOUND"
:
true
},
"testPassFailCounts"
:
{
"Status code is 404"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws RESOURCE_NOT_FOUND"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
35
],
"allTests"
:
[
{
"Status code is 404"
:
true
,
"Response throws RESOURCE_NOT_FOUND"
:
true
}
]
},
{
"id"
:
"9a169a58-785e-468e-b8fe-014b0d3898d9"
,
"name"
:
"Release DIAL code for collection wo reserved DIAL codes"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625413853184150"
,
"time"
:
55
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_CONTENT_MISSING_RESERVED_DIAL_CODES"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_CONTENT_MISSING_RESERVED_DIAL_CODES"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
55
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_CONTENT_MISSING_RESERVED_DIAL_CODES"
:
true
}
]
},
{
"id"
:
"5d662783-fe26-41db-a2b6-66ed08be9430"
,
"name"
:
"Release DIAL code with count greater than reserved DIAL codes count"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
31
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_COUNT_GREATER_THAN_RESERVED_DIAL_CODES"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_COUNT_GREATER_THAN_RESERVED_DIAL_CODES"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
31
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_COUNT_GREATER_THAN_RESERVED_DIAL_CODES"
:
true
}
]
},
{
"id"
:
"2610536f-2c69-41c1-be92-6df6b4a153dc"
,
"name"
:
"Release DIAL code with count same as linked DIAL codes"
,
"url"
:
"http://localhost:9000/collection/v4/dialcode/release/do_113619625412968448149"
,
"time"
:
89
,
"responseCode"
:
{
"code"
:
400
,
"name"
:
"Bad Request"
},
"tests"
:
{
"Status code is 400"
:
true
,
"Response throws ERR_ALL_DIALCODES_UTILIZED"
:
true
},
"testPassFailCounts"
:
{
"Status code is 400"
:
{
"pass"
:
1
,
"fail"
:
0
},
"Response throws ERR_ALL_DIALCODES_UTILIZED"
:
{
"pass"
:
1
,
"fail"
:
0
}
},
"times"
:
[
89
],
"allTests"
:
[
{
"Status code is 400"
:
true
,
"Response throws ERR_ALL_DIALCODES_UTILIZED"
:
true
}
]
}
],
"count"
:
1
,
"totalTime"
:
2942
,
"collection"
:
{
"requests"
:
[
{
"id"
:
"32d3736c-e0f7-4d97-9230-4a4c8d8a80eb"
,
"method"
:
"POST"
},
{
"id"
:
"ce3e135b-72fc-4561-badc-5094ecab1ab2"
,
"method"
:
"POST"
},
{
"id"
:
"1f0520aa-3f59-4c3e-be73-2574ea09a123"
,
"method"
:
"POST"
},
{
"id"
:
"c7ebfb77-7f9e-483b-afd6-4b6b44067e8b"
,
"method"
:
"POST"
},
{
"id"
:
"5a0c02b8-ab74-4d12-9ce3-06ba874311b9"
,
"method"
:
"POST"
},
{
"id"
:
"48eaac17-ecf6-45e2-ad72-b95ef26d9e55"
,
"method"
:
"POST"
},
{
"id"
:
"cec90850-4020-4b24-a4f3-76b2c52b9da6"
,
"method"
:
"POST"
},
{
"id"
:
"60202782-e345-4c4c-8f1e-939cd7ee8f0b"
,
"method"
:
"POST"
},
{
"id"
:
"28f49920-9a42-441b-90b6-34260a2cd834"
,
"method"
:
"POST"
},
{
"id"
:
"b0dd02cf-d5b8-44bb-acd7-367bdc5f9592"
,
"method"
:
"POST"
},
{
"id"
:
"208caab7-3f00-47ab-ae97-838e9b4815b4"
,
"method"
:
"POST"
},
{
"id"
:
"9a169a58-785e-468e-b8fe-014b0d3898d9"
,
"method"
:
"POST"
},
{
"id"
:
"5d662783-fe26-41db-a2b6-66ed08be9430"
,
"method"
:
"POST"
},
{
"id"
:
"2610536f-2c69-41c1-be92-6df6b4a153dc"
,
"method"
:
"POST"
}
]
}
}
\ No newline at end of file
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