From 980f9dcd71e88a6bc5788c37f739b5610aa22f18 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Fri, 16 Aug 2024 16:41:00 +0530 Subject: [PATCH] chore: delete unreferenced snapshots --- ..._fixtures__generator__gen_deezer.json.snap | 419 ------------------ ...__generator__gen_jsonplaceholder.json.snap | 81 ---- ...raphql-conformance-http-016.md_client.snap | 52 --- ...raphql-conformance-http-016.md_merged.snap | 18 - 4 files changed, 570 deletions(-) delete mode 100644 tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_deezer.json.snap delete mode 100644 tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_jsonplaceholder.json.snap delete mode 100644 tests/core/snapshots/graphql-conformance-http-016.md_client.snap delete mode 100644 tests/core/snapshots/graphql-conformance-http-016.md_merged.snap diff --git a/tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_deezer.json.snap b/tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_deezer.json.snap deleted file mode 100644 index 3f1b48ca31..0000000000 --- a/tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_deezer.json.snap +++ /dev/null @@ -1,419 +0,0 @@ ---- -source: tests/cli/gen.rs -expression: config.to_sdl() ---- -schema @server @upstream(baseURL: "https://api.deezer.com") { - query: Query -} - -type Album { - cover: String - cover_big: String - cover_medium: String - cover_small: String - cover_xl: String - id: Int - md5_image: String - title: String - tracklist: String - type: String -} - -type Artist { - id: Int - link: String - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - radio: Boolean - tracklist: String - type: String -} - -type Chart { - albums: T167 - artists: T169 - playlists: T181 - podcasts: Podcast - tracks: T166 -} - -type Contributor { - id: Int - link: String - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - radio: Boolean - role: String - share: String - tracklist: String - type: String -} - -type Datum { - album: Album - artist: T42 - duration: Int - explicit_content_cover: Int - explicit_content_lyrics: Int - explicit_lyrics: Boolean - id: Int - link: String - md5_image: String - preview: String - rank: Int - readable: Boolean - time_add: Int - title: String - title_short: String - title_version: String - type: String -} - -type Editorial { - data: [T185] - total: Int -} - -type Genre { - data: [T5] -} - -type Playlist { - checksum: String - collaborative: Boolean - creation_date: String - creator: User - description: String - duration: Int - fans: Int - id: Int - is_loved_track: Boolean - link: String - md5_image: String - nb_tracks: Int - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_type: String - picture_xl: String - public: Boolean - share: String - title: String - tracklist: String - tracks: Track - type: String -} - -type Podcast { - data: [T182] - total: Int -} - -type Query { - album(p1: Int!): T39 @http(path: "/album/{{.args.p1}}") - artist(p1: Int!): T40 @http(path: "/artist/{{.args.p1}}") - chart: Chart @http(path: "/chart") - editorial: Editorial @http(path: "/editorial") - playlist(p1: Int!): Playlist @http(path: "/playlist/{{.args.p1}}") - search(q: String): Search @http(path: "/search", query: [{key: "q", value: "{{.args.q}}"}]) - track(p1: Int!): T4 @http(path: "/track/{{.args.p1}}") - user(p1: Int!): T187 @http(path: "/user/{{.args.p1}}") -} - -type Search { - data: [JSON] - next: String - total: Int -} - -type T165 { - album: Album - artist: Artist - duration: Int - explicit_content_cover: Int - explicit_content_lyrics: Int - explicit_lyrics: Boolean - id: Int - link: String - md5_image: String - position: Int - preview: String - rank: Int - title: String - title_short: String - title_version: String - type: String -} - -type T166 { - data: [T165] - total: Int -} - -type T167 { - data: [JSON] - total: Int -} - -type T168 { - id: Int - link: String - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - position: Int - radio: Boolean - tracklist: String - type: String -} - -type T169 { - data: [T168] - total: Int -} - -type T180 { - checksum: String - creation_date: String - id: Int - link: String - md5_image: String - nb_tracks: Int - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_type: String - picture_xl: String - public: Boolean - title: String - tracklist: String - type: String - user: User -} - -type T181 { - data: [T180] - total: Int -} - -type T182 { - available: Boolean - description: String - fans: Int - id: Int - link: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - share: String - title: String - type: String -} - -type T185 { - id: Int - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - type: String -} - -type T187 { - country: String - id: Int - link: String - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - tracklist: String - type: String -} - -type T2 { - id: Int - link: String - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - radio: Boolean - share: String - tracklist: String - type: String -} - -type T3 { - cover: String - cover_big: String - cover_medium: String - cover_small: String - cover_xl: String - id: Int - link: String - md5_image: String - release_date: String - title: String - tracklist: String - type: String -} - -type T37 { - album: Album - artist: User - duration: Int - explicit_content_cover: Int - explicit_content_lyrics: Int - explicit_lyrics: Boolean - id: Int - link: String - md5_image: String - preview: String - rank: Int - readable: Boolean - title: String - title_short: String - title_version: String - type: String -} - -type T38 { - data: [T37] -} - -type T39 { - artist: T8 - available: Boolean - contributors: [Contributor] - cover: String - cover_big: String - cover_medium: String - cover_small: String - cover_xl: String - duration: Int - explicit_content_cover: Int - explicit_content_lyrics: Int - explicit_lyrics: Boolean - fans: Int - genre_id: Int - genres: Genre - id: Int - label: String - link: String - md5_image: String - nb_tracks: Int - record_type: String - release_date: String - share: String - title: String - tracklist: String - tracks: T38 - type: String - upc: String -} - -type T4 { - album: T3 - artist: T2 - available_countries: [String] - bpm: Int - contributors: [Contributor] - disk_number: Int - duration: Int - explicit_content_cover: Int - explicit_content_lyrics: Int - explicit_lyrics: Boolean - gain: Int - id: Int - isrc: String - link: String - md5_image: String - preview: String - rank: Int - readable: Boolean - release_date: String - share: String - title: String - title_short: String - title_version: String - track_position: Int - type: String -} - -type T40 { - id: Int - link: String - name: String - nb_album: Int - nb_fan: Int - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - radio: Boolean - share: String - tracklist: String - type: String -} - -type T42 { - id: Int - link: String - name: String - tracklist: String - type: String -} - -type T5 { - id: Int - name: String - picture: String - type: String -} - -type T8 { - id: Int - name: String - picture: String - picture_big: String - picture_medium: String - picture_small: String - picture_xl: String - tracklist: String - type: String -} - -type Track { - checksum: String - data: [Datum] -} - -type User { - id: Int - name: String - tracklist: String - type: String -} diff --git a/tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_jsonplaceholder.json.snap b/tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_jsonplaceholder.json.snap deleted file mode 100644 index 47bdfb6296..0000000000 --- a/tests/cli/snapshots/cli_spec__test__generator_spec__tests__cli__fixtures__generator__gen_jsonplaceholder.json.snap +++ /dev/null @@ -1,81 +0,0 @@ ---- -source: tests/cli/gen.rs -expression: config.to_sdl() ---- -schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { - query: Query -} - -type Address { - city: String - geo: Geo - street: String - suite: String - zipcode: String -} - -type Comment { - body: String - email: String - id: Int - name: String - postId: Int -} - -type Company { - bs: String - catchPhrase: String - name: String -} - -type Geo { - lat: String - lng: String -} - -type Photo { - albumId: Int - id: Int - thumbnailUrl: String - title: String - url: String -} - -type Post { - body: String - id: Int - title: String - userId: Int -} - -type Query { - comment(p1: Int!): Comment @http(path: "/comments/{{.args.p1}}") - comments: [Comment] @http(path: "/comments") - photo(p1: Int!): Photo @http(path: "/photos/{{.args.p1}}") - photos: [Photo] @http(path: "/photos") - post(p1: Int!): Post @http(path: "/posts/{{.args.p1}}") - postComments(postId: Int): [Comment] @http(path: "/comments", query: [{key: "postId", value: "{{.args.postId}}"}]) - posts: [Post] @http(path: "/posts") - todo(p1: Int!): Todo @http(path: "/todos/{{.args.p1}}") - todos: [Todo] @http(path: "/todos") - user(p1: Int!): User @http(path: "/users/{{.args.p1}}") - users: [User] @http(path: "/users") -} - -type Todo { - completed: Boolean - id: Int - title: String - userId: Int -} - -type User { - address: Address - company: Company - email: String - id: Int - name: String - phone: String - username: String - website: String -} diff --git a/tests/core/snapshots/graphql-conformance-http-016.md_client.snap b/tests/core/snapshots/graphql-conformance-http-016.md_client.snap deleted file mode 100644 index c8e565e710..0000000000 --- a/tests/core/snapshots/graphql-conformance-http-016.md_client.snap +++ /dev/null @@ -1,52 +0,0 @@ ---- -source: tests/core/spec.rs -expression: formatted ---- -scalar Bytes - -scalar Date - -scalar DateTime - -scalar Email - -scalar Empty - -scalar Int128 - -scalar Int16 - -scalar Int32 - -scalar Int64 - -scalar Int8 - -scalar JSON - -scalar PhoneNumber - -type Query { - userGroups: [User!]! -} - -scalar UInt128 - -scalar UInt16 - -scalar UInt32 - -scalar UInt64 - -scalar UInt8 - -scalar Url - -type User { - id: ID! - name: String! -} - -schema { - query: Query -} diff --git a/tests/core/snapshots/graphql-conformance-http-016.md_merged.snap b/tests/core/snapshots/graphql-conformance-http-016.md_merged.snap deleted file mode 100644 index 11293d5cb6..0000000000 --- a/tests/core/snapshots/graphql-conformance-http-016.md_merged.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: tests/core/spec.rs -expression: formatter ---- -schema - @server(hostname: "0.0.0.0", port: 8001, queryValidation: false) - @upstream(baseURL: "http://upstream/", httpCache: 42) { - query: Query -} - -type Query { - userGroups: [User!]! @http(path: "/users") -} - -type User { - id: ID! - name: String! -}