func/pkg/functions/testdata
Matej Vašek a2a97dbd85
Fix linter issues (#2420)
* chore: fixed typos

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: removed trailing whitespaces

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: added EoLs at EoFs

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-07-09 13:48:22 +00:00
..
example.com/region1 chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
migrations chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
repositories Fix linter issues (#2420) 2024-07-09 13:48:22 +00:00
repository-a.git chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
repository.git chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
testClientRunReadiness func-go v1.21.3 - idiomatic handler signatures (#2227) 2024-03-14 14:40:36 +00:00
testClientRunTimeout func-go v1.21.3 - idiomatic handler signatures (#2227) 2024-03-14 14:40:36 +00:00
testFunctionMarshallingError chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
testFunctionMigrationError chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
README.md chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
cluster.yaml chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00: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.