package handler

import (
	"context"
	"fmt"
	"testing"
)

func TestAwsMetering(t *testing.T) {
	// For test env, has no config file and aws session. so skip this test.
	t.Skip()
	handler, err := GetAccountHandler().GetAccountProvider(AWSAccountProvider)
	if err != nil {
		t.Fatal(err)
	}
	processor := func(ctx context.Context, input SubscribeChange) (bool, error) {
		fmt.Println(input)
		return true, nil
	}
	ctx := context.Background()

	err = handler.ProcessTenantSubscribeChange(ctx, processor)

	if err != nil {
		t.Fatal(err)
	}
}
