Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1508 avro schemas #60

Open
wants to merge 131 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
4e12e1d
Changed S3Utils, S3MessageAdapter classes' constructors(adjusted docu…
Apr 13, 2021
38e0299
Merge branch 'master' into 1500-fix-unit-tests
Apr 15, 2021
47d9d33
1500-WebPublisher adjusted some documentation wording and added test_…
Apr 15, 2021
85a9096
1500-Adjusted documentation indentation in WebPublisher
Apr 15, 2021
85ada22
1500-Changed CsbExtractor class constructor(adjusted documentation) t…
Apr 16, 2021
15cfaa3
1500-Added unit tests for WebPublisher. Made sure using autospec=True
Apr 19, 2021
1e629ab
1500-Changed KafkaConsumer class constructors(adjusted documentation)…
Apr 28, 2021
b63bfe8
1500-Adjusted KafkaConsumer create_consumer to not do duplicate code,…
Apr 28, 2021
74e7f6f
1500-Added __init__.py to tests directory so was discoverable/module.
Apr 28, 2021
a07e642
1500-in KafkaConsumer renamed variables so tad more generic. Makes it…
Apr 28, 2021
da934c4
1500-Fixed KafkaConsumerTest (thought intellij refactor of var name w…
Apr 28, 2021
92e12c9
1500-KafkaConsumer consolidated config for deserializer.
Apr 28, 2021
ba17408
1500-Changed KafkaPublisher class constructors(adjusted documentation…
Apr 28, 2021
392788a
1500-Changed KafkaConsumerTest(s) to have vars named exp where it mak…
Apr 29, 2021
3426472
1500-KafkaConsumerTest improved the formatting of dicts, tested ret…
May 4, 2021
47c9dce
1500-Changed/added to KafkaPublisherTest(s).
May 4, 2021
921490a
1500-In KafkaPublisher cleaned up documentation, added method to cons…
May 4, 2021
a337c39
1500-Adjusted csb config variable name from file_identifier_prefix to…
May 4, 2021
5aab6d6
1500-Fixed lack of carriage returnin S3Utils for legibility.
May 4, 2021
5975e1d
1500-Changed SqsConsumer class constructor to take dictionary with ex…
May 7, 2021
204a2bd
1500-Decided to put "connect" back into SqsConsumer. Adjusted input p…
May 7, 2021
47b3e5b
1500-Fixed some bugs in SqsConsumer.
May 7, 2021
b2143ae
1500-Due to changing SqsConsumer class constructor to take dictionary…
May 7, 2021
11f8845
1500-fixed bug in tests/utils of message missing a carriage return. J…
May 11, 2021
9048e53
1500-Added logging to SqsHandlers and log_level method parameter. Adj…
May 11, 2021
5e0d3ba
1500-Added tests to SqsHandlersTest and removed config usage.
May 11, 2021
918c378
1500-Fixed SqsConsumerTest due to parameters into CB changing. skippe…
May 11, 2021
3f39966
1500-Removed unused conf variable.
May 11, 2021
4cffc38
1500-Removed unused var conf from classes.
May 11, 2021
8280a37
1500-Changed mock tests to not load configs but use mock data.
May 11, 2021
c16302e
1500-refactored S3Utils connect to take in type parameter instead of …
May 11, 2021
f8c5bd0
1500-Changed moto dependency to moto[all] because of some issues with…
May 11, 2021
ecfec1e
1500-added tests for different connect types for S3Utils
May 11, 2021
e4c7fb4
1500-Changed class constructors checking extra arguments and logging …
May 11, 2021
f5370ea
1500-Moved unit tests to tests/unit and integration tests to tests/in…
May 11, 2021
c93bab2
1500-Fixed one of the test_S3Utils tests that was commented out. Remo…
May 12, 2021
32a300a
1500-Updated python-client requirements boto3. Seems to be using an o…
May 12, 2021
a3f6e96
1500-Updated python-client requirements botocore to 1.20.71 due to co…
May 12, 2021
8fca7a9
1500-Changed circleci config for python client to try and update boto
May 12, 2021
bd38748
1500-added region_name to S3Utils connect for session. Suspect it was…
May 12, 2021
6a101f8
1500-Changing python-client circleci config to see if need to tell it…
May 12, 2021
927fb7e
1500-updated python-client requirements to install boto
May 12, 2021
12374a0
1500-Changed python-client integration test(s) to use environment var…
May 12, 2021
eb0646d
1500-Removed redundant log_level fields in all the configs. Put into …
May 13, 2021
aa0b9a9
1500-Changed the kafka config in the scripts for collection and granu…
May 14, 2021
3b14757
1500-Changed exception message to first be a string then passed into …
May 18, 2021
ebf71ee
1500-Adjusted exception thrown in S3Utils.connect for invalid type, w…
May 18, 2021
053df05
1500-Fixed log but in SqsConsumer of microseconds process time being …
May 18, 2021
5c66efa
2500-Added SqsHandlers create_upload_handler back with tests. Didn't …
May 18, 2021
d4b2013
1500-Changed references to psi_registry_url to registry_base_url
May 19, 2021
a0711f2
1507-Added sqs_name to helm values.
May 20, 2021
ef2785c
1508-Added unit tests for parsed_record file.
May 21, 2021
77190e8
1507-fixed bug in S3Utils upload_s3 passing in wrong parameter type to
May 21, 2021
c073a2f
1507-Updated circleCI config to run/publish docker image of onestop-p…
May 28, 2021
5d3344c
1507-Copied root Dockerfile to onestop-python-client to get docker pu…
May 28, 2021
46f7fff
1507-Removed from Dockerfile copy step of module in, had trouble doin…
May 28, 2021
0166d4f
1507-Changed onestop-python-client Dockerfile to copy onestop-python-…
May 28, 2021
f3088da
1507-Add to circleCI building and publishing images of onestop-s3-han…
May 28, 2021
eaf1454
1507-Fixed booboo in circleCI of renaming build and not changing name…
May 28, 2021
ed3a93e
1507-Changed circleCI image tag to 'latest'. Need to revisit.
Jun 1, 2021
095d5fa
1507-Changed dockerfiles back (had changed it due to so problems with…
Jun 2, 2021
9d4eaba
1507-Removed onestop-python-client dockerfile, unecessary. Therefore …
Jun 2, 2021
bca1ce3
1507-added comment to sqs-to-registry dockerfile about how things get…
Jun 2, 2021
4c62de8
1507-Changed scripts/sme dockerfile to not install onestop-python-cli…
Jun 2, 2021
34ed597
1507-In helm values files changed image pullPolicy to Always because …
Jun 3, 2021
d09ad1c
1507-To helm/*/values.yaml removed unused sqs_url, added cert locatio…
Jun 4, 2021
37a65a2
1507-Set metadata_type to uppercase and adjusted the ValueError raise…
Jun 4, 2021
c3f3761
1507-Set metadata_type to uppercase and adjusted the ValueError raise…
Jun 4, 2021
2cfdcf3
1507-Added additional log statement in delete handler if record event…
Jun 4, 2021
be034ea
1507-Updated KafkaConsumer unit test to reflect change neglected to m…
Jun 4, 2021
528fa83
1507-Updated scripts to work with new class constructors that take a …
Jun 4, 2021
d43d067
1507-Updated AvroSerializer call to specify parameter name, since ord…
Jun 4, 2021
27e7d1b
1507-Updated AvroSerializer call to specify parameter name, since ord…
Jun 4, 2021
3993106
1507-Removed try/catch around code in KafkaPublisher publish_granule …
Jun 4, 2021
2ade49b
1507-Removed try/catch around code in KafkaPublisher publish_collecti…
Jun 5, 2021
9b6dc1b
1507-Updated helm/*/values.yml for Kafka brokers and schema_registry …
Jun 5, 2021
35ed0dc
1507-Changed helm/*/values file_identifier_prefix to file_id_prefix (…
Jun 7, 2021
1e76696
1507-Found bug of not updating the s3Utils connect call to new way, u…
Jun 7, 2021
ede2e55
1507-Changed bulid order in CircleCI config, seeing sme/sqs script bu…
Jun 7, 2021
6e843f0
1507-Changed circleCI config to have the onestop-python-client-build …
Jun 7, 2021
1beb0bc
1507-Changed circleci config - added colons at end of jobs that had r…
Jun 7, 2021
19dc282
1507-Making a visual change to onestop-python-client code to test new…
Jun 7, 2021
91ba8f3
1507-Changed SqsHandlers to not serialize the json payload but instea…
Jun 8, 2021
d29e7a5
1507-Changed helm*/values.yml onestop and registry urls from onestop*…
Jun 8, 2021
3beefc3
1507-Added passing in log level to callback method in KafkaConsumer. …
Jun 8, 2021
ffaf33f
1507-Removed try/finally from the KafkaConsumer.consume() since our c…
Jun 9, 2021
880b858
1507-Narrowed down try/except code in the SqsConsumer.consume() so if…
Jun 9, 2021
dd1d5f4
1507-Fixed test for a KafkaConsumer call back that now includes log l…
Jun 9, 2021
2d8025a
1507-Fixed a test missed related to commit of changed SqsHandlers to …
Jun 9, 2021
7e6b72d
1507-Updated scripts to work with new class constructors that take a …
Jun 9, 2021
0fe8853
1507 - Changed warning about extra constructor arguments to debug sta…
Jun 9, 2021
bb03a98
1507-Change all init parameters from metadata_type to their classname…
Jun 10, 2021
c34b338
1507-Added metadata_type validation to S3MessageAdapter and tests.
Jun 11, 2021
1566e1c
1507-Adjusted log messages in KafkaConsumer and KafkaPublisher create…
Jun 11, 2021
3946bf1
1507-KafkaPublisher consolidated create method's config into one spot.
Jun 11, 2021
9ce570e
1507-To the scripts readme added more information about helm, build i…
Jun 15, 2021
e91f052
1508-Changed python package avro-python3 to avro since it sounds like…
Jun 25, 2021
9732d7e
1508-Changed avro schema requirement of relationship to be a string. …
Jun 25, 2021
de86ff2
1508-Didn't realize our avro RelationshipType was referenced elsewher…
Jun 25, 2021
e44e135
1508-Removed unused avro tests since looks like an import is no longe…
Jun 25, 2021
1cf6a15
Merge branch '1507-Update-scripts' into 1508-avro-schemas
Jun 28, 2021
6c73e71
1508-Fixed merge change of variable from prior commit, didn't notice.
Jun 28, 2021
cd231b3
1508-Removed mock from python-client test_S3MessageAdapter, simple ut…
Jul 2, 2021
11f4283
1508-Cleaned up test_S3MessageAdapter tests since more of a static ut…
Jul 2, 2021
b153950
1508-In test_S3MessageAdapter moved init test up with other init test…
Jul 2, 2021
b0594db
1508-Undid changing relationship to use RecordType, noticed it is low…
Jul 2, 2021
13d4cfa
1508-Added more Enum classes to list into schema jsonEncoder.py
Jul 3, 2021
c9c0152
1508-Added more Enum classes to list into schema jsonEncoder.py, stup…
Jul 3, 2021
ab6322f
1508-Fixed bug of test_messaged defined with a variable that wasn't y…
Jul 7, 2021
ec3af19
1508-Updated sme python script to reflect avro "relationships" type c…
Jul 7, 2021
f3ebdae
1508-Changed S3MessageAdapter.transform to take a single record, sinc…
Jul 7, 2021
578f8a5
1508-Changed SqsHandlers to take a single record, since that's all it…
Jul 7, 2021
91fe9bc
1508-added avro psi schema unit tests and Enum jsonEncoder tests.
Jul 9, 2021
2d6b18b
1508-Changed avro schema FileLocationType to Enum
Jul 9, 2021
bc561a0
1508-Changed avro schema FileLocations in parsed_record to match sche…
Jul 9, 2021
ebedebb
1508-changed avro ValidDescriptor to an enum, as it is in schema regi…
Jul 10, 2021
f16c6ce
1508-Moved test_jsonEncoded test folder up one directory, is a util o…
Jul 10, 2021
d4ac9c6
1508-Added ValidDescriptor to jsonEncoder Enum list plus to test_json…
Jul 10, 2021
da51dbd
1508-added ParsedRecord test current progress.
Jul 12, 2021
20b8cdb
1508-Changed avro schema Method to Enum to match schema registry. Add…
Jul 12, 2021
c3a22c8
1508-Changed test_jsonEncoder tests to not need manually typing the c…
Jul 12, 2021
3f57b38
1508-Changed avro schema OperationType to Enum to match schema regist…
Jul 12, 2021
36ae0b6
1508-Finished test_ParsedRecord for the avro object ParsedRecord.
Jul 12, 2021
79b8979
1508-Changed scripts with callback methods to define their records pa…
Jul 12, 2021
d8093d4
1508-Updated launch_pyconsumer script to have a try/catch around get_…
Jul 12, 2021
0f8b797
1508-Changed avro enum class vars to all uppercase as is typical of e…
Jul 12, 2021
331a0eb
1508-Fixed typo in jsonEncoder ENUMS dict; RelationshipType was all u…
Jul 13, 2021
dcc4d52
1508-Added tests to hit json decoding of ENUM classes with json.loads…
Jul 13, 2021
16c3f72
1508-Updated sme script for values that are now an ENUM type. Also ch…
Jul 13, 2021
cd99593
1509-added discovery spatial bounding test for variations of spatial …
Jul 22, 2021
4e35619
1508-Added negative tests for fields that took an Enum type.
Aug 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 55 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
# - slack/status:
# fail_only: false

# cli build
cli-build:
executor: docker/docker
steps:
Expand All @@ -75,30 +74,55 @@ jobs:
- slack/status:
fail_only: false

# clients build
client-build:
onestop-s3-handler-build:
executor: docker/docker
steps:
- setup_remote_docker
- checkout
- docker/check
- docker/build:
path: onestop-python-client
path: scripts/sqs-to-registry
image: cedardevs/onestop-s3-handler
tag: latest
- docker/push:
image: cedardevs/onestop-s3-handler
tag: latest
- slack/status:
fail_only: false

onestop-sme-build:
executor: docker/docker
steps:
- setup_remote_docker
- checkout
- docker/check
- docker/build:
path: scripts/sme/
image: cedardevs/onestop-sme
tag: latest
- docker/push:
image: cedardevs/onestop-sme
tag: latest
- slack/status:
fail_only: false

onestop-python-client-build:
executor: docker/docker
steps:
- setup_remote_docker
- checkout
- docker/check
- docker/build:
path: ./
image: cedardevs/onestop-python-client
tag: ${CIRCLE_BRANCH}-SNAPSHOT
- run:
name: "What branch am I on now?"
command: echo $CIRCLE_BRANCH
#no need to push this image yet
tag: latest
- docker/push:
image: cedardevs/onestop-python-client
tag: ${CIRCLE_BRANCH}-SNAPSHOT
tag: latest
- slack/status:
fail_only: false
# Base test configuration for Go library tests Each distinct version should
# inherit this base, and override (at least) the container image used.

python-client-test: &python-client-test
onestop-python-client-test: &python-client-test
executor: python/default
steps: &steps
- checkout
Expand All @@ -107,10 +131,16 @@ jobs:
app-dir: ./onestop-python-client
pkg-manager: pip
- run:
name: "Run util tests"
name: "Run unit tests"
command: >
cd onestop-python-client/;
python -m unittest tests/util/*.py
python -m unittest discover -s test/unit
# This is commented out only because the OneStop we have running on cedardevs doesn't have its registry exposed. You can only reach it via sshing to another machine.
# - run:
# name: "Run integration tests"
# command: >
# cd onestop-python-client/;
# python -m unittest discover -s test/integration

orbs:
slack: circleci/slack@3.4.2
Expand All @@ -121,9 +151,15 @@ version: 2.1
workflows:
main:
jobs:
# - "latest"
# - cli-test
# - cli-build
# - client-build
- python-client-test

- onestop-python-client-test
- onestop-python-client-build:
requires:
- onestop-python-client-test
- onestop-sme-build:
requires:
- onestop-python-client-build
- onestop-s3-handler-build:
requires:
- onestop-python-client-build
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
FROM python:3.8

COPY ./onestop-python-client /onestop-python-client
COPY ./scripts /scripts

RUN apt-get update
RUN pip install --upgrade pip
RUN pip install ./onestop-python-client
RUN pip install -r ./onestop-python-client/requirements.txt

# Needed for scripts - do here since directory out of scope when in scripts/* dockerfiles.
# Unsure if possible this isn't latest build, like doing pip install before this is built.
RUN pip install ./onestop-python-client

#Base image stays up for dev access
CMD tail -f /dev/null
40 changes: 28 additions & 12 deletions helm/onestop-sqs-consumer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replicaCount: 1
image:
repository: cedardevs/onestop-sme
tag: latest
pullPolicy: IfNotPresent
pullPolicy: Always

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -57,35 +57,51 @@ config: |-
log_level: INFO

# AWS config values
sqs_url: https://sqs.us-east-2.amazonaws.com/798276211865/cloud-archive-client-sqs
sqs_max_polls: 100
sqs_name: cloud-archive-client-sqs
s3_region: us-east-2
s3_bucket: archive-testing-demo
sqs_max_polls: 100

#AWS config values for 2nd vault in different region
vault_name: archive-vault-new
s3_region2: us-east-2
s3_bucket2: noaa-nccf-dev-archive
s3_bucket2: archive-testing-testing-test

#CSB stream config
format: csv
headers: UNIQUE_ID,FILE_UUID,LON,LAT,DEPTH,TIME,PLATFORM_NAME,PROVIDER
type: COLLECTION
collection_id: fdb56230-87f4-49f2-ab83-104cfd073177
access_bucket: https://archive-testing-demo.s3-us-east-2.amazonaws.com
#access_bucket: https://odp-noaa-nesdis-ncei-test.s3-us-west-2.amazonaws.com
file_identifier_prefix: "gov.noaa.ncei.csb:"
file_id_prefix: "gov.noaa.ncei.csb:"

# COLLECTION or GRANULE
metadata_type: granule
registry_base_url: http://onestop-registry:80
onestop_base_url: http://onestop-search:8080
kafka_consumer_metadata_type: GRANULE
kafka_publisher_metadata_type: GRANULE
s3_message_adapter_metadata_type: COLLECTION

security:
enabled: True
registry_base_url: http://os-registry:80
onestop_base_url: http://os-search:8080

prefixMap:
NESDIS/CSB: 'fdb56230-87f4-49f2-ab83-104cfd073177'
NESDIS/H8: '0fad03df-0805-434a-86a6-7dc42d68480e'
NESDIS/GOES: '11111111-1111-1111-1111-111111111111'
NESDIS/SAB: '98e03b47-069a-4f2c-8071-649e8c4254d6'
NESDIS/SAB: '98e03b47-069a-4f2c-8071-649e8c4254d6'

# Kafka config values
brokers: cp-cp-kafka:9092
schema_registry: http://cp-cp-schema-registry:8081
collection_topic_publish: psi-granules-by-collection
granule_topic_publish: psi-granule-parsed
collection_topic_consume: psi-collection-input-unknown
granule_topic_consume: psi-granule-input-unknown
group_id: sme-test
auto_offset_reset: earliest
security:
# True/False
enabled: False
# If security is enabled then need these:
caLoc: /etc/pki/tls/cert.pem
keyLoc: /etc/pki/tls/private/kafka-user.key
certLoc: /etc/pki/tls/certs/kafka-user.crt
43 changes: 33 additions & 10 deletions helm/sme-chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image:
repository: cedardevs/onestop-e2e-demo
tag: latest
pullPolicy: IfNotPresent
pullPolicy: Always

secret:
registry_username: <value>
Expand All @@ -14,29 +14,52 @@ config: |-
log_level: INFO

# AWS config values
sqs_url: https://sqs.us-east-2.amazonaws.com/798276211865/cloud-archive-client-sqs
sqs_max_polls: 100
sqs_name: cloud-archive-client-sqs
s3_region: us-east-2
s3_bucket: archive-testing-demo
sqs_max_polls: 100

#AWS config values for 2nd vault in different region
vault_name: archive-vault-new
s3_region2: us-east-2
s3_bucket2: noaa-nccf-dev-archive
s3_bucket2: archive-testing-testing-test

#CSB stream config
format: csv
headers: UNIQUE_ID,FILE_UUID,LON,LAT,DEPTH,TIME,PLATFORM_NAME,PROVIDER
type: COLLECTION
collection_id: fdb56230-87f4-49f2-ab83-104cfd073177
access_bucket: https://archive-testing-demo.s3-us-east-2.amazonaws.com
#access_bucket: https://odp-noaa-nesdis-ncei-test.s3-us-west-2.amazonaws.com
file_identifier_prefix: "gov.noaa.ncei.csb:"
file_id_prefix: "gov.noaa.ncei.csb:"

# COLLECTION or GRANULE
metadata_type: granule
registry_base_url: http://onestop-registry:80
onestop_base_url: http://onestop-search:8080
kafka_consumer_metadata_type: GRANULE
kafka_producer_metadata_type: GRANULE
web_publisher_metadata_type: GRANULE
s3_message_adapter_metadata_type: COLLECTION

registry_base_url: http://os-registry:80
onestop_base_url: http://os-search:8080

prefixMap:
NESDIS/CSB: 'fdb56230-87f4-49f2-ab83-104cfd073177'
NESDIS/H8: '0fad03df-0805-434a-86a6-7dc42d68480e'
NESDIS/GOES: '11111111-1111-1111-1111-111111111111'
NESDIS/SAB: '98e03b47-069a-4f2c-8071-649e8c4254d6'

# Kafka config values
brokers: cp-cp-kafka:9092
schema_registry: http://cp-cp-schema-registry:8081
collection_topic_publish: psi-granules-by-collection
granule_topic_publish: psi-granule-parsed
collection_topic_consume: psi-collection-input-unknown
granule_topic_consume: psi-granule-input-unknown
group_id: sme-test
auto_offset_reset: earliest
security:
enabled: True
# True/False
enabled: False
# If security is enabled then need these:
caLoc: /etc/pki/tls/cert.pem
keyLoc: /etc/pki/tls/private/kafka-user.key
certLoc: /etc/pki/tls/certs/kafka-user.crt
12 changes: 7 additions & 5 deletions kubernetes/pyconsumer-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,21 @@ data:
csb:
format: csv
headers: UNIQUE_ID,FILE_UUID,LON,LAT,DEPTH,TIME,PLATFORM_NAME,PROVIDER
type: COLLECTION
collection_id: fdb56230-87f4-49f2-ab83-104cfd073177
psi_registry_url: https://cedardevs.org/
registry_base_url: https://cedardevs.org/
access_bucket: https://archive-testing-demo.s3-us-east-2.amazonaws.com
#access_bucket: https://odp-noaa-nesdis-ncei-test.s3-us-west-2.amazonaws.com
file_identifier_prefix: "gov.noaa.ncei.csb:"

# Web Publisher
web:
# COLLECTION or GRANULE
metadata_type: granule
registry_base_url: https://cedardevs.org/onestop/registry-api
onestop_base_url: https://cedardevs.org/onestop/search-api

security:
enabled: True
enabled: True

# COLLECTION or GRANULE
kafka_consumer_metadata_type: GRANULE
kafka_publisher_metadata_type: GRANULE
s3_message_adapter_metadata_type: COLLECTION
3 changes: 2 additions & 1 deletion onestop-python-client/config/aws-util-config-dev.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Example config values for osim client
log_level: INFO

# AWS config values
sqs_url: https://sqs.us-east-2.amazonaws.com/798276211865/cloud-archive-client-sqs
sqs_name: 'foobar'
sqs_max_polls: 2
s3_region: "us-east-2"
s3_bucket: archive-testing-demo
s3_key: 'ABI-L1b-RadF/2019/298/15/OR_ABI-L1b-RadF-M6C15_G16_s20192981500369_e20192981510082_c20192981510166.nc'

#AWS config values for 2nd vault in different region
vault_name: archive-vault-new
Expand Down
3 changes: 1 addition & 2 deletions onestop-python-client/config/credentials-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ registry:
username: rw_user
password: rw_user_pwd



log_level: INFO
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
log_level: INFO
# COLLECTION or GRANULE
kafka_consumer_metadata_type: COLLECTION
kafka_publisher_metadata_type: COLLECTION
s3_message_adapter_metadata_type: COLLECTION

format: csv
headers: UNIQUE_ID,FILE_UUID,LON,LAT,DEPTH,TIME,PLATFORM_NAME,PROVIDER
type: COLLECTION
collection_id: fdb56230-87f4-49f2-ab83-104cfd073177
#registry_base_url: https://internal-a683c98a66fb011eaa4230e0d5e5657f-369075387.us-east-1.elb.amazonaws.com
registry_base_url: http://localhost/onestop/api/registry
#onestop_base_url: https://cedardevs.org/onestop/search
onestop_base_url: http://localhost/onestop/api/search/search
access_bucket: https://archive-testing-demo.s3-us-east-2.amazonaws.com
#access_bucket: https://odp-noaa-nesdis-ncei-test.s3-us-west-2.amazonaws.com
file_identifier_prefix: "gov.noaa.ncei.csb:"
file_id_prefix: "gov.noaa.ncei.csb:"

prefixMap:
NESDIS/CSB: 'fdb56230-87f4-49f2-ab83-104cfd073177'
Expand Down
Loading