Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
0a4618d4
Commit
0a4618d4
authored
10 years ago
by
tmortagne
Browse files
Options
Downloads
Patches
Plain Diff
[misc] Allow passing credentials to use to create an extension
parent
f0806842
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-repository/xwiki-platform-repository-test/xwiki-platform-repository-test-utils/src/main/java/org/xwiki/repository/test/RepositoryTestUtils.java
+6
-1
6 additions, 1 deletion
...n/java/org/xwiki/repository/test/RepositoryTestUtils.java
with
6 additions
and
1 deletion
xwiki-platform-core/xwiki-platform-repository/xwiki-platform-repository-test/xwiki-platform-repository-test-utils/src/main/java/org/xwiki/repository/test/RepositoryTestUtils.java
+
6
−
1
View file @
0a4618d4
...
@@ -93,6 +93,11 @@ public void deleteExtension(Extension extension)
...
@@ -93,6 +93,11 @@ public void deleteExtension(Extension extension)
}
}
public
void
addExtension
(
Extension
extension
)
throws
Exception
public
void
addExtension
(
Extension
extension
)
throws
Exception
{
addExtension
(
extension
,
null
);
}
public
void
addExtension
(
Extension
extension
,
UsernamePasswordCredentials
credentials
)
throws
Exception
{
{
this
.
testUtils
.
deletePage
(
"Extension"
,
getPageName
(
extension
));
this
.
testUtils
.
deletePage
(
"Extension"
,
getPageName
(
extension
));
...
@@ -129,7 +134,7 @@ public void addExtension(Extension extension) throws Exception
...
@@ -129,7 +134,7 @@ public void addExtension(Extension extension) throws Exception
addDependencies
(
extension
);
addDependencies
(
extension
);
// Attach the file
// Attach the file
attachFile
(
extension
);
attachFile
(
extension
,
credentials
);
}
}
public
void
addVersionObject
(
Extension
extension
)
public
void
addVersionObject
(
Extension
extension
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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