Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #743 from arbulu89/tests/sap-details-page
Browse files Browse the repository at this point in the history
SAP system details page tests
  • Loading branch information
arbulu89 authored Jan 27, 2022
2 parents 4fdf9cc + de46fd3 commit cbe2259
Show file tree
Hide file tree
Showing 11 changed files with 1,563 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: make fmt-check
- name: frontend lint and coding style check
run: make web-check

test-checks:
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -128,6 +128,13 @@ jobs:
headless: true
wait-on-timeout: 30
config: baseUrl=http://localhost:8080,chromeWebSecurity=false
- name: Upload cypress test videos
uses: actions/upload-artifact@v2
if: failure()
with:
name: e2e-videos
path: test/e2e/cypress/videos/


build-and-push-container-images:
runs-on: ubuntu-20.04
Expand Down
25 changes: 24 additions & 1 deletion test/e2e/cypress/fixtures/.photofinish.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
[healthy-27-node-SAP-cluster]

directories = ["./healthy-27-node-SAP-cluster"]
directories = ["./healthy-27-node-SAP-cluster"]

[sap-system-detail-GRAY]

files = ["./sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_GRAY.json"]


[sap-system-detail-GREEN]

files = ["./sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_GREEN.json"]


[sap-system-detail-YELLOW]

files = ["./sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_YELLOW.json"]


[sap-system-detail-RED]

files = ["./sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_RED.json"]

[sap-system-detail-NEW]

files = ["./sap-system-details/newagent_sap_system_discovery_new.json"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
{
"agent_id": "1b0e9297-97dd-55d6-9874-8efde4d84c90",
"discovery_type": "sap_system_discovery",
"payload": [
{
"Id": "a1e80e3e152a903662f7882fb3f8a851",
"SID": "NWD",
"Type": 2,
"Profile": {
"SAPDBHOST": "10.100.1.13",
"dbms/name": "HDD",
"dbms/type": "hdb",
"gw/acl_mode": "1",
"gw/sec_info": "$(DIR_GLOBAL)$(DIR_SEP)secinfo$(FT_DAT)",
"system/type": "ABAP",
"vmcj/enable": "off",
"rdisp/mshost": "sapnwdas",
"rdisp/msserv": "sapmsNWD",
"SAPGLOBALHOST": "sapnwdas",
"SAPSYSTEMNAME": "NWD",
"rdisp/btctime": "0",
"dbs/hdb/dbname": "HDD",
"dbs/hdb/schema": "SAPABAP1",
"enque/serverhost": "sapnwdas",
"enque/serverinst": "00",
"icf/user_recheck": "1",
"rdisp/bufrefmode": "sendoff",
"rsdb/ssfs_connect": "0",
"rsec/ssfs_keypath": "$(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)key",
"rdisp/autoabaptime": "0",
"rsec/ssfs_datapath": "$(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)data",
"login/system_client": "001",
"rdisp/msserv_internal": "3900",
"enque/process_location": "REMOTESA",
"enque/deque_wait_answer": "TRUE",
"service/protectedwebmethods": "SDEFAULT",
"system/secure_communication": "ON",
"is/HTTP/show_detailed_errors": "FALSE",
"login/password_downwards_compatibility": "0",
"icm/HTTP/ASJava/disable_url_session_tracking": "TRUE"
},
"Databases": null,
"Instances": {
"D02": {
"Host": "vmnwdev04",
"Name": "D02",
"Type": 2,
"SAPControl": {
"Instances": {
"sapnwdas": {
"features": "MESSAGESERVER|ENQUE",
"hostname": "sapnwdas",
"httpPort": 50013,
"httpsPort": 50014,
"dispstatus": "SAPControl-GREEN",
"instanceNr": 0,
"startPriority": "1"
},
"sapnwder": {
"features": "ENQREP",
"hostname": "sapnwder",
"httpPort": 51013,
"httpsPort": 51014,
"dispstatus": "SAPControl-GREEN",
"instanceNr": 10,
"startPriority": "0.5"
},
"sapnwdpas": {
"features": "ABAP|GATEWAY|ICMAN|IGS",
"hostname": "sapnwdpas",
"httpPort": 50113,
"httpsPort": 50114,
"dispstatus": "SAPControl-GREEN",
"instanceNr": 1,
"startPriority": "3"
},
"sapnwdaas1": {
"features": "ABAP|GATEWAY|ICMAN|IGS",
"hostname": "sapnwdaas1",
"httpPort": 50215,
"httpsPort": 50216,
"dispstatus": "SAPControl-GRAY",
"instanceNr": 2,
"startPriority": "5"
}
},
"Processes": {
"gwrd": {
"pid": 26496,
"name": "gwrd",
"starttime": "2022 01 11 13:05:00",
"dispstatus": "SAPControl-GREEN",
"textstatus": "Running",
"description": "Gateway",
"elapsedtime": "151:47:01"
},
"icman": {
"pid": 26497,
"name": "icman",
"starttime": "2022 01 11 13:05:00",
"dispstatus": "SAPControl-GREEN",
"textstatus": "Running",
"description": "ICM",
"elapsedtime": "151:47:01"
},
"igswd_mt": {
"pid": 26476,
"name": "igswd_mt",
"starttime": "2022 01 11 13:04:57",
"dispstatus": "SAPControl-GREEN",
"textstatus": "Running",
"description": "IGS Watchdog",
"elapsedtime": "151:47:04"
},
"disp+work": {
"pid": 26475,
"name": "disp+work",
"starttime": "2022 01 11 13:04:57",
"dispstatus": "SAPControl-GREEN",
"textstatus": "Running",
"description": "Dispatcher",
"elapsedtime": "151:47:04"
}
},
"Properties": {
"ICM": {
"value": "HTTP://sapnwdaas1:0/sap/admin/public/index.html",
"property": "ICM",
"propertytype": "NodeURL"
},
"IGS": {
"value": "http://sapnwdaas1:40280",
"property": "IGS",
"propertytype": "NodeURL"
},
"Syslog": {
"value": "ABAPReadSyslog",
"property": "Syslog",
"propertytype": "NodeWebmethod"
},
"ICM Cache": {
"value": "ICMGetCacheEntries",
"property": "ICM Cache",
"propertytype": "NodeWebmethod"
},
"SAPSYSTEM": {
"value": "02",
"property": "SAPSYSTEM",
"propertytype": "Attribute"
},
"Webmethods": {
"value": "Start,InstanceStart,StartBypassHA,Bootstrap,Stop,InstanceStop,StopBypassHA,Shutdown,ParameterValue,GetProcessList,GetStartProfile,GetTraceFile,GetAlertTree,GetAlerts,RestartService,StopService,GetEnvironment,ListDeveloperTraces,ReadDeveloperTrace,RestartInstance,SendSignal,GetVersionInfo,GetQueueStatistic,GetInstanceProperties,OSExecute,ReadLogFile,AnalyseLogFiles,ListLogFiles,GetAccessPointList,GetSystemInstanceList,GetSystemUpdateList,StartSystem,StopSystem,RestartSystem,UpdateSystem,UpdateSCSInstance,CheckUpdateSystem,AccessCheck,GetProcessParameter,SetProcessParameter,SetProcessParameter2,CheckParameter,ShmDetach,GetNetworkId,GetSecNetworkId,RequestLogonFile,CreateSnapshot,ReadSnapshot,ListSnapshots,DeleteSnapshots,GetCallstack,ABAPReadSyslog,ABAPReadRawSyslog,ABAPGetWPTable,ABAPAcknowledgeAlerts,ABAPGetComponentList,ABAPCheckRFCDestinations,ABAPGetSystemWPTable,ABAPSetServerInactive,J2EEGetProcessList,J2EEGetProcessList2,J2EEControlProcess,J2EEGetThreadList,J2EEGetThreadList2,J2EEGetThreadCallStack,J2EEGetThreadTaskStack,J2EEGetSessionList,J2EEGetWebSessionList,J2EEGetWebSessionList2,J2EEGetCacheStatistic,J2EEGetCacheStatistic2,J2EEGetApplicationAliasList,J2EEGetVMGCHistory,J2EEGetVMGCHistory2,J2EEGetVMHeapInfo,J2EEGetEJBSessionList,J2EEGetRemoteObjectList,J2EEGetClusterMsgList,J2EEGetSharedTableInfo,J2EEGetComponentList,J2EEControlComponents,ICMGetThreadList,ICMGetConnectionList,ICMGetCacheEntries,ICMGetProxyConnectionList,WebDispGetServerList,WebDispGetGroupList,WebDispGetVirtHostList,WebDispGetUrlPrefixList,EnqGetLockTable,EnqRemoveLocks,EnqRemoveUserLocks,EnqGetStatistic,GWCancelConnections,GWDeleteClients,GWDeleteConnections,GWGetConnectionList,GWGetClientList,UpdateSystemPKI,UpdateInstancePSE,StorePSE,DeletePSE,CheckPSE,HACheckConfig,HACheckFailoverConfig,HAGetFailoverConfig,HAFailoverToNode,HASetMaintenanceMode,HACheckMaintenanceMode,ListConfigFiles,ReadConfigFile",
"property": "Webmethods",
"propertytype": "Attribute"
},
"ICM Threads": {
"value": "ICMGetThreadList",
"property": "ICM Threads",
"propertytype": "NodeWebmethod"
},
"Open Alerts": {
"value": "GetAlertTree",
"property": "Open Alerts",
"propertytype": "NodeWebmethod"
},
"Process List": {
"value": "GetProcessList",
"property": "Process List",
"propertytype": "NodeWebmethod"
},
"SAPLOCALHOST": {
"value": "sapnwdaas1",
"property": "SAPLOCALHOST",
"propertytype": "Attribute"
},
"ABAP WP Table": {
"value": "ABAPGetWPTable",
"property": "ABAP WP Table",
"propertytype": "NodeWebmethod"
},
"Access Points": {
"value": "GetAccessPointList",
"property": "Access Points",
"propertytype": "NodeWebmethod"
},
"INSTANCE_NAME": {
"value": "D02",
"property": "INSTANCE_NAME",
"propertytype": "Attribute"
},
"Kernel Update": {
"value": "https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943\u0026_EVENT=DISPHIER\u0026HEADER=Y\u0026FUNCTIONBAR=N\u0026EVENT=TREE\u0026NE=NAVIGATE\u0026ENR=73554900100200005858\u0026V=MAINT",
"property": "Kernel Update",
"propertytype": "NodeURL"
},
"SAPSYSTEMNAME": {
"value": "NWD",
"property": "SAPSYSTEMNAME",
"propertytype": "Attribute"
},
"StartPriority": {
"value": "3",
"property": "StartPriority",
"propertytype": "Attribute"
},
"Current Status": {
"value": "GetAlertTree",
"property": "Current Status",
"propertytype": "NodeWebmethod"
},
"Gateway Clients": {
"value": "GWGetClientList",
"property": "Gateway Clients",
"propertytype": "NodeWebmethod"
},
"ICM Connections": {
"value": "ICMGetConnectionList",
"property": "ICM Connections",
"propertytype": "NodeWebmethod"
},
"Queue Statistic": {
"value": "GetQueueStatistic",
"property": "Queue Statistic",
"propertytype": "NodeWebmethod"
},
"Gateway Connections": {
"value": "GWGetConnectionList",
"property": "Gateway Connections",
"propertytype": "NodeWebmethod"
},
"Protected Webmethods": {
"value": "ABAPAcknowledgeAlerts,ABAPCheckRFCDestinations,ABAPGetComponentList,ABAPGetSystemWPTable,ABAPGetWPTable,ABAPReadRawSyslog,ABAPReadSyslog,ABAPSetServerInactive,AnalyseLogFiles,Bootstrap,CheckParameter,CheckPSE,CheckUpdateSystem,ConfigureLogFileList,CreatePSECredential,CreateSnapshot,DeletePSE,DeleteSnapshots,EnqGetLockTable,EnqGetStatistic,EnqRemoveLocks,EnqRemoveUserLocks,GetAccessPointList,GetAlerts,GetAlertTree,GetCallstack,GetEnvironment,GetLogFileList,GetProcessParameter,GetQueueStatistic,GetStartProfile,GetSystemUpdateList,GetTraceFile,GetVersionInfo,GWCancelConnections,GWDeleteClients,GWDeleteConnections,GWGetConnectionList,GWGetClientList,HACheckConfig,HACheckFailoverConfig,HACheckMaintenanceMode,HAFailoverToNode,HAGetFailoverConfig,HASetMaintenanceMode,ICMGetCacheEntries,ICMGetConnectionList,ICMGetProxyConnectionList,ICMGetThreadList,InstanceStart,InstanceStop,J2EEControlCluster,J2EEControlComponents,J2EEControlProcess,J2EEDisableDbgSession,J2EEEnableDbgSession,J2EEGetApplicationAliasList,J2EEGetCacheStatistic,J2EEGetCacheStatistic2,J2EEGetClusterMsgList,J2EEGetComponentList,J2EEGetEJBSessionList,J2EEGetProcessList,J2EEGetProcessList2,J2EEGetRemoteObjectList,J2EEGetSessionList,J2EEGetSharedTableInfo,J2EEGetThreadCallStack,J2EEGetThreadList,J2EEGetThreadList2,J2EEGetThreadTaskStack,J2EEGetVMGCHistory,J2EEGetVMGCHistory2,J2EEGetVMHeapInfo,J2EEGetWebSessionList,J2EEGetWebSessionList2,ListConfigFiles,ListDeveloperTraces,ListLogFiles,ListSnapshots,OSExecute,ParameterValue,ReadConfigFile,ReadDeveloperTrace,ReadLogFile,ReadSnapshot,RestartInstance,RestartService,RestartSystem,SendSignal,SetProcessParameter,SetProcessParameter2,ShmDetach,Shutdown,Start,StartBypassHA,StartSystem,Stop,StopBypassHA,StopService,StopSystem,StorePSE,UpdateInstancePSE,UpdateSCSInstance,UpdateSystem,UpdateSystemPKI,WebDispGetServerList,WebDispGetGroupList,WebDispGetVirtHostList,WebDispGetUrlPrefixList,GetAgentConfig,GetListOfMaByCusGrp,GetMcInLocalMs,GetMtesByRequestTable,GetMtListByMtclass,InfoGetTree,MscCustomizeWrite,MscDeleteLines,MscReadCache,MsGetLocalMsInfo,MsGetMteclsInLocalMs,MtChangeStatus,MtCustomizeWrite,MtDbsetToWpsetByTid,MtDestroyMarkNTry,MteGetByToolRunstatus,MtGetAllToCust,MtGetAllToolsToSet,MtGetMteinfo,MtGetTidByName,MtRead,MtReset,PerfCustomizeWrite,PerfRead,PerfReadSmoothData,ReadDirectory,ReadFile,ReadProfileParameters,ReferenceRead,Register,RequestLogonFile,SnglmgsCustomizeWrite,SystemObjectSetValue,TextAttrRead,ToolGetEffective,ToolSet,ToolSetRuntimeStatus,TriggerDataCollection,Unregister,UtilAlChangeStatus,UtilMtGetAidByTid,UtilMtGetTreeLocal,UtilMtReadAll,UtilReadRawalertByAid,UtilSnglmsgReadRawdata",
"property": "Protected Webmethods",
"propertytype": "Attribute"
},
"ICM Proxy Connections": {
"value": "ICMGetProxyConnectionList",
"property": "ICM Proxy Connections",
"propertytype": "NodeWebmethod"
},
"Parameter Documentation": {
"value": "http://sapnwdaas1:50213/sapparamEN.html",
"property": "Parameter Documentation",
"propertytype": "NodeURL"
}
}
},
"HdbnsutilSRstate": null,
"HostConfiguration": null,
"SystemReplication": null
}
}
}
]
}
Loading

0 comments on commit cbe2259

Please sign in to comment.