spec/gitlab_shell_custom_git_receive_pack_spec.rb [54:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              "gl_username" =>   "custom",
              "primary_repo" =>  "https://repo/path"
            },
          },
          "gl_console_messages" => ["console", "message"]
        }
        res.body = body.to_json
      else
        res.status = 403
      end
    end
  end

  describe 'dialog for performing a custom action' do
    context 'when API calls perform successfully' do
      let(:remote_blank_line) { "remote: \n" }
      def verify_successful_call!(cmd)
        Open3.popen3(env, cmd) do |stdin, stdout, stderr|
          expect(stderr.gets).to eq(remote_blank_line)
          expect(stderr.gets).to eq("remote: console\n")
          expect(stderr.gets).to eq("remote: message\n")
          expect(stderr.gets).to eq(remote_blank_line)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/gitlab_shell_custom_git_upload_pack_spec.rb [54:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              "gl_username" =>   "custom",
              "primary_repo" =>  "https://repo/path"
            },
          },
          "gl_console_messages" => ["console", "message"]
        }
        res.body = body.to_json
      else
        res.status = 403
      end
    end
  end

  describe 'dialog for performing a custom action' do
    context 'when API calls perform successfully' do
      let(:remote_blank_line) { "remote: \n" }
      def verify_successful_call!(cmd)
        Open3.popen3(env, cmd) do |stdin, stdout, stderr|
          expect(stderr.gets).to eq(remote_blank_line)
          expect(stderr.gets).to eq("remote: console\n")
          expect(stderr.gets).to eq("remote: message\n")
          expect(stderr.gets).to eq(remote_blank_line)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



