summaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-27 20:38:17 -0600
committermo khan <mo.khan@gmail.com>2020-05-27 20:38:17 -0600
commitaec641a6175997b1779c7e41513f9c893dcd4afb (patch)
tree5b33f9242f67164bb221797ca3d331412bf8ed4d /spec/fixtures
parent494314d95c111568df3e733f03955a0382a36a11 (diff)
Add tests for each report version when scanning conan projects
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/expected/c/conan/v1.0.json23
-rw-r--r--spec/fixtures/expected/c/conan/v1.1.json30
-rw-r--r--spec/fixtures/expected/c/conan/v2.0.json24
-rw-r--r--spec/fixtures/expected/c/conan/v2.1.json21
4 files changed, 98 insertions, 0 deletions
diff --git a/spec/fixtures/expected/c/conan/v1.0.json b/spec/fixtures/expected/c/conan/v1.0.json
new file mode 100644
index 0000000..20d3c37
--- /dev/null
+++ b/spec/fixtures/expected/c/conan/v1.0.json
@@ -0,0 +1,23 @@
+{
+ "licenses": [
+ {
+ "count": 1,
+ "name": "New BSD"
+ }
+ ],
+ "dependencies": [
+ {
+ "license": {
+ "name": "New BSD",
+ "url": "http://opensource.org/licenses/BSD-3-Clause"
+ },
+ "dependency": {
+ "name": "zstd",
+ "description": "",
+ "pathes": [
+ "."
+ ]
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/spec/fixtures/expected/c/conan/v1.1.json b/spec/fixtures/expected/c/conan/v1.1.json
new file mode 100644
index 0000000..fe746ed
--- /dev/null
+++ b/spec/fixtures/expected/c/conan/v1.1.json
@@ -0,0 +1,30 @@
+{
+ "version": "1.1",
+ "licenses": [
+ {
+ "count": 1,
+ "name": "New BSD"
+ }
+ ],
+ "dependencies": [
+ {
+ "licenses": [
+ {
+ "name": "New BSD",
+ "url": "http://opensource.org/licenses/BSD-3-Clause"
+ }
+ ],
+ "license": {
+ "name": "New BSD",
+ "url": "http://opensource.org/licenses/BSD-3-Clause"
+ },
+ "dependency": {
+ "name": "zstd",
+ "description": "",
+ "pathes": [
+ "."
+ ]
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/spec/fixtures/expected/c/conan/v2.0.json b/spec/fixtures/expected/c/conan/v2.0.json
new file mode 100644
index 0000000..862a083
--- /dev/null
+++ b/spec/fixtures/expected/c/conan/v2.0.json
@@ -0,0 +1,24 @@
+{
+ "version": "2.0",
+ "licenses": [
+ {
+ "id": "BSD-3-Clause",
+ "name": "BSD 3-Clause \"New\" or \"Revised\" License",
+ "url": "https://opensource.org/licenses/BSD-3-Clause",
+ "count": 1
+ }
+ ],
+ "dependencies": [
+ {
+ "name": "zstd",
+ "url": "",
+ "description": "",
+ "paths": [
+ "."
+ ],
+ "licenses": [
+ "BSD-3-Clause"
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/spec/fixtures/expected/c/conan/v2.1.json b/spec/fixtures/expected/c/conan/v2.1.json
new file mode 100644
index 0000000..cc01320
--- /dev/null
+++ b/spec/fixtures/expected/c/conan/v2.1.json
@@ -0,0 +1,21 @@
+{
+ "version": "2.1",
+ "licenses": [
+ {
+ "id": "BSD-3-Clause",
+ "name": "BSD 3-Clause \"New\" or \"Revised\" License",
+ "url": "https://opensource.org/licenses/BSD-3-Clause"
+ }
+ ],
+ "dependencies": [
+ {
+ "name": "zstd",
+ "version": "1.4.4",
+ "package_manager": "conan",
+ "path": "conanfile.txt",
+ "licenses": [
+ "BSD-3-Clause"
+ ]
+ }
+ ]
+} \ No newline at end of file