Simon Dold
3225a7ddc0
Adding log download as zip archive ( #5121 )
...
* adding LogOutput to clone step
* delete comments
* adding stepName
* change step name
* adding multiple log archive outputs files
* changing file name
* change filename
* change time format
* adding second file for testing
* adding second file
* change structure for PersistReportsAndLinks
* change to pointer
* change pointer
* cleanup
* changing file name
* adding logArchive for pull action
* adding logArchive for checkoutBranch
* refactor zip archive log
* change structure
* adding PersistArchiveLogsForPiperStep function
* adding persist structure to checkout
* adding FileNameStep
* adding unit tests
* correct name
* change whitespace in yaml
* fixing unit tests
* fixing createTag unit test
* fixing unit test
* fixing unit test
* rename ArchiveOutputLogs to LogOutputManager
* refactor pointer structure
* adopt tests to pointer structure
* fixing / error in repo name
* adding log overview also after archive log
* change log output structure
* adding always execution log
* update unit tests
---------
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2024-10-10 13:42:09 +02:00
Daniel Mieg
dbc3d41b37
SAP_COM_0948 ( #4715 )
...
* SAP_COM_0948 clone, pull & checkout
* Fix log output
* Enable compatibility for old tests
* Fix tests
* Add tests for SAP_COM_0948
* Change message
* Add tags for test
* add retry for error code 501
---------
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2023-12-19 15:16:48 +01:00
Daniel Mieg
0a738e882c
[ABAP] Refactor steps to allow API migration ( #4687 )
...
* Initial API Manager
* Intermediate part
* Intermediate step
* Fix utils tests
* Adapt pull
* Migrate Checkout
* Refactor createTags
* Refactoring
* Setup tests for SAP_COM_0510
* Add tests
* Refactor parsing
* Add retry to clone
* refactor
* Refactor and tests
* Fix function call
* Adapt create tag tests
* Adapt tests
* Add tests
* Fix tests
* Fix test
* Fix client mock
* Add unit test comments
* Add missing parameters
* Branch not mandatory for clone
* Improve switch branch trigger
---------
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2023-11-28 13:26:31 +01:00
Jordi van Liempt
0ba4c2206c
chore(deps): Replace io/ioutil package ( #4494 )
...
* update all deprecated ioutil usages
* forgotten changes
* add missing imports
* undo changing comment
* add missing 'os' import
* fix integration test
---------
Co-authored-by: I557621 <jordi.van.liempt@sap.com>
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
2023-08-16 12:57:04 +02:00
Jk1484
ffc931aad1
feat(golangBuild): use 'unit' build tag to include tests during test execution ( #4345 )
...
* Added unit tag as argument. Added description to runTests command. Changed code generator to have unit build tag in generated unit test files.
* Added unit build tag to all unit test files.
* added to new unit test unit build tag
* Update verify-go.yml
* small fix
---------
Co-authored-by: Muhammadali Nazarov <Muhammadali.Nazarov@acronis.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2023-05-03 21:02:11 +05:00
Daniel Mieg
549b32c675
Adapt to backend API changes ( #4309 )
...
* Remove legacy logging
* Implement new requests
* Improve Tests
* Adapt tests
* Refactor
* Fix tests
2023-03-31 15:26:38 +02:00
Eng Zer Jun
0f4e30e9db
test: use T.TempDir
to create temporary test directory ( #3721 )
...
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but `t.TempDir` handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2022-07-12 15:19:12 +02:00
Oliver Nocon
dbc459d6ea
chore: cleanup linting issues in abap steps ( #3876 )
...
* chore: cleanup linting issues in abap steps
* update
* do not break on errors during testing
* Fix warning
Co-authored-by: Daniel Mieg <daniel.mieg@sap.com>
2022-07-06 14:29:04 +02:00
Daniel Mieg
6ff4143b08
Execute checkout & pull when already cloned ( #3850 )
...
* Execute checkout & pull when already cloned
* Revert
* Disallow config overload
* Add custom error handler for clone
* Implement new pull parameters
* Add tests
* Formatting
* Rename Param
* Add comment
* Add docu
* Adapt testst to merge
* Fix Unit Test
2022-06-30 10:43:33 +02:00
Daniel Mieg
8923d1e583
Add Execution Log ( #3863 )
...
* Add Execution Log
* Adapt Tests
* Remove log
2022-06-29 15:50:33 +02:00
Daniel Mieg
f08ff92171
New log entities for Pull & Clone ( #3517 )
...
* WIP
* New Logs
* Improving
* Determine log output based on available entities
* Increase width
* Add line
* Adapt TestPollEntity
* Format
* Fix query
* Adapt tests
* Fix test
* Improve formatting
* Retern early in case of no logs
* Remove duplicate log
2022-02-11 10:16:40 +01:00
Daniel Mieg
2bb6c21337
ABAP environment: add tag support ( #3376 )
2021-12-20 17:58:58 +01:00
Daniel Mieg
9c76b89fb8
Add telemetry for abapEnvironment steps ( #3016 )
...
* Remove explicit telemetry from signature
* Set log level
* ATC set error category
2021-08-04 17:31:16 +02:00
Daniel Mieg
d23e26f87f
Revert "Parallel test processing for abaputils ( #2570 )" ( #2578 )
...
This reverts commit e6086ad4a7d3861357cdadddc8a74ec7915f668f.
2021-02-04 15:19:42 +01:00
Daniel Mieg
e6086ad4a7
Parallel test processing for abaputils ( #2570 )
...
* add parallel test processing
* Add more t.Parallel
* add parallel to run
* Remove obsolete parallel statements
2021-02-03 17:31:49 +01:00
Daniel Mieg
7639175def
Add commit to clone and pull ( #2258 )
...
* commit ID for clone
* commit ID for clone
* Remove old default values
* Add commitID to Pull
* Print http response on debug level
* Fix tests
* Adapt tests
* Shorten sleep
* Fix clone tests
* Add ignore commit option
* Adapt tests
* Adapt docu
* Implement feedback
* fix codeclimate issue
2020-11-02 14:17:13 +01:00
Dominik Lendle
703f8e921e
Mass enabling for pullGitRepo & checkoutBranch steps ( #2005 )
2020-10-05 14:38:35 +02:00
Daniel Mieg
04b8a5cbd7
Add golang step for abapEnvironmentCloneGitRepo ( #1921 )
...
* Add yaml
* Initial files
* Add inital functions
* Create Test file
* Initial trigger clone function
* Add command
* Adapt manageGitRepositoryUtils
* Enable Repositories yaml
* Add handleHttpError Tests
* Adapt CodeClimate Feedback
* Add tests for error messages
* Adapt error messages and handling
* Adapt gitignore
2020-08-21 14:49:48 +02:00