diff options
Diffstat (limited to 'spec/requests/api/graphql/project/terraform/states_spec.rb')
-rw-r--r-- | spec/requests/api/graphql/project/terraform/states_spec.rb | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/spec/requests/api/graphql/project/terraform/states_spec.rb b/spec/requests/api/graphql/project/terraform/states_spec.rb index 25fc07ef509..7a789a5d481 100644 --- a/spec/requests/api/graphql/project/terraform/states_spec.rb +++ b/spec/requests/api/graphql/project/terraform/states_spec.rb @@ -11,39 +11,42 @@ RSpec.describe 'query terraform states', feature_category: :infrastructure_as_co let_it_be(:latest_version) { terraform_state.latest_version } let(:query) do - graphql_query_for(:project, { fullPath: project.full_path }, - %{ - terraformStates { - count - nodes { - id - name - lockedAt - createdAt - updatedAt - - latestVersion { + graphql_query_for( + :project, + { fullPath: project.full_path }, + %{ + terraformStates { + count + nodes { id - downloadPath - serial + name + lockedAt createdAt updatedAt - createdByUser { + latestVersion { id - } + downloadPath + serial + createdAt + updatedAt - job { - name + createdByUser { + id + } + + job { + name + } } - } - lockedByUser { - id + lockedByUser { + id + } } } } - }) + ) end let(:current_user) { project.creator } |