Skip to content

Commit

Permalink
- Removed use of Vault kv/preprod/fss/oppsummeringsdokument-service/d…
Browse files Browse the repository at this point in the history
…ev since it is apparently no longer in use.
  • Loading branch information
rfc3092 committed Nov 20, 2024
1 parent 4ac3a92 commit fbb1e64
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 32 deletions.
21 changes: 11 additions & 10 deletions apps/oppsummeringsdokument-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,27 @@ API for å sende inn oppsummeringsdokumenter til AAreg, og søke i de innsendte

Applikasjonen kan nås fra [/swagger](https://testnav-oppsummeringsdokument-service.intern.dev.nav.no/swagger) -endepunktet.

## Lokal utvikling
## Lokal kjøring
* [Generelt.](../../docs/local_general.md)

For å kjøre lokalt med OpenSearch:

```
-Dspring.cloud.vault.token={VAULT_TOKEN} -Dspring.profiles.active=dev
> docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -e "plugins.security.disabled=true" --name opensearch-node -d opensearchproject/opensearch:latest
```

For å kjøre lokalt med opensearch:

docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -e "plugins.security.disabled=true" --name opensearch-node -d opensearchproject/opensearch:latest

lister alle indekser:
Liste over alle indekser:

http://localhost:9200/_cat/indices?v

curl kommandoer for å søke lokalt:
`curl` for å søke lokalt:

curl -X GET "localhost:9200/oppsummeringsdokument-8/_search?pretty" -H 'Content-Type: application/json' -d'
```
> curl -X GET "localhost:9200/oppsummeringsdokument-8/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match": {"miljo": "q1"}
}
}
'
'
```
1 change: 0 additions & 1 deletion apps/oppsummeringsdokument-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies {
implementation "no.nav.testnav.libs:security-core"
implementation "no.nav.testnav.libs:servlet-core"
implementation "no.nav.testnav.libs:servlet-security"
implementation "no.nav.testnav.libs:vault"
implementation "no.nav.testnav.xsd:arbeidsforhold-xsd"

implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml"
Expand Down
1 change: 0 additions & 1 deletion apps/oppsummeringsdokument-service/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ includeBuild '../../libs/security-core'
includeBuild '../../libs/servlet-core'
includeBuild '../../libs/servlet-security'
includeBuild '../../xsd/arbeidsforhold-xsd'
includeBuild '../../libs/vault'

develocity {
buildScan {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ spring:
name: oppsummeringsdokument-service
version: application.version.todo #TODO Finn ut hvordan denne kan settes fra gradle
description: Tjeneste for å sende inn oppsummeringsdokument til aareg og søke i innsendte oppsummeringsdokumenter.
cloud:
vault:
enabled: false

springdoc:
swagger-ui:
Expand Down

This file was deleted.

0 comments on commit fbb1e64

Please sign in to comment.