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
sunbird-course-service
Commits
4d7564ff
Commit
4d7564ff
authored
2 years ago
by
kumarks1122
Browse files
Options
Download
Patches
Plain Diff
Issue #000 | Testcase changes adde
parent
a8022f5b
sunbird-lern-course-1
bug_fix_5026_nodal_comment_issue
master
release-5.0.1
release-5.1.0
release-5.1.0-bulk-enrol
release-5.1.0-bulk-enrol-debug
release-5.1.0-bulk-enrol-filter
release-5.1.0-course_eval
release-5.1.0-map-comment
release-5.1.0-not-issue-cert
release-5.1.0-participant-detail
release-5.1.0-user-couse-batch-mapping
release-5.1.0_RC2
release-5.1.0_RC1
release-5.0.1_RC3
release-5.0.1_RC2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
course-mw/sunbird-util/sunbird-platform-core/common-util/src/test/java/org/sunbird/common/util/CloudStorageUtilTest.java
+16
-2
...st/java/org/sunbird/common/util/CloudStorageUtilTest.java
with
16 additions
and
2 deletions
+16
-2
course-mw/sunbird-util/sunbird-platform-core/common-util/src/test/java/org/sunbird/common/util/CloudStorageUtilTest.java
+
16
−
2
View file @
4d7564ff
...
...
@@ -60,6 +60,20 @@ public class CloudStorageUtilTest {
Mockito
.
any
(
Option
.
class
),
Mockito
.
any
(
Option
.
class
)))
.
thenReturn
(
PUT_SIGNED_URL
);
when
(
service
.
getSignedURLV2
(
Mockito
.
eq
(
"azurecontainer"
),
Mockito
.
anyString
(),
Mockito
.
any
(
Option
.
class
),
Mockito
.
any
(
Option
.
class
),
Mockito
.
any
(
Option
.
class
)))
.
thenReturn
(
SIGNED_URL
);
when
(
service
.
getSignedURLV2
(
Mockito
.
eq
(
"gcpcontainer"
),
Mockito
.
anyString
(),
Mockito
.
any
(
Option
.
class
),
Mockito
.
any
(
Option
.
class
),
Mockito
.
any
(
Option
.
class
)))
.
thenReturn
(
PUT_SIGNED_URL
);
}
catch
(
Exception
e
)
{
Assert
.
fail
(
e
.
getMessage
());
...
...
@@ -75,13 +89,13 @@ public class CloudStorageUtilTest {
@Test
public
void
testGetSignedUrlSuccess
()
{
String
signedUrl
=
CloudStorageUtil
.
getSignedUrl
(
"azure"
,
"container"
,
"key"
);
String
signedUrl
=
CloudStorageUtil
.
getSignedUrl
(
"azure"
,
"
azure
container"
,
"key"
);
assertTrue
(
SIGNED_URL
.
equals
(
signedUrl
));
}
@Test
public
void
testGetSignedUrlGCPSuccess
()
{
String
signedUrl
=
CloudStorageUtil
.
getSignedUrl
(
JsonKey
.
GCP
,
"container"
,
"key"
);
String
signedUrl
=
CloudStorageUtil
.
getSignedUrl
(
JsonKey
.
GCP
,
"
gcp
container"
,
"key"
);
assertTrue
(
PUT_SIGNED_URL
.
equals
(
signedUrl
));
}
}
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