<commit_before>package testing

import (
	"testing"
)

var infoParams = [][]string {
	//{}, // FIXME: Doesn't work
	//{"*"}, // FIXME: Doesn't work
	{"host", "vm"}, // TODO: choose something more meaningful
}

func TestDatastore(t *testing.T) {
	initDriverAcceptanceTest(t)

	d := NewTestDriver(t)
	ds, err := d.FindDatastore(DefaultDatastore)
	if err != nil {
		t.Fatalf("`FindDatatore` can't find default datastore '%v'. Error: %v",
			DefaultDatastore, err)
	}
	for _, params := range infoParams {
		_, err := ds.Info(params...)
		if err != nil {
			t.Errorf("Cannot read datastore properties with parameters %v: %v",
				params, err)
		}
	}
	// TODO: add more checks
}<commit_msg>Simplify datastore test<commit_after>package testing

import (
	"testing"
	"github.com/vmware/govmomi/vim25/mo"
	"github.com/jetbrains-infra/packer-builder-vsphere/driver"
)

func TestDatastoreAcc(t *testing.T) {
	initDriverAcceptanceTest(t)

	d := NewTestDriver(t)
	ds, err := d.FindDatastore(DefaultDatastore)
	if err != nil {
		t.Fatalf("Cannot find default datastore '%v': %v", DefaultDatastore, err)
	}
	CheckDatastoreName(t, ds, DefaultDatastore)
}
{'fraction_non_alphanumeric': 0.1546572934973638, 'fraction_numerical': 0.0017574692442882249, 'mean_word_length': 4.297674418604651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7571781', 'n_tokens_mistral': 438, 'n_tokens_neox': 415, 'n_words': 96}