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
8109f6fbe8
OData V4 error message handling ( #5013 )
...
* OData V4 error message handling
* Adapt tests
2024-08-16 13:41:23 +02:00
Simon Dold
65dbd4526c
Adapt clone step to work with customer-managed Repos (BYOG) ( #4966 )
...
* adding byog credentials for clone command
* adding unit tests for clone body
* adding parameters
* adding optional byog parameters
* fixing typo in username
* remove aliases in config yaml
* change yaml config
* logs
* change info log
* change logs
* remove logs
* adding log statements
* remove log statements
* fixing typo in test class
* change repoTest structure
* remove comment
* remove comment
* generate
* adding unit test comments
* adding error handling
* adding isByog check
* fixing unit test
* generate
* Update manageGitRepositoryUtils_test.go
* restructure isByog parameter
* adding empty line for md linter
* adding config.yaml example to docs
* Update documentation/docs/steps/abapEnvironmentCloneGitRepo.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* Update documentation/docs/steps/abapEnvironmentCloneGitRepo.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* Update documentation/docs/steps/abapEnvironmentCloneGitRepo.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* Update documentation/docs/steps/abapEnvironmentCloneGitRepo.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* Update documentation/docs/steps/abapEnvironmentCloneGitRepo.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* adding release
---------
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2024-06-25 08:09:31 +00:00
Tilo Körner
bf9c743fb6
errorcause and remove telemetry warnings ( #4951 )
2024-06-20 10:44:12 +02:00
Daniel Mieg
8eeba2d005
[ABAP] Migrate SAP_COM_0510 to SAP_COM_0948 ( #4925 )
...
* Migrate SAP_COM_0510 to SAP_COM_0948
* Update error message
* Update error message
* Fix error message in unit test
* Update unit tests
2024-06-10 10:51:22 +02:00
Daniel Mieg
125c48ee75
Fix output for log protocol header ( #4926 )
...
* Fix output for log protocol header
* Fix wrong merge
2024-05-10 09:54:07 +02:00
Tilo Körner
ac55ddf525
support trustedCerts for cloneGitRepo ( #4909 )
...
* support trustedCerts for cloneGitRepo
* some more steps
* Update sap_com_0948.go
* remove warning for config value type
* updated description for certificateNames
* go generate artifacts
* variable order and space in "[]interface {}"
2024-05-10 08:58:46 +02:00
Simon Dold
ff9b3d4296
[ABAP] update ConvertTime ( #4919 )
...
* update ConvertTime
* clean up
* fix typo
---------
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2024-05-08 14:25:13 +02:00
tiloKo
0aac69625e
Provide addonDescriptor to build System ( #4914 )
2024-05-02 13:22:35 +02:00
Daniel Mieg
9bb306adad
[ABAP] Add execution log ( #4902 )
...
* [ABAP] Add output for execution log
* Add buil comments
* Rename to avoid build issue
---------
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2024-04-24 16:01:34 +02:00
Daniel Mieg
6e9f52e274
Adapt request body for SAP_COM_0948 ( #4865 )
...
* Adapt request body for SAP_COM_0948
* Adapt tests
* Readd tags
2024-03-14 16:30:19 +01:00
Daniel Mieg
f51fbc3e4e
Only print logs if error occurred ( #4823 )
2024-02-09 10:20:27 +01:00
Daniel Mieg
7575539c5a
top ( #4787 )
2024-02-02 19:07:31 +00:00
Daniel Mieg
d115858ead
Fix initial request ( #4785 )
2024-01-18 20:28:24 +01: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
Daniel Mieg
6e2ecefc2f
Add scheduled status ( #4668 )
...
* Add scheduled status
* Add test
* Improve log output
2023-11-13 21:17:49 +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
Daniel Mieg
994e87479d
ABAP: Add details for EOF errors ( #4442 )
...
* Add details for EOF errors
* Add testcase
* remove test
* Add unit test
2023-07-18 09:05:53 +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
7147209e3e
Improve logging for ABAP steps ( #4316 )
...
* Fix logs
* Increase number of entries
2023-04-04 12:46:03 +02: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
Daniel Mieg
74b5527f1c
Increase cf cli to v8 for ABAP steps ( #4183 )
...
* Increase docker image version
* Add --wait
* Test
* Adapt to new cf cli
* Parse both for cf cli v8 and v7
* Remove input
* Adapt to feedback
* Check for nil error
2023-01-12 08:39:14 +00:00
Oliver Nocon
25216b3ef8
chore: update formatting ( #4111 )
2022-11-08 08:47:38 +01:00
tiloKo
0a2327dda8
Abap relese confirm fault tollerant ( #3916 )
...
* no error if package release fails
2022-08-23 15:33:42 +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
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
3184785c5e
Add parameter to pull step ( #3851 )
...
* Add parameter to pull step
* Add test for config
* Adapt docu
* Update resources/metadata/abapEnvironmentPullGitRepo.yaml
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Regenerate
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2022-06-28 11:02:15 +02:00
Daniel Mieg
8ce7577a34
Handle empty http response correctly ( #3805 )
2022-05-25 13:57:13 +02:00
Daniel Mieg
cda6e71ab9
Add ABAP step: createTag ( #3633 )
...
* Cloud Platform -> BTP
* Initial generation of new step
* add flag
* wip
* Fix warnings
* Add command
* Added Tag Decription
* Add status check
* Improve handling
* Improve handling
* Add test for happy path
* Add test reports to gitignore
* Add second test
* Improve createTag
* Add testcase
* Adaptions
* Add test
* Update cmd/abapEnvironmentCreateTag.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Update cmd/abapEnvironmentCreateTag.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Adapt error handling
* Improve coding
* Add info
* Disallow repositories and repositoryName at the
same time
* Regenerate
* Adapt to feedback
* Update cmd/abapEnvironmentCreateTag.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Update cmd/abapEnvironmentCreateTag.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2022-05-23 15:15:22 +02:00
Daniel Mieg
a5fcc7517b
Improve logging ( #3788 )
2022-05-19 16:59:37 +02:00
Daniel Bernd
c65e569cdf
add OSL Package Tree on ObjectSet level ( #3762 )
...
Co-authored-by: Daniel Bernd <93763187+danManSAP@users.noreply.github.com>
2022-04-29 16:50:57 +02:00
Daniel Bernd
a3f1234a60
Feature: ATC & AUNIT - ObjectSetLibrary(OSL) usage ( #3755 )
...
* own OSL go File & first changes ATC step
* OSL Integration in AUnit & ATC steps 1
* OSL & Unit Tests
* Unit Tests 1
* OSL - AUnit & ATC usage
* Unittest ATC: packagetree --> package incl. subpackages
* correct spelling
* yaml & generated update
* generated Metadata
Co-authored-by: Daniel Bernd <93763187+danManSAP@users.noreply.github.com>
2022-04-27 13:30:43 +02:00
rosemarieB
9fdaf86856
Enable additional piecelist for assembly ( #3730 )
...
* add useClassicCTS
* add option additionalPiecelist
* Update abapEnvironmentAssemblePackages.go
2022-04-12 16:00:17 +02:00
rosemarieB
1ffe22903e
Enable classic cts ( #3728 )
...
* add useClassicCTS
* debug output and unit test
* unsaved fix
* error logging
* Update abapEnvironmentAssemblePackages.go
* Update abapEnvironmentAssemblePackages.go
* add general scope and remove logging
* Update bfw.go
* Update abapEnvironmentAssemblePackages.go
* Update abapEnvironmentAssemblePackages.go
* Update package.go
* Update abapEnvironmentAssemblePackages.go
* change scope and add certificates
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2022-04-12 14:39:42 +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
8634d8bb12
Add easy mode for AUnit & ATC ( #3389 )
...
* remove mandatory flag from config files
* Enable repo.yml as config
* Adapt to merge
* Refactoring
* Refactoring
* avoid panic
* Add comments
* Add easy mode for atc
* Add tests
* Add test
* Refactor
* Add test for MPS
* Updates
* Rename functions
* Add files to gitignore
* Rename
* Renaming
* Renaming
* Renaming
* Improve error messages
* Update documentation
* Add logging
* Rename
* Extend gitignore
2022-01-12 12:02:27 +01:00
Daniel Mieg
2bb6c21337
ABAP environment: add tag support ( #3376 )
2021-12-20 17:58:58 +01:00
tiloKo
9464b345d0
abapEnvironmentAssemblePackages store file in workspace instead of cpe ( #3232 )
...
* initial refac
* fix unit test, no publish
* fix typo
2021-11-02 11:00:01 +01:00
tiloKo
a0ad624b9a
RobustConfirm ( #3179 )
...
confirm no longer done based on package status but now based on boolean indicator which is set during assembly step.
Thus confirm can now be placed after release packages.
2021-10-28 11:01:16 +02: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
tiloKo
b04e3140de
SAP BTP ABAP Environment: addon build with supported Languages ( #2689 )
...
* first try
* fix unit test
* remove obsolete attributes
2021-03-15 20:24:43 +01: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
Dominik Lendle
52722c298a
Bug Fixes for abaputils class + unit tests ( #2525 )
...
* Bug Fixes
* remove command.Command
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2021-01-26 20:23:59 +01:00
Daniel Mieg
a3ff90f632
Fix: Change URL creation for abapEnvironmentCloneGitRepo ( #2452 )
...
* Fix url creation
* Adapt url creation
2020-12-08 09:31:08 +01:00
Marcus Holl
56586cae1b
Remove assert.Error right before assert.EqualError ( #2344 )
...
Is there any benefit from having
```
assert.Error(./.)
assert.EqualError(./.)
```
?
assert.Error ensures that we have an error.
assert.EqualError ensures that we have an error and
moreover it checks for a specific error. Hence
assert.EqualError does all and more what assert.Error
does.
In case there is a benefit from that pattern this PR should not be merged.
In case there is not benefit from that pattern we should abandong that pattern.
2020-11-11 14:14:55 +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
MuellerHenrik
a70c0dfaed
Fix for EOF issue ( #2143 )
...
* Fix GetHTTPResponse fuc
* Add time.sleep statement
2020-10-08 11:08:58 +02:00