From 54a2645dc50d3a31698b3b33c0241e1c8002dd7c Mon Sep 17 00:00:00 2001 From: hopeyen Date: Tue, 17 Dec 2024 19:07:20 -0800 Subject: [PATCH] fix: integration test v2 payment table deploy --- inabox/deploy/localstack.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/inabox/deploy/localstack.go b/inabox/deploy/localstack.go index b72e69d376..32cd320177 100644 --- a/inabox/deploy/localstack.go +++ b/inabox/deploy/localstack.go @@ -12,6 +12,7 @@ import ( "github.com/Layr-Labs/eigenda/common/aws" "github.com/Layr-Labs/eigenda/common/store" + "github.com/Layr-Labs/eigenda/core/meterer" "github.com/Layr-Labs/eigenda/disperser/common/blobstore" blobstorev2 "github.com/Layr-Labs/eigenda/disperser/common/v2/blobstore" "github.com/ory/dockertest/v3" @@ -142,6 +143,24 @@ func DeployResources( } } + v2PaymentName := "e2e_v2_" + // create payment related tables + err = meterer.CreateReservationTable(cfg, v2PaymentName+"reservation") + if err != nil { + fmt.Println("err", err) + return err + } + err = meterer.CreateOnDemandTable(cfg, v2PaymentName+"ondemand") + if err != nil { + fmt.Println("err", err) + return err + } + err = meterer.CreateGlobalReservationTable(cfg, v2PaymentName+"global_reservation") + if err != nil { + fmt.Println("err", err) + return err + } + return err }