Skip to content

Commit f16e67d

Browse files
committed
Initial commit. This *only* includes the contents of
filmdrop-aws-tf-modules/module/stac-server, and that repo's .gitignore Subsequent commits will move over other required files and setup.
0 parents  commit f16e67d

File tree

25 files changed

+2814
-0
lines changed

25 files changed

+2814
-0
lines changed

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
*.auto.tfvars
2+
*.env*
3+
*.orig
4+
*.out
5+
*.swo
6+
*.swp
7+
*.tfstate
8+
*.tfstate.*
9+
*.tmp
10+
*.zip
11+
*output
12+
.DS_Store
13+
.vscode
14+
.opensearch.info
15+
.pytest*
16+
.terraform.lock*
17+
.terraform.lock.hcl
18+
.terraform.tfstate*
19+
.terraform/
20+
__pycache__
21+
bin/terraform
22+
modules/jupyterhub-dask-eks/cluster.yaml
23+
modules/jupyterhub-dask-eks/daskhub.yaml
24+
modules/jupyterhub-dask-eks/spec.yaml
25+
modules/jupyterhub-dask-eks/storageclass.yaml
26+
node_modules
27+
package-lock.json
28+
plan.json
29+
plan.out
30+
saved.plan
31+
stac-server-*
32+
stac-server.tgz
33+
terraform-visual-report
34+
terraform.tgz
35+
modules/stac-server/historical-ingest/lambda/package/*
36+
!modules/cirrus/cirrus-lambda-dist.zip

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Running unit tests
2+
3+
In order to run unit tests, first install all dependencies in `package.json` using `npm install`.
4+
5+
Then, to run the tests, you can run any of these commands:
6+
7+
`npm test` or `npm run test` runs all tests
8+
9+
`npm run test:unit` runs unit tests in the `tests` directory
10+
11+
`npm run test:coverage` runs unit tests and produces a coverage report
12+
13+
## Steps to manually test live versions of stac-server
14+
15+
The unit tests are contained within the [tests/unit](https://github.com/stac-utils/stac-server/tree/main/tests/unit) folder of the repository. The tests are mainly checking to make sure that the STAC API request is properly structured and returns an appropriate response.
16+
17+
For more information on creating an appropriate STAC API request, please refer to the STAC Server README docs on Github: [STAC API Spec](https://github.com/radiantearth/stac-api-spec/tree/release/v1.0.0) and [STAC Server](https://github.com/stac-utils/stac-server), with particular emphasis on [STAC Item Search](https://github.com/radiantearth/stac-api-spec/tree/release/v1.0.0/item-search).
18+
19+
The stac-server unit tests are not configured to be run against a remote environment, and enabling them to do so is a prohibitive amount of work.

0 commit comments

Comments
 (0)