簡體   English   中英

WSO2 API Manager 1.10.0源代碼

[英]WSO2 API Manager 1.10.0 Source Code

有一個簡單的問題。 我想獲取carbon-apimgt的源代碼: https : //github.com/wso2/carbon-apimgt

也是product-apim的源代碼: https : //github.com/wso2/product-apim

我不想獲取最新的源代碼,我只想獲取這兩個存儲庫的v1.10.0版本。

我要做的是抓取版本並構建以下內容:

git clone https://github.com/wso2/carbon-apimgt.git
git checkout tags/v5.0.3
cd carbon-apimgt
mvn clean install

carbon v5.0.3構建良好(我正在使用Java 7)

我對product-apim這樣做:

git clone https://github.com/wso2/product-apim.git
git checkout tags/v1.10.0
cd product-apim
mvn clean install

product-apim無法通過單元測試構建:

Tests run: 325, Failures: 2, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 API Manager - Aggregator Module .............. SUCCESS [0.640s]
[INFO] WSO2 API Manager - Styles Parent .................. SUCCESS [0.033s]
[INFO] WSO2 API Manager - Styles ......................... SUCCESS [1.835s]
[INFO] WSO2 Stratos  API Manager - UI styles ............. SUCCESS [1.908s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard ......... SUCCESS [0.709s]
[INFO] WSO2 Stratos  API Manager - Dashboard UI .......... SUCCESS [0.770s]
[INFO] WSO2 AM - Login User Interface .................... SUCCESS [0.668s]
[INFO] WSO2 API Manager - Features Parent ................ SUCCESS [0.023s]
[INFO] WSO2 API Manager - Features Aggregator Module ..... SUCCESS [0.019s]
[INFO] WSO2 API Manager - Styles Features ................ SUCCESS [0.307s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard Feature . SUCCESS [0.873s]
[INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS [0.018s]
[INFO] WSO2 Stratos  API Manager - Style Features ........ SUCCESS [0.307s]
[INFO] WSO2 Stratos  API Manager - Utils Features ........ SUCCESS [0.694s]
[INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS [0.385s]
[INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS [0.237s]
[INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.017s]
[INFO] WSO2 API Manager - P2 Profile Generation .......... SUCCESS [2:28.018s]
[INFO] WSO2 API Manager - DAS Carbon Application ......... SUCCESS [0.218s]
[INFO] WSO2 API Manager - Distribution Parent ............ SUCCESS [0.020s]
[INFO] WSO2 API Manager - Distribution ................... SUCCESS [1:06.090s]
[INFO] WSO2 API Manager - Integration Tests .............. SUCCESS [1.279s]
[INFO] WSO2 API Manager - Integration Test Common Module . SUCCESS [0.737s]
[INFO] WSO2 API Manager - Integration Admin Clients Module  SUCCESS [3.246s]
[INFO] WSO2 API Manager - Integration Common Test Module . SUCCESS [2.020s]
[INFO] WSO2 API Manager - Test Artifacts Tests ........... SUCCESS [0.993s]
[INFO] WSO2 API Manager - RestFul Backend Module for Integration Tests  SUCCESS [0.944s]
[INFO] WSO2 API Manager - ArtifactDeploymentMonitor WebApp  SUCCESS [6.900s]
[INFO] WSO2 API Manager - Integration Extensions Module .. SUCCESS [1.698s]
[INFO] WSO2 API Manager - Integration UI Pages Module .... SUCCESS [0.714s]
[INFO] WSO2 API Manager - Integration New Test Module .... SUCCESS [0.748s]
[INFO] WSO2 API Manager - Based on product backend Test Module  FAILURE [43:38.211s]
[INFO] WSO2 APIManager - Nested Feature Categories ....... SKIPPED
[INFO] API Gateway Manager 1.10.0 ........................ SKIPPED
[INFO] API Gateway Worker 1.10.0 ......................... SKIPPED
[INFO] API Key Manager 1.10.0 ............................ SKIPPED
[INFO] API Publisher 1.10.0 .............................. SKIPPED
[INFO] API Store 1.10.0 .................................. SKIPPED

測試失敗:

ChangeAPIEndPointURLTestCase.testInvokeAPIAfterChangeAPIEndPointURLWithNewEndPointURL:147更改端點URL后調用API時,響應數據不匹配.setsassertive.stringsassertive.typesassertthatasteraster2astroastrodatRastroFnsastrolibRastsaasypowAtelieRautomapAutoSEARCHautovarCoreawsMethodsaws ... CoxCompoundingCompQuadFormCompRandFldcompute.esconcorconcregcondGEEcondMVNormconf.designconicfitconnect3constrainedKrigingcontfraccontingConvergenceConceptsconvevolcopBasiccopulacopulaedasCopulaREMADACopyDetectCORElearncorHMMcorpcorcorporacorrplotcosmoFnsCosmoPhotozcostatCOUNTcovRobustCoxBoostcoxintervalcoxmecoxphfcoxphwCoxRidgecoxrobustCPECPHshapecplmCprobCRCRACcramercrawlcrayoncrchCreditMetricscreduleCRMcrncrossdescrossvalcrp.CSFPcrrSCcrrstepcrsCRTSizec shapescslogisticcsnctmcmovectmmctsCTTctvcubatureCubistcudaBayesregDatacurlcurlconvertercurrentSurvivalcvAUCcvToolscwhmisccymruservicesd3NetworkDAAGdaedaewrDAKSDAMOCLESDatABELDataCombinedatamartdataRetrievaldatasetsdata..baseDoE ... modelsFITSioFKFflareflashClustflexclustflexCWMflexmixflexsurvfloraflowrflsaFluryfmafmriFMStablefMultivarFNNfNonlinearfOptionsforeachForeCAforecastForecastCombinationsforecThetaforeignforestplotformatRformattableFormulaforwardfossilfpcafPortfoliofpowfppfracdifffractalfractalrockfrailtyHLfrailtypackFR​​APOFRBfrbsfRegressionFrF2FrF2.catlg128frmfrmqafrontierfslrfsoFTICRMSfTradingftsftsafunctionalfunFEMfunHDDCfUnitRootsfutile.anyfutile.loggerfutile.matrixfutile.optionsfutile.paradigmfuturefwdmsafxregimeGAGADgamgamairgambinGAMBoostgamboostLSSgamlrgamlssgamlss.censgamlss.datagamlss.distgamlss.mxgapGARgaussDiffgaussquadgbGB2gbmgcbdgclusGCPMgdatag.datagdimapgdistancegdtoolsgeegeepackgeigengeigergemsgemtcGenABELGenABEL..ccshaplo.statsHardyWeinbergHarmonicRegressionharvest rhashhavenhbsaehdaHDclassifhddplothdecohdf5hdihdmhdrcdehellnohermitehetmetahexbinhflightshglmhglm.dataHHhhtHIhierfstathier.parthighfrequencyhighlighthighrhistogramHistogramToolshitandrunHmiscHMPHMPTreeshoardeRhomalshot.deckHSROChtmltabhtmlTablehtmltoolsHTMLUtilshtmlwidgetshtshttpcachehttpuvhttrhugehumanFormathwdehwriterhwwntesthybridHclusthydroGOFhydroTSMHyperbolicDisthyperdirichlethypergeohyperSpechypervolumeHyPhyibdregIBrokersIC2ICCICEIcensic.inferICSICSNPICsurvIDPmiscIDPSurvivalifultoolsigraphihsilluminaioimguRIMISimputeimputeTSineqinfluence.MEinfuserinlineinstaRint64intamapintcoxInterpol.TintervalintervalsintReginvestrinvGaussipdmetaiplotsipredipsiraceIRangesirlbairrirtoysirtProbirtreesIRTShinyismevIsoISOcodesisopamisotoneiteRatesiteratorsiterLapitertoolsitsivbmaivfixedivlewbelivpackivpanelivprobitjaathaJADEJBToolsJMJMbayesJmiscjmotifJohnsonD​​istributionjoineRjoint.CoxJoSAEjpegJPSurvjsjsonlitekappalabkapsKATforDCEMRIkcirtkdecopulakdetreesKendallkequatekernlabKernSmoothKernSmoothIRTK FASkfigrKFKSDSkinship2kknnklaRkm.cikmconfbandkmiKmisckmlKMsurvknitLatexknitrknncatkofnGAkohonenkolmimkoRpuskskstktsolvekzalabdsvlabelinglae​​kenLaFlaGPLahmanlambda.rlambda.toolsLambertWlamWlandsatLARFlarslasso2lassoshootinglatdiaglatentnetlatex2explatticelatticeDensitylatticeExtralavalavaanlavaan.surveylava ... R1npnpdeNPHMCNPMLEcmprsknppbibnpstnsRFAnumbersnumDerivnwsoaiOAIHarvesteroapackageOarrayOasisRobAnalyticsoblique.treeoccodeintrodfWeaveodfWeave.surveyOIsurvokmesonetONETronionOPDOEopefimoropenairopencpuOpenMxopensslOpenStreetMapopenxlsxoperatorsoptextrasOptGSOptHedgingoptimbaseoptimsimplexoptimxOptInterimOptionPricingoptmatchoptparseoptpartoptRORDER2PARENTorderbookorderedLassoOrdFacRegordinalOrdNororeOrgMassSpecRORIClustorlocaoro.dicomoro.niftiorthopolynomosDesignosmarosrmouchOutb​​reakToolsOutlierDCOutlierDMoutliersOUwiep3state .... cacheRcapturercddrcdkrcdklibsRCEIMRcgminRchoicerClinicalCodesrclinicaltrialsrCMARcmdrRcmdrMiscRcmdrPlugin.DoERcmdrPlugin.EZRRcmdrPlugin.MARcmdrPlugin.RMTCJa gsRcmdrPlugin.temisRcolombosRColorBrewerRcppRcppArmadillorcppbugsRcppDERcppEigenRcppOctaveRcppParallelRcppProgressRCryptsyRcsdpRCurlrdaRDataCanvasrdataciterdatamarketrdetoolsR..matlabRMAWGENrmetarmetasimR.methodsS3rmgarchrminerRmixmodRMKdiscreteRmonkeyRmpfrRmpirmsRMTstatRMySQLrnbnRNCEPrnclRNDrneosRNetCDFRNeXMLrngtoolsrngWELLrngwell19937RniftilibRNiftyRegrnoaarNOMADSroahdROAuthRobAStBaserobcorrobethrobfilterRobLoxRobLoxBioCRobPerRobRexRobRSVDrobumetarobustRobustAFTrobustbaserobustDArobustgamrobustlmmrobustloggammarobustregrobustXrockchalkROCRROCtRODBCroddROIROI.plugin.glpkR.ooRookRootsExtremaInflectionsrootSolveropensecretsapiROpenWeatherMapROptEstROptEstOldROptRegTSrorcidrorutadisrotlRoughSetsroxygen2rpanelrpartrpart.plotrpfrphastRphyliprPlantrplosRPMGRPMMRPostgreSQLrprintfRProtoBufrpubchemRPublicaRPushbulletrPythonRQuantLibrrcovrrcovHDrrcovNArredisrredlistrrefineR.rsprsaeRSAGArsatscanRSclientrsdmxRSEISRSeleniumRserveRSGHBRSienarsigRSiteCatalystRSKCrsmRSNNSrsnpsRSocrataRsolnpRSpectrars prngRSQLiterstanRStarsrstiefelrstreamrstudioapirsunlightRSurveyRSvgDeviceRSVGTipsDeviceRsymphonyRTDErtdistsRTextToolsrtfrtiffrtoprtsRttf2pt1rugarchrUnemploymentDataRUnitrunjagsRunuranR..DiffProcsimecolsimexsimexaftsimFramesimMSMsimPHsimplebootSimpleTableSimplicialCubaturesimrelsimsemSINsiplabsirtSISSKATskatMetaskellamSkewHyperbolicskewtskmeansslackrslamsldsleektssmsmacofsmamsmatrsmcureSMIRSmithWilsonYieldCurveSmoothHazardsmoothHRsmoothmestsmoothSurvSMPracticalsSMRsmsSMVarsnsnasnapshotsnowSnowballCsnowfallsnowFTSNPassocSNPmaxselsnp.plotterSNSequateSocialMediaMineRSoDAsoilDBsoiltexturesolaRsolrsolriumsomsomasoqlSortableHTMLTablessorvisos4Rspsp23designspaaSPACECAPspacetimespamspaMMsparclsparktexsparrsparsediscrimSparseGridsparseLDASparseMsparseMVNspatcountsspatespatgraphsspatialspatialCovarianceSpatialEpiSpatialExtremesspatialkernelSpatialNPspatialprobitspatialsegregationspatial.toolsSpatialToolsSpatioTemporalspatstatspatsurvspBayesspBayesSurvspcspdspdepspeaqspeedglmspeff2trialspfrontiers pgrass6spgwrSphericalCubaturesphetspiderspikeslabspikeSlabGAMsplancssplinessplmsplssplus2RspoccspsurveyspTimersqldfsROCssanvssfassmrobSSNssvdstablediststabsstamStanHeadersSTARstargazerstartupmsgstashRstatebinsStatMatchstatmodstatnetstatnet.commonstatsstats4stellaRStemstepPlrstepwisestinepackstlplusSTMedianPolishstochvolstockPortfoliostplanrstppstppResidstrapstratificationStreamMetabolismstreamRstringdiststringistringrstrucchangestsmstsm.classsubplexsubselectSuperLearnersuperpcSuppDistssupport.CEssurfacesuRtexsurv2sampleCompsurvAccuracyMeasuressurvAUCsurvC1survcompsurveillancesurvexp.frsurveySurvginisurvIDINRIsurvivalsurvivalMPLsurvivalROCsurvJamdasurvJamda.datasurvPresmoothsurvrecsurvsimsvdsvDialogssvglitesvgPanZoomsvGUIsvMiscsvmpathsvSweavesvUnitSvyNomSwarmSVMSweaveListingUtilssymmomentsSYNCSASynergizeRsynthpopsystemfittable1xlstablestabplottabuSearchTAMTAQMNGRtaRifxtautawnytawny.typestaxizeTaxonstandTBSSurvivaltcltktcltk2tdthapTeachingDemosTeachingSamplingTEDTEERegteigentelegramtempd isaggtensortensorATEQRtergmtermstrcTESStestertestitTestScorerTestSurvRectestthattexregtextcattextirtextreusetfplottframeTFXtgpTH.dataThinknumthreewordstibbletidyjsontidyrtifftigertikzDevicetimeDateTimeProjectiontimeregtimeROCtimesboottimeSeriestimsactistitantitrationCurvestkrplottlmectmtmaptm.plugin.alcestetm.plugin.dctm.plugin.europressetm.plugin.factivatm.plugin.lexisnexistm.plugin.mailtm.plugin.webminingtmvtnormtoastertolerancetoolstopmodeltourrtoxtestDTPmsmtprTR8TrackReconstructiontractor ...預期的響應數據:AcceptanceSampling預期:卻被:APIM684GenerateApplicationKeyTestCase.generateApplicationKeyWithoutScope:222回應代碼不匹配:<200>,但為:<302>

任何人都不清楚為什么這不起作用?

該測試用例基於后端“ http://public.opencpu.org/ocpu/library ”。 看起來后端發生了一些更改,並且由於測試用例失敗。
1.測試用例擁有GET http://public.opencpu.org/ocpu/library請求的響應狀態代碼200。 但第一響應是302重定向到“ http://public.opencpu.org/ocpu/library /”(與最后一個“/”)
2.檢查響應數據是否包含“ AcceptanceSampling”,但現在不存在。

參見: https : //github.com/wso2/product-apim/blob/v1.10.0/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/ api / lifecycle / ChangeAPIEndPointURLTestCase.java#L137

正如Lakmali在評論中提到的那樣,您可以忽略此失敗,或者如果您確實需要查看此傳遞,則建議您對測試用例進行兩次編輯。

  1. 通過添加“ /”來更改API2_END_POINT_URL: http ://public.opencpu.org/ocpu/library/
    https://github.com/wso2/product-apim/blob/v1.10.0/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/生命周期/ChangeAPIEndPointURLTestCase.java#L56

  2. 使用響應中可用的內容更改API2_RESPONSE_DATA。 您可以在瀏覽器中轉到http://public.opencpu.org/ocpu/library/並添加一個已經可用的單詞。 例如:adehabitatHR
    https://github.com/wso2/product-apim/blob/v1.10.0/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/生命周期/ChangeAPIEndPointURLTestCase.java#L55

  3. 重新運行測試

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM