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
Added sc-pipelines support #12
Added sc-pipelines support #12
Conversation
|
Thanks Marcin! Will take a look in the nearest future |
|
thx, cool, 3 points from me:
|
|
Ad. 2 It's failing on Cloud Foundry's postrgesql and I didn't have time to fix it Ad. 3 Your build on Travis is running install (thus package) with skipping tests. No tests equals no stubs generated from rest docs. No stubs == broken build. I think you should fix your travis build |
|
@marcingrzejszczak thx for info. |
|
Sure |
…ed to change it to remote
3c61ad7
to
26b0884
Compare
|
I fixed the conflicts and added limiting of connections for cloud (for free plan of postrgresql I ran out of connections). Also I still have to ignore one test cause it's not passing for me |
Codecov Report
@@ Coverage Diff @@
## master #12 +/- ##
========================================
Coverage 97.4% 97.4%
Complexity 104 104
========================================
Files 23 23
Lines 231 231
Branches 29 29
========================================
Hits 225 225
Misses 4 4
Partials 2 2Continue to review full report at Codecov.
|
| @@ -41,9 +41,28 @@ | |||
| </dependencies> | |||
|
|
|||
| <properties> | |||
| <java.version>1.8</java.version> | |||
| <!-- [PIPELINE] --> | |||
| <distribution.management.release.id>artifactory-local</distribution.management.release.id> | |||
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.
localhost:8081? should be depend on hardcoded URL?
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.
You can override it and it happens via the pipeline
| <changeSet author="jakubpilimon" id="2.postgres.json" dbms="postgresql"> | ||
| <sql>CREATE CAST (character varying AS jsonb) WITH INOUT AS ASSIGNMENT</sql> | ||
| </changeSet> | ||
| <!--<changeSet author="jakubpilimon" id="2.postgres.json" dbms="postgresql">--> |
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.
commenting changes that might have already been run somewhere will cause problems :) I know you had problems with jsonb but you can at least add ignore on error for this changelog
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.
Feel free to fix it
| @@ -1,6 +1,7 @@ | |||
| spring.main.banner-mode=off | |||
| spring.jpa.database=default | |||
| spring.jpa.database=postgresql | |||
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.
postgres for default profile? What about running locally?
| import org.springframework.beans.factory.annotation.Autowired | ||
| import org.springframework.boot.test.context.SpringBootTest | ||
| import spock.lang.Specification | ||
|
|
||
| import static java.util.Collections.singletonList | ||
|
|
||
| // TODO: Unignore |
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.
PR that fixes this test is already merged.
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.
It doesn't work on my machine
|
|
||
| def 'should work'() { | ||
| expect: | ||
| Awaitility.await().atMost(this.timeout, TimeUnit.SECONDS).untilAsserted({ |
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 you use awaitility when in Spock you have PollingConditions?
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.
Because I copied it from a working JUnit test. Feel free to change it to whatever you want.
| @Override | ||
| Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { | ||
| if (bean instanceof ShortagesDao) { | ||
| return Mockito.mock(ShortagesDao) |
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.
hmm, why?
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.
Because we want to mock out the access to the real database - spring-projects/spring-boot#13298
This reverts commit 6152fa2.
No description provided.