Skip to content

Commit

Permalink
Merge b590265 into d1a869a
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Feb 3, 2021
2 parents d1a869a + b590265 commit b18d8a0
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 40 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on: [ push, pull_request, workflow_dispatch ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Maven Cache"
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}

- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: "Maven Test"
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true

- name: "Send to Coveralls (build java-${{ github.run_number }})"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './target/coveralls.json'
coverage-format: raw
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# CatalogService
[![Build Status](https://github.com/TAMULib/GIFMButtonService/workflows/Build/badge.svg)](https://github.com/TAMULib/GIFMButtonService/actions?query=workflow%3ABuild)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/GIFMButtonService/badge.svg)](https://coveralls.io/github/TAMULib/GIFMButtonService)

# GIFMButtonService
A service for interfacing with Library Catalogs
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<id>tamu-snapshots</id>
<url>https://artifacts.library.tamu.edu/repository/maven-snapshots</url>
</repository>

<repository>
<id>mvnrepository</id>
<name>Maven Central Repository</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>

<dependencies>
Expand Down
60 changes: 21 additions & 39 deletions src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,107 +1,83 @@
server.port: 9000

server.contextPath:

security.basic.enabled: false

spring.template.cache: false

spring.profiles: test
spring.profiles.active:test

spring.profiles.active: test
spring.datasource.username: spring
spring.datasource.password: spring

# H2
spring.datasource.platform: h2
spring.datasource.url: jdbc:h2:mem:AZ;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.driverClassName: org.h2.Driver
spring.jpa.database-platform: org.hibernate.dialect.H2Dialect

spring.datasource.validation-query: select version();
spring.jpa.show_sql: false
spring.jpa.hibernate.ddl-auto: create-drop


# logging
logging.level.org.tdl: INFO
logging.level.edu.tamu: INFO
logging.level.org.springframework:INFO
logging.level.ro.isdc.wro: INFO

logging.file: logs/catalog-service.log

logging.encoder.pattern: "%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n"
app.whitelist: 127.0.0.1


################################################################
# edu.tamu.app.service.SprintsCacheService
# 10 minutes in milliseconds: (10 * 60 * 1000)
app.sprint.cache.interval: 600000
# 10 seconds in milliseconds: (10 * 1000)
app.sprint.cache.delay: 10000
# edu.tamu.weaver.auth.service.UserCredentialsService
app.authority.admins: 123456789, 990000081, 523008230, 512004707, 613001223, 402001311, 709005486
################################################################


################################################################
# edu.tamu.weaver.auth.service.UserCredentialsService
app.authority.admins: 123456789, 990000081, 523008230, 512004707, 613001223, 402001311
# spring-boot actuator endpoint: health set to true
management.endpoints.enabled-by-default: false
management.endpoint.health.enabled: true
################################################################

################################################################
# edu.tamu.weaver.token.provider.controller.TokenController
shib.keys: netid,uin,lastName,firstName,email

shib.subject: email

shib.netid: edupersonprincipalnameunscoped
shib.uin: tamuuin
shib.lastName: tdl-sn
shib.firstName: tdl-givenname
shib.email: tdl-mail

auth.path: /auth
################################################################

################################################################
# edu.tamu.weaver.token.service.TokenService
auth.security.jwt.secret: verysecretsecret
auth.security.jwt.issuer: localhost
auth.security.jwt.duration: 1
################################################################

################################################################
# edu.tamu.weaver.auth.service.CryptoService
app.security.secret: verysecretsecret
################################################################

################################################################
# edu.tamu.weaver.filter.CorsFilter
app.security.allow-access: http://localhost,http://localhost:${server.port}
app.security.allow-access: http://localhost,http://localhost:8080
################################################################

################################################################
# edu.tamu.weaver.email.config.WeaverEmailConfig
app.email.host: relay.tamu.edu
app.email.from: noreply@library.tamu.edu
app.email.replyTo: helpdesk@library.tamu.edu
################################################################

################################################################
# edu.tamu.weaver.reporting.controller.ReportingController
app.reporting.address: helpdesk@library.tamu.edu
################################################################

################################################################
# edu.tamu.weaver.validation.controller.ValidationsController
app.model.packages: edu.tamu.app.model
################################################################

################################################################
# edu.tamu.weaver.utility.HttpUtility
app.http.timeout: 10000
################################################################

################################################################
# Catalog Service location
app.catalogServiceUrl: http://localhost:9000/catalog-access/
################################################################
# Catalog Configuration file
app.catalogsConfiguration.file: config/catalogs.json
################################################################
################################################################
# Configuration for the default/large item button
app.defaultButton.templateParameterKeys: sid, title, author, publisher, genre, place, year, edition, oclc, mfhd, isxn
Expand All @@ -112,3 +88,9 @@ app.defaultButton.text: Get It: 4 days
app.defaultButton.action: https://getitforme.library.tamu.edu/illiad/EvansLocal/openurl.asp
app.defaultButton.threshold: 200
################################################################

################################################################
# Configuration for the buttons kill switch
app.buttons.patronGroupOverride = remhathi
app.buttons.locationsOverride = cush
################################################################

0 comments on commit b18d8a0

Please sign in to comment.