-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add auxiliary test github user repository #9308
Conversation
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
private void createFile(Path pathToRootContentDirectory, Path pathToFile) throws IOException { | ||
byte[] contentBytes = Files.readAllBytes(pathToFile); | ||
String relativePath = pathToRootContentDirectory.relativize(pathToFile).toString(); | ||
String commitMessage = String.format("Add file %s", relativePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String commitMessage = "Add file " + relativePath;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer String.format()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But in my opinion in this case the concatenation is better for use. But of course, this is only my opinion.
@@ -60,6 +60,12 @@ | |||
@Inject private Ide ide; | |||
@Inject private TestUser productUser; | |||
|
|||
// @Inject private TestGitHubRepository testRepo; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why commenting is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an example of used in target test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you uncomment this rows? And in this case test maintainer should only check and approve your changes and doesn`t do anything more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I uncomment it for now, it will be creating two unnecessary repositories during the execution while the test will be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove that code and add en example in the PR description.
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
What does this PR do?
How to use:
What issues does this PR fix or reference?
#9155