Skip to content

Commit

Permalink
test: git clone containerfile now uses self signed certs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelahunt committed Mar 27, 2024
1 parent 2660f62 commit 78596f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pipelines/tekton/aiedge-e2e/aiedge-e2e.pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ spec:
workspace: build-workspace-pv
- name: basic-auth
workspace: git-basic-auth
- name: ssl-ca-directory
workspace: ssl-certs
- name: check-model-and-containerfile-exists
params:
- name: model-name
Expand Down
8 changes: 5 additions & 3 deletions test/e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ The following enviroment varaibles are required to run the test setup and the te
- `IMAGE_REGISTRY_PASSWORD` - quay.io password

The following enviroment varaibles are optional. You may still need to set them for the tests to pass depending on your setup. Read [here](../../pipelines/README.md#ai-edge-end-to-end-pipeline) for more context on how to set these up.
- `SELF_SIGNED_CERT` - Path self signed cert to be used in pipeline

- `SELF_SIGNED_CERT` - A path on your local machine to a self signed cert to be used in pipeline


```bash
Expand All @@ -34,8 +35,9 @@ The following enviroment varaibles are required to run the tests. If any of thes
- `TARGET_IMAGE_TAGS_JSON` - JSON array of image tags that the final image will be pushed to. E.g. '["quay.io/user/model-name:e2e-test"]'

The following enviroment varaibles are optional. You may still need to set them for the tests to pass depending on your setup. Read [here](../../pipelines/README.md#ai-edge-end-to-end-pipeline) for more context on how to set these up.
- `SELF_SIGNED_CERT` - Path self signed cert to be used in pipeline
- `GO` - Custom Go installation path that is not used in `PATH`

- `SELF_SIGNED_CERT` - A path on your local machine to a self signed cert to be used in pipeline
- `GO` - Custom Go installation path that is not set in your `PATH`

```bash
make go-test
Expand Down
2 changes: 1 addition & 1 deletion test/e2e-tests/support/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func setOptions() (*Options, error) {
}

if options.SelfSignedCert = os.Getenv(SelfSignedCertEnvKey); options.SelfSignedCert == "" {
fmt.Printf("optional env variable %v not set, set it to use self signed certs", SelfSignedCertEnvKey)
fmt.Printf("\noptional env variable %v not set, set it to use self signed certs", SelfSignedCertEnvKey)
}

return options, nil
Expand Down

0 comments on commit 78596f2

Please sign in to comment.