繁体   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