Skip to content
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

Correct handling of multiple spaces in one environment in get request #162

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

Felipe444
Copy link
Collaborator

No description provided.

@@ -54,6 +54,35 @@ class JPAEnvironmentRepositoryIT extends Specification {
}
}

def 'should overwrite what was persisted before - one environment with multiple spaces'() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

According to test name it should check if persist method overwrite previous environment state so there is missing persist call in given section (look for test above)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wrong test name - will fix it

def thirdSpace = new Space('def', [new ServiceId('serviceName5', 'serviceVersion5')] as Set)

and:
def environment = new Environment('environmentName', [firstSpace, secondSpace, thirdSpace] as Set)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor - formatting - missing tabs

Copy link
Collaborator Author

@Felipe444 Felipe444 Feb 11, 2021

Choose a reason for hiding this comment

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

sometimes we have it without indent, sometimes with. We would need to address this globally

@coveralls
Copy link

Pull Request Test Coverage Report for Build 640

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 97.12%

Totals Coverage Status
Change from base Build 630: 0.2%
Covered Lines: 607
Relevant Lines: 625

💛 - Coveralls

@Felipe444 Felipe444 merged commit c474091 into master Feb 11, 2021
@Felipe444 Felipe444 deleted the mult_spac branch February 11, 2021 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants