aboutsummaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-requests-db/src/test/resources/application-test.yaml
blob: 62ae4794f5f0084487471023e36f42fd2153d402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# will be used as entry in DB to say SITE OFF/ON for healthcheck

server:
    port: 8080
    tomcat:
        max-threads: 50
ssl-enable: false
mso:
  adapters:
    requestDb:
      auth: Basic YnBlbDptc28tZGItMTUwNyE=
      endpoint: http://localhost:8081
  site-name: localDevEnv
  logPath: logs
# H2
spring:
  datasource:
    url: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;
    username: sa
    password: sa
    driver-class-name: org.h2.Driver
  h2:
    console:
      enabled: true
      path: /h2

  jpa:
      show-sql: true
      hibernate:
        dialect: org.hibernate.dialect.MySQL5Dialect
        ddl-auto: none
        naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
        enable-lazy-load-no-trans: true


#Actuator
management:
  security:
    enabled: false
    basic:
      enabled: false
class="p">)` overflow: auto; ` const TableRow = ({ statusRow }) => ( <tr> <td>{statusRow.componentName}</td> <td>{statusRow.stateName}</td> <td>{statusRow.description}</td> </tr> ) export default class LoopStatus extends React.Component { state = { loopCache: new LoopCache({}), } constructor(props) { super(props); this.renderStatus = this.renderStatus.bind(this); this.state.loopCache = props.loopCache; } renderStatus() { if (this.state.loopCache.getComponentStates() != null) { return Object.keys(this.state.loopCache.getComponentStates()).map((key) => { console.debug("Adding status for: ",key); var res={} res[key]=this.state.loopCache.getComponentStates()[key]; return (<TableRow statusRow={{'componentName':key,'stateName':this.state.loopCache.getComponentStates()[key].componentState.stateName,'description':this.state.loopCache.getComponentStates()[key].componentState.description}} />) }) } } shouldComponentUpdate(nextProps, nextState) { return this.state.loopCache !== nextState.loopCache; } componentWillReceiveProps(newProps) { this.setState({ loopCache: newProps.loopCache, }); } render() { return ( <LoopStatusViewDivStyled> <label>Loop Status: {this.state.loopCache.getComputedState()} </label> <div > <TableStyled striped hover variant responsive> <thead> <tr> <th><span align="left">Component Name</span></th> <th><span align="left">Component State</span></th> <th><span align="right">Description</span></th> </tr> </thead> <tbody> {this.renderStatus()} </tbody> </TableStyled> </div> </LoopStatusViewDivStyled> ); } }