diff options
Diffstat (limited to 'tests/sources')
23 files changed, 31 insertions, 3 deletions
diff --git a/tests/sources/bzr/project.conf b/tests/sources/bzr/project.conf index 04b84631f..19cd3eeb9 100644 --- a/tests/sources/bzr/project.conf +++ b/tests/sources/bzr/project.conf @@ -1,2 +1,3 @@ # Basic Project name: foo +version: 2.0 diff --git a/tests/sources/deb.py b/tests/sources/deb.py index ca44974c3..21f413d42 100644 --- a/tests/sources/deb.py +++ b/tests/sources/deb.py @@ -24,6 +24,7 @@ def generate_project(project_dir, tmpdir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': "file:///" + str(tmpdir) } diff --git a/tests/sources/git.py b/tests/sources/git.py index 5a4fabde8..26c61d175 100644 --- a/tests/sources/git.py +++ b/tests/sources/git.py @@ -428,6 +428,7 @@ def test_ref_not_in_track(cli, tmpdir, datafiles, fail): if fail == 'error': project_template = { "name": "foo", + "version": "2.0", "fatal-warnings": [CoreWarnings.REF_NOT_IN_TRACK] } _yaml.dump(project_template, os.path.join(project, 'project.conf')) @@ -471,6 +472,7 @@ def test_unlisted_submodule(cli, tmpdir, datafiles, fail): if fail == 'error': project_template = { "name": "foo", + "version": "2.0", "fatal-warnings": ['git:unlisted-submodule'] } _yaml.dump(project_template, os.path.join(project, 'project.conf')) @@ -544,6 +546,7 @@ def test_track_unlisted_submodule(cli, tmpdir, datafiles, fail): if fail == 'error': project_template = { "name": "foo", + "version": "2.0", "fatal-warnings": ['git:unlisted-submodule'] } _yaml.dump(project_template, os.path.join(project, 'project.conf')) @@ -607,6 +610,7 @@ def test_invalid_submodule(cli, tmpdir, datafiles, fail): if fail == 'error': project_template = { "name": "foo", + "version": "2.0", "fatal-warnings": ['git:invalid-submodule'] } _yaml.dump(project_template, os.path.join(project, 'project.conf')) @@ -679,6 +683,7 @@ def test_track_invalid_submodule(cli, tmpdir, datafiles, fail): if fail == 'error': project_template = { "name": "foo", + "version": "2.0", "fatal-warnings": ['git:invalid-submodule'] } _yaml.dump(project_template, os.path.join(project, 'project.conf')) diff --git a/tests/sources/git/project-override/project.conf b/tests/sources/git/project-override/project.conf index 299992f15..ff7035c4b 100644 --- a/tests/sources/git/project-override/project.conf +++ b/tests/sources/git/project-override/project.conf @@ -1,5 +1,6 @@ # Basic project name: foo +version: 2.0 sources: git: config: diff --git a/tests/sources/git/template/project.conf b/tests/sources/git/template/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/git/template/project.conf +++ b/tests/sources/git/template/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/local/basic/project.conf b/tests/sources/local/basic/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/local/basic/project.conf +++ b/tests/sources/local/basic/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/local/directory/project.conf b/tests/sources/local/directory/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/local/directory/project.conf +++ b/tests/sources/local/directory/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/local/file-exists/project.conf b/tests/sources/local/file-exists/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/local/file-exists/project.conf +++ b/tests/sources/local/file-exists/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/local/invalid-relative-path/project.conf b/tests/sources/local/invalid-relative-path/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/local/invalid-relative-path/project.conf +++ b/tests/sources/local/invalid-relative-path/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/local/symlink/project.conf b/tests/sources/local/symlink/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/local/symlink/project.conf +++ b/tests/sources/local/symlink/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/no-fetch-cached/project.conf b/tests/sources/no-fetch-cached/project.conf index af0cec15c..1983bd499 100644 --- a/tests/sources/no-fetch-cached/project.conf +++ b/tests/sources/no-fetch-cached/project.conf @@ -1,6 +1,6 @@ # Project with local source plugins name: no-fetch-cached - +version: 2.0 plugins: - origin: local path: plugins/sources diff --git a/tests/sources/ostree/template/project.conf b/tests/sources/ostree/template/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/ostree/template/project.conf +++ b/tests/sources/ostree/template/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/patch/basic/project.conf b/tests/sources/patch/basic/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/patch/basic/project.conf +++ b/tests/sources/patch/basic/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/patch/different-strip-level/project.conf b/tests/sources/patch/different-strip-level/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/patch/different-strip-level/project.conf +++ b/tests/sources/patch/different-strip-level/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/patch/invalid-relative-path/project.conf b/tests/sources/patch/invalid-relative-path/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/patch/invalid-relative-path/project.conf +++ b/tests/sources/patch/invalid-relative-path/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/patch/multiple-patches/project.conf b/tests/sources/patch/multiple-patches/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/patch/multiple-patches/project.conf +++ b/tests/sources/patch/multiple-patches/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/patch/separate-patch-dir/project.conf b/tests/sources/patch/separate-patch-dir/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/patch/separate-patch-dir/project.conf +++ b/tests/sources/patch/separate-patch-dir/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 diff --git a/tests/sources/pip.py b/tests/sources/pip.py index eba5a5e9e..467ed2036 100644 --- a/tests/sources/pip.py +++ b/tests/sources/pip.py @@ -17,7 +17,7 @@ DATA_DIR = os.path.join( def generate_project(project_dir): project_file = os.path.join(project_dir, "project.conf") - _yaml.dump({'name': 'foo'}, project_file) + _yaml.dump({'name': 'foo', 'version': '2.0'}, project_file) # Test that without ref, consistency is set appropriately. diff --git a/tests/sources/previous_source_access/project.conf b/tests/sources/previous_source_access/project.conf index 1749b3dba..cdf14a6e3 100644 --- a/tests/sources/previous_source_access/project.conf +++ b/tests/sources/previous_source_access/project.conf @@ -1,6 +1,8 @@ # Project with local source plugins name: foo +version: 2.0 + element-path: elements plugins: diff --git a/tests/sources/project_key_test/project.conf b/tests/sources/project_key_test/project.conf index 97ab12c05..6eab67a70 100644 --- a/tests/sources/project_key_test/project.conf +++ b/tests/sources/project_key_test/project.conf @@ -1,5 +1,5 @@ name: key-test - +version: 2.0 element-path: elements plugins: diff --git a/tests/sources/remote.py b/tests/sources/remote.py index 1b968284d..034e05bec 100644 --- a/tests/sources/remote.py +++ b/tests/sources/remote.py @@ -20,6 +20,7 @@ def generate_project(project_dir, tmpdir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': "file:///" + str(tmpdir) } @@ -30,6 +31,7 @@ def generate_project_file_server(server, project_dir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': server.base_url() } diff --git a/tests/sources/tar.py b/tests/sources/tar.py index 69095fefa..a6f1c9f96 100644 --- a/tests/sources/tar.py +++ b/tests/sources/tar.py @@ -49,6 +49,7 @@ def generate_project(project_dir, tmpdir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': "file:///" + str(tmpdir) } @@ -59,6 +60,7 @@ def generate_project_file_server(base_url, project_dir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': base_url } diff --git a/tests/sources/zip.py b/tests/sources/zip.py index cc1eb256f..508685988 100644 --- a/tests/sources/zip.py +++ b/tests/sources/zip.py @@ -34,6 +34,7 @@ def generate_project(project_dir, tmpdir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': "file:///" + str(tmpdir) } @@ -44,6 +45,7 @@ def generate_project_file_server(server, project_dir): project_file = os.path.join(project_dir, "project.conf") _yaml.dump({ 'name': 'foo', + 'version': '2.0', 'aliases': { 'tmpdir': server.base_url() } |