func/testdata
Lance Ball 5adec03c7b
chore: update all references to kn-plugin-func (#1311)
* chore: update all references to kn-plugin-func

I did not change references in CHANGELOG.md but otherwise, I believe
this should cover all configuration settings, image names, package
names, etc.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: fix instances_test.go

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: still some stray kn-plugin-func

Signed-off-by: Lance Ball <lball@redhat.com>

Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-13 16:31:53 +00:00
..
example.com/region1 feat: test suite 2020-08-29 01:55:33 +09:00
migrations [feat] refactoring func.yaml struct to match cmd lifecycle (#1254) 2022-09-22 20:22:12 +00:00
repositories feat!: invoke (#705) 2022-01-21 12:04:05 -08:00
repository-a.git chore: update all references to kn-plugin-func (#1311) 2022-10-13 16:31:53 +00:00
repository.git Enabled previously disabled git tests for Window (#909) 2022-03-17 03:20:48 -07:00
testFunctionMarshallingError [feat] refactoring func.yaml struct to match cmd lifecycle (#1254) 2022-09-22 20:22:12 +00:00
testFunctionMigrationError [feat] refactoring func.yaml struct to match cmd lifecycle (#1254) 2022-09-22 20:22:12 +00:00
README.md feat: add support for manifest.yaml at repo/language/template levels (#558) 2021-10-27 07:09:01 -07:00
cluster.yaml fix: move integration port to unregistered range (#701) 2021-12-07 15:05:38 -08:00

README.md

testdata

Contains test templates and directory targets for domain and subdomain-level tests.

Updating Embedded Repositories

The repositories included herein are lightly modified bare repositories used by tests which involve "adding" them (cloning). As such they can not be directly modifed because they have no working branch. To modify, first check out the repository, make changes, and then remove the clone. For example:

$ git clone repository.git
$ cd repository
[make changes, committing the result]
$ git push
$ cd .. && rm -rf repository
[commit changes which will now appear in ./repository.git

Creating Embedded Repos

To create a new embedded repo such as repository.git:

  • create as a --bare clone
  • remove origin from config
  • remove sample hooks
  • touch a .gitinclude in refs/heads and refs/tags

./repositories

An example of an on-disk group of template repositories. Each subdirectory is a single named repository. in practice these would likely be Git repositories, but only the file structure is expected: [repo name]/[language runtime]/[template name]

./repository.git

A bare git repository used to test specifying a repo directly. Tests use a local file URI, but in practice this will likely be specified as an HTTP URL.

This repository exemplifies the base case of a remote repository with all defaults, no metadata, comprised of only templates (grouped by runtime)

./repository-a.git

This repository exemplifies the complete case of a repository with a fully populated manifest which includes an alternate location for templates, a default name, etc.