[v7r1] Fix proxyDB test#4469
Conversation
|
But why does it work with pyGSI ? |
|
There are also problems in the assert calls self.assertTrue(result['OK'], '\n%s' % result.get('Message') or 'Error message is absent.')The "%" operator has precedence over "or". This should be for example. self.assertTrue(result['OK'], '\n' + result.get('Message', 'Error message is absent.'))And also in the rest of the cases in this file. |
|
@chaen I don't know, need to more tests.. because I tested voms-proxy-fake and it didn't add VOMS extention as expected, so ProxyDB successfully uploaded proxy(without VOMS extention that is normal). |
|
@chaen the result depended from chain.isVOMS(): FrameworkSystem/DB/ProxyDB if this method return different results with/without pyGSI that can be a reason. |
|
There shouldn't be any difference at all between pyGSI and M2Crypto, not at this level for sure. |
|
Can you merge https://github.com/DIRACGrid/DIRAC/pull/4461/files in this branch? |
|
Yes, pelase do not comment out the VOMS tests, they must work |
I was wrong.. voms-proxy-fake working perfect. |
|
At least, VOMS client tools can see extension. |
|
I guess this should be closed now that #4490 has been created? (If not there is a bad merge in the server tests) |
|
Question, we need the changes that I merged from #4461? |
@fstagni could you, please, confirm that this merge still needed? |
|
I don't know anymore, I am lost in all these changes right now. |
|
As #4461 is still open, I think it's probably better to merge that PR as this one only adds changes for debugging? |
91d33f1 to
b3c9520
Compare
|
From the tests I have done, (#4490 (comment)) the fact of having an underscore or a digit in the |
|
if so, what other cases do you suggest adding to make this test complete enough? |
|
So, after looking at the proxy you sent me, I noticed that the DN is using some |
|
I leave both cases (/O=DN/O=DIRAC/CN=user_1 & /O=DN/O=DIRAC/CN=user), but I not agree that by modifying that, I trying to hiding the real problem : ) because the goal of modified block is to check specific case(Stored proxy already have different VOMS extension, not decoding process) and I reported about this exception. Just need to add all absent test cases. |
6fa3a29 to
adde63c
Compare
|
@chaen : we have to conclude with this one. If you have some really important requests for changes, please do. If there can be different ways to achieve the same thing, let's favor the one which is already coded. I would like to merge this one to resume the normal testing and proceed with further PRs |
|
As I explained during the BILD, I have a hard time telling what is important and what is not. I also would have liked other people to look at the PR. |
1 similar comment
|
As I explained during the BILD, I have a hard time telling what is important and what is not. I also would have liked other people to look at the PR. |
|
You say it should not be like that. Then suggest a solution. This function relies on the internal functions of the class. Extracting it from the class is not evident. Making yet another class inheriting this one and making internal function protected instead of private (oh my) just because it seems to you that this should be "not in production" code does not seem too much justifying the change. Having this function does not harm the production code and helps testing. It can be useful later, although not sure, for resource monitoring. I do not think that this should be a blocking issue for this PR |
fstagni
left a comment
There was a problem hiding this comment.
I personally don't see blocking issues here.
|
OK |
|
IIUC, we have other PRs that cannot be in progress because this PR contains some test fixes. If it's true, IMHO, I can open a new separate PR about ProxyProvider resources where we can continue. And merge this PR that gives us the ability to pass tests in other PRs and continue browsing all in parallel. |
|
|
Integration tests |
|
After the documents changed, the next test failed: |
|
That one appears for only one combination of the matrix of integration jobs, so most probably it is a random error depending from a bad execution, and has nothing to do with what you did here. |
This PR add debug and test about problem with VOMS proxy creation with this tests utilits, add new method to DIRACCA that try to create a fake proxy for tests.
BEGINRELEASENOTES
*ProxyDB
FIX: add new test, debug, correct proxyProvider.getProxy argument
*Resources/DIRACCA
NEW: add method to do fake proxy, needed for tests, add tests for DIRACCA
*Core
FIX: add exception to ProxyInfo
ENDRELEASENOTES