71 Commits

Author SHA1 Message Date
Glenn Renfro
24a54b954b Updated libs-snapshot to snapshot for test dependencies and props 2023-05-01 16:17:04 -04:00
Glenn Renfro
4f0b68bd0b Identified depracations and updated the code 2023-03-20 14:01:45 -04:00
Glenn Renfro
6d17f8dedb Replacing cloud.test.TestSocketUtils
Now utilizing the one provided by the spring framework
2022-11-28 20:49:00 -05:00
Glenn Renfro
a0fda4bf6e Set Spring Cloud Task Date Strategy to match Batch
resolves #868
Signed-off-by: Glenn Renfro <grenfro@vmware.com>

Updated the timestamps for H2,oracle, db2, hsqldb to be 9 digits for improved accuracy
2022-10-18 14:20:57 -04:00
Glenn Renfro
cf8056880b Added jackson as a optional test dependency for integration tests 2022-10-13 15:01:34 -04:00
Glenn Renfro
b46278be5d Removed BatchConfigurer and @EnableBatchProcessing from tests and samples
TaskJobLauncherApplicationRunnerTests updated

Signed-off-by: Glenn Renfro <grenfro@vmware.com>

Updated Integration tests

Updated Tests for samples
2022-09-21 14:44:50 -04:00
Glenn Renfro
25cf280f78 StartTime is now honored for TaskExecution
regardless if they were created before or during task execution.

resolves #861
2022-09-14 11:00:12 -04:00
Glenn Renfro
30d6c63a23 Removed Job and Step Builder factories.
Now using builders directly
2022-09-13 18:39:24 -04:00
Glenn Renfro
87632b3487 Updated readers and writers to set platform transaction
It is no longer provided by default by the job builder.

https://github.com/spring-projects/spring-batch/wiki/Spring-Batch-5.0-Migration-Guide#infrastructure-beans-configuration-with-enablebatchbatchprocessing
2022-09-08 19:15:55 -04:00
Glenn Renfro
3609e53751 Updated Observation code to use the updates offered by the Micrometer snapshot 2022-09-06 17:33:13 -04:00
Glenn Renfro
76a5d12136 Updated to files to fit the Standard. 2022-07-25 11:41:43 -04:00
Glenn Renfro
cc247c1263 Removing DB2 based tests and dependencies 2022-06-02 17:32:04 -04:00
Tyler Carpenter-Rivers
fc89e23144 resolves https://github.com/spring-cloud/spring-cloud-task/issues/780
update db2 'between' logic to be exclusive

Signed-off-by: Ryan DCruz <rd@enfuse.io>

use .acceptLicense() instead of the classpath file

checkstyle

add test to verify a result set that's smaller than requested page size

cleanup
2022-05-02 16:33:10 -04:00
Glenn Renfro
147b98c4ba Updated samples to use SCSt 4.0.0-SNAPSHOT instead of M1 2022-03-11 16:39:22 -05:00
Glenn Renfro
270b24be8b Updated tests so that they use TestSocketUtils instead of SocketUtils
Temporarily disabled tests for remote partition sample until Spring Cloud Deployer Local is fixed
2022-03-09 16:49:18 -05:00
Glenn Renfro
449595a4b2 Updated base project to 3.x 2022-01-03 14:08:58 -05:00
Glenn Renfro
78f27ef26d Base Task Sink Case with Tests works
In process of migrating batch-events to streambridge

BatchEvents Migrated

Integration tests for TaskSink now work

Batch Event Integration Tests updated

Added tests to batch events

Event integration tests added

Updated with the last bit of tests

baseline polishing
2022-01-03 14:08:50 -05:00
Michael Minella
f7d507c8af Updated to Spring Cloud Stream 3.2 2021-07-30 12:16:44 -05:00
Glenn Renfro
bb7567b851 Updated to support latest version of rabbitmq for test containers. 2021-01-06 11:52:54 -05:00
Glenn Renfro
8337e8e3e4 Update versions for testcontainer andd rabbit versions for tests
Update jacoco version so build will work with the current release of maven

update
2020-10-28 20:52:34 -04:00
Glenn Renfro
59c9adf047 Updated all Junit tests to 5.x
resolves TASK-675
2020-07-07 10:55:16 -05:00
Glenn Renfro
1a7113f37b Updated to reset vesions to Snapshot and to fix a checkstyle 2019-11-04 09:14:37 -05:00
Glenn Renfro
7490f8b820 Initialize values with properties vs value
resolves #SCT-587
2019-07-03 13:24:06 -05:00
Glenn Renfro
16f68020fb Update dependency versions 2019-05-07 13:54:00 -04:00
Glenn Renfro
ce51987f98 Rebased
Updated to spring-cloud-build 2.2.0.BUILD-SNAPSHOT
Updated Tests to support the changes in the latest H2 database
Must use "-ifNotExists", when using the H2 TCP Server
2019-03-28 16:57:11 -05:00
Spring Operator
2bff013b83 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 204 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Updated Spring Cloud Build dependency

this was so that we can get the latest spring-cloud-build
2019-03-21 16:34:26 -04:00
Glenn Renfro
2a25426c9c Change repo for sink test to libs-release 2019-02-21 13:38:27 -05:00
Glenn Renfro
03d9a980e9 Cleanup from Checkstyle changes
resolves #511

* Sets the appropriate copyright dates
* Updates some docs
2019-02-13 12:21:14 -05:00
Glenn Renfro
874b18652c Fixed the test
resolves #511
2019-02-08 11:38:11 -05:00
Marcin Grzejszczak
60f1e21d03 Added checkstyle 2019-02-03 19:27:07 +01:00
Glenn Renfro
30399dbb57 Established @EnableTask to create instance of TaskLifecycle Bean
resolves #494
2018-12-10 16:07:31 -05:00
Glenn Renfro
8e1d38a76a Cleanup code smells reported by Sonar
This is a first pass are removing some of the code smells.
Many reported code smells were ignored in this effort
2018-11-27 16:09:17 -05:00
Glenn Renfro
b46ca25133 Updated time to wait for test task to finish in TaskLauncherSinkTests to complete 2018-11-02 15:49:11 -04:00
Ilayaperumal Gopinathan
324abd4e5c Exit code is nullable
- Make exit code nullable and only update of execution status can make it a valid integer
 - Update JDBC create/start task execution queries to have exitCode as `null` values
 - Update tests to validate/verify the appropirate exit code values for create/start/complete task executions

On merge had to add a pause to the TaskLauncherSinkTests to wait for the task to complete successfully   Before we assumed that 0 was a satisfactory result meaning it was either running or completed.    Now with the null being returned it could be zero or null.  So we have to wait for the task to complete.
2018-11-02 14:45:55 -04:00
Glenn Renfro
c7ef7fbff4 Starting to move to java 11[Do Not Merge]
All version changes are present.

Fixed all Java-Doc Errors and warnings

* Due to the stricter nature of the javadoc compiler we can't wrap <ul> / <ui> in <p>
* We will also need to Push up a test app for taklauncher to work with.   The old one fails to start now.   Or use one of the task starters possibly.
* Built on the work from TASK-439C.   Wait for that merge before merging this one.
* Replaced applicationFailedEvent class attribute with applicaitonFailedException
* Also polished the app used by the taskLauncherSink integration test
2018-11-01 15:23:17 -04:00
Michael Minella
90c88c52e6 Polish 2018-11-01 10:45:15 -05:00
Glenn Renfro
d2bc2530cc Update Task to BOOT 2.1.M1
Migrating to use ApplicationContextRunner or ImportAutoConfiguration with SpringApp.run, instead of SpringApplicationBuilder, because builder does not handle AutoConfiguration properly

SimpleTaskAutoConfiguration now has an annotation AutoConfigureBefore the BatchTaskAutoConfig so that it is processed prior.  THis is so that that BatchTaskAutoConfig can create the appropriate beans

SimpleTaskAutoConfiguration has new annotations so that it is AutoConfigured after BindingServiceConfiguration and after SimpleTaskAutoConfiguration.  This is so that it does not attempt to start emitting messages before stream is ready and it can create the appropriate beans after SimpleTaskAutoConfiguration has run.

Renamed SimpleTaskConfiguration to SimpleTaskAutoConfiguration.

Task version updated to  2.1.0

Added missing headers

Updated documentation.

Deprecated EnableTask

Added ability to disable Task autoconfiguration.

Removed @EnableTask from tests

Resolves #439
Resolves #440
Resolves #448
Resolves #466
2018-11-01 10:43:31 -05:00
Glenn Renfro
d2c90c5256 Updated to add metadata for Conditionals
Also renamed camel-cased properties to cononical format.

resolves #442
2018-10-26 09:42:14 +01:00
Michael Minella
30f50dded9 Fixed integration tests 2018-05-01 08:07:07 -05:00
Michael Minella
508aa84d83 Updated versions prior to release 2018-04-13 17:16:56 -05:00
Michael Minella
6426cfea7e Polish 2018-02-13 09:28:22 -06:00
Glenn Renfro
76309b89ff Removed code that was marked as deprecated.
Also updated test that tested deprecated code.

resolves #366
2018-02-13 09:28:09 -06:00
Glenn Renfro
4e77027f2e Clear all objects in the database between runs.
resolves #382
2018-01-30 13:51:16 -06:00
Glenn Renfro
d8a73ba183 Prevent a task from starting if an inst with the same name is running.
resolves #81

Using LockRegistryLeaderInitiator to do leadership election.

When task is started and singleInstanceEnabled isset to true then we use leader election
to determine if a task needs to be started.

Error Event Name had to be updated
2018-01-25 13:24:53 -06:00
Glenn Renfro
94e074d841 Set the spring.cloud.task.closecontext_enable default to false
resolves #364
2018-01-24 14:11:35 -06:00
Glenn Renfro
3ad9efe3fe Updated tests to remove deprecated code from tests
* cleanup removing unused headers
* Updated asserts in code base that needed messages (marked as deprecated)
* left one test that was testing a deprecated constructor.  When that code is removed we can remove that test.
* some other cleanup

resolves #338
2018-01-18 11:42:37 -06:00
Glenn Renfro
0ed6da6613 Resolves Test Failures for TaskLauncher and Task Start Tests
resolves #339
2018-01-12 17:30:38 -05:00
Glenn Renfro
d95f46002f Migrate Task to Spring Cloud Build 2.0.x
resolves #313
2017-07-12 11:38:00 -05:00
Ali Shahbour
450de51d0c Add Ordered interface to all event listeneres
changes requested by cppwfs

Fix Constructors duplication

Add @author

Some cleanup on chunk listener

Updated chunk listener to send message before and after chunk.
Fixed Links for JavaDocs to prevent failure on javadoc build.
Updated tests to support new chunk messages.
2017-03-31 09:15:28 -04:00
Thomas Risberg
fec40fd3f8 Adding a method to pass in taskName for new empty TaskExecution
Resolves #298

Added test and add param to javadoc
2017-03-29 14:17:02 -04:00