Skip to content

Conversation

@nosan
Copy link
Contributor

@nosan nosan commented Apr 8, 2018

see gh-11065

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 8, 2018
@philwebb philwebb added the for: team-attention An issue we'd like other members of the team to review label Apr 9, 2018
@philwebb philwebb added type: enhancement A general enhancement and removed for: team-attention An issue we'd like other members of the team to review status: waiting-for-triage An issue we've not yet triaged labels Apr 11, 2018
@philwebb philwebb added this to the Backlog milestone Apr 11, 2018
@MeeTooFirst1
Copy link

YEAH!!

}


private static class Assert {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a strange way to do this. Why not a method with 2 parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, thank you for your comment.
The reason why I did this is encapsulation System.getenv('key') and just do it similar to
the Assertions.assertThat(envKey).isEqualTo(val).
Of course, it could be

void assert(String envKey, String expectedValue) {
 ///
}

But in this particular case, it doesn't matter, but still if you have any concerns we can discuss this.

Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're considering adding something more in line with what the surefire plugin does (see #10741 for System properties with systemPropertyVariables). I'd like this PR to follow the same lead with a environmentVariables map.

Could you please update the PR in that direction?

@snicoll snicoll changed the title gh-11065. Set up environment variables using the Maven plugin. Set up environment variables using the Maven plugin Apr 17, 2018
@snicoll snicoll self-assigned this Apr 17, 2018
@nosan
Copy link
Contributor Author

nosan commented Apr 17, 2018

sure, I will do this later.

@MeeTooFirst1
Copy link

MeeTooFirst1 commented Apr 17, 2018 via email

@philwebb
Copy link
Member

@MeeTooFirst1 PR stands for pull-request but please don't spam our issue tracker with questions.

@nosan nosan force-pushed the gh-11065 branch 2 times, most recently from 0e2a9a3 to 0cbbd54 Compare April 17, 2018 22:10
@nosan
Copy link
Contributor Author

nosan commented Apr 17, 2018

@snicoll done :)

@snicoll snicoll modified the milestones: Backlog, 2.1.0.M1 Apr 24, 2018
snicoll pushed a commit that referenced this pull request Apr 24, 2018
@snicoll snicoll closed this in 40b7e02 Apr 24, 2018
snicoll added a commit that referenced this pull request Apr 24, 2018
* pr/12800:
  Polish "Add support for environment variables"
  Add support for environment variables
@snicoll
Copy link
Member

snicoll commented Apr 24, 2018

@nosan thanks a lot for your contribution. This is now merged in master with a polish commit.

@nosan nosan deleted the gh-11065 branch May 24, 2018 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants