// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.

//go:build !integration
// +build !integration

package gcppubsub

import (
	"testing"

	"github.com/elastic/beats/v7/filebeat/input/inputtest"
	"github.com/elastic/beats/v7/libbeat/common"
)

func TestNewInputDone(t *testing.T) {
	config := common.MapStr{
		"project_id":        "some-project",
		"topic":             "sometopic",
		"subscription.name": "subscription",

		// Provide some credentials to avoid trying to query GCP for them,
		// what creates HTTP-related goroutines.
		"credentials_json": "{}",
	}
	inputtest.AssertNotStartedInputCanBeDone(t, NewInput, &config)
}
