Comments (3)
Oh, this is going to be tough. Do you mind sharing content of /sap/bc/adt/core/discovery
(I have no 7.40 for testing)? Hmm, I shall add a command to sapcli.
Could you try changing:
https://github.com/jfilak/sapcli/blob/master/sap/adt/package.py#L39
'packages
to vit/wb/object_type/devck/object_name
?
from sapcli.
Oh, this is going to be tough. Do you mind sharing content of
/sap/bc/adt/core/discovery
(I have no 7.40 for testing)? Hmm, I shall add a command to sapcli.
Sure, I'll send it to you.
Could you try changing:
https://github.com/jfilak/sapcli/blob/master/sap/adt/package.py#L39
'packages
tovit/wb/object_type/devck/object_name
?
I was looking for that line but my non-existent python knowledge held me back...
I changed it and the request now looks the same except for the additional options-block. However, I still get the same result. Which is very surprising to me. Seems like my assumption was wrong that it was related to the object syntax, sorry.
I also deleted the options block
diff --git a/sap/adt/aunit.py b/sap/adt/aunit.py
index 460eeb5..1bc3cd3 100644
--- a/sap/adt/aunit.py
+++ b/sap/adt/aunit.py
@@ -38,12 +38,6 @@ class AUnit:
<external>
<coverage active="false"/>
</external>
- <options>
- <uriType value="semantic"/>
- <testDeterminationStrategy sameProgram="true" assignedTests="false" appendAssignedTestsPreview="true"/>
- <testRiskLevels harmless="true" dangerous="true" critical="true"/>
- <testDurations short="true" medium="true" long="true"/>
- </options>
<adtcore:objectSets xmlns:adtcore="http://www.sap.com/adt/core">
<objectSet kind="inclusive">
<adtcore:objectReferences>
That didn't change the result either. The requests now look identical to me, except for the upper / lower case of the package name.
./sapcli aunit run package '/ABC/PACKAGE'
<?xml version="1.0" encoding="UTF-8"?>
<aunit:runConfiguration xmlns:aunit="http://www.sap.com/adt/aunit">
<external>
<coverage active="false"/>
</external>
<adtcore:objectSets xmlns:adtcore="http://www.sap.com/adt/core">
<objectSet kind="inclusive">
<adtcore:objectReferences>
<adtcore:objectReference adtcore:uri="/sap/bc/adt/vit/wb/object_type/devck/object_name/%2Fabc%2Fpackage"/>
</adtcore:objectReferences>
</objectSet>
</adtcore:objectSets>
</aunit:runConfiguration>
ADT
<?xml version="1.0" encoding="UTF-8"?>
<aunit:runConfiguration xmlns:aunit="http://www.sap.com/adt/aunit">
<external>
<coverage active="false"/>
</external>
<adtcore:objectSets xmlns:adtcore="http://www.sap.com/adt/core">
<objectSet kind="inclusive">
<adtcore:objectReferences>
<adtcore:objectReference adtcore:uri="/sap/bc/adt/vit/wb/object_type/devck/object_name/%2abc%2Fpackage"/>
</adtcore:objectReferences>
</objectSet>
</adtcore:objectSets>
</aunit:runConfiguration>
....even later....
OK, this fixes it, apparently 740SP20 is case sensitive in regards to the package name. The other patch regarding the uri is also needed, deleting the options block is not required.
diff --git a/sap/adt/objects.py b/sap/adt/objects.py
index 1559494..922b6ff 100644
--- a/sap/adt/objects.py
+++ b/sap/adt/objects.py
@@ -413,7 +413,7 @@ class ADTObject(metaclass=OrderedClassMembers):
"""ADT object URL fragment"""
# pylint: disable=no-member
- return self.objtype.basepath + '/' + quote_plus(self.name.lower())
+ return self.objtype.basepath + '/' + quote_plus(self.name)
@property
diff --git a/sap/adt/package.py b/sap/adt/package.py
index 7160d21..548348f 100644
--- a/sap/adt/package.py
+++ b/sap/adt/package.py
@@ -36,7 +36,7 @@ class Package(ADTObject):
OBJTYPE = ADTObjectType(
'DEVC/K',
- 'packages',
+ 'vit/wb/object_type/devck/object_name',
xmlns_adtcore_ancestor('pak', 'http://www.sap.com/adt/packages'),
'application/vnd.sap.adt.packages.v1+xml',
{},
from sapcli.
Well done! Thank you very much.
from sapcli.
Related Issues (20)
- Proper encoding of skipped AUNIT tests into junit results xml
- determine master program of includes somehow HOT 1
- aunit code coverage HOT 2
- aunit run transport does not resolve LIMU objects HOT 2
- No testable objects found should not result in an error return code HOT 2
- Provide aunit results in sonar generic execution format HOT 3
- rfc user must initialize some parameters
- gCTS configuration does not always contain "value"
- add gCTS polling on timeouts HOT 1
- package create - transport request HOT 3
- add abapgit repo settings Folder Logic
- aunit junit4 does not catch syntax errors in classes HOT 1
- CI doesn't work HOT 1
- ATC checks and aunit does not work on the include program. HOT 1
- migrate to public ADT ATC API
- parse server errors reported in HTML HOT 2
- encode bytes to base64 in startrfc HOT 1
- 'gcts repo property get' should use list instead of table HOT 1
- ATC - ERROR_LEVEL is not working HOT 5
- potential issues in gcts activities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapcli.