...

Source file src/edge-infra.dev/pkg/sds/emergencyaccess/ea_integration/v2/seed.go

Documentation: edge-infra.dev/pkg/sds/emergencyaccess/ea_integration/v2

     1  package integrationv2
     2  
     3  import (
     4  	"time"
     5  
     6  	"edge-infra.dev/pkg/edge/api/sql/plugin"
     7  	"edge-infra.dev/pkg/edge/api/sql/utils"
     8  )
     9  
    10  var testOrgSeed = []plugin.Seed{
    11  	{
    12  		Name:     "seed-tenants.tmpl",
    13  		Priority: 0,
    14  		Data: utils.Tenants{
    15  			{
    16  				EdgeID:      "3396a52c-6a22-4049-9593-5a63b596a378",
    17  				BSLID:       "e65ac3c1-f46c-4b61-88cd-d6241e3a919d",
    18  				Description: "test description",
    19  				Name:        "testOrganization",
    20  			},
    21  		},
    22  	},
    23  	{
    24  		Name:     "seed-banners.tmpl",
    25  		Priority: 1,
    26  		Data: utils.Banners{
    27  			{
    28  				EdgeID:               "3cf00a00-d06b-40c7-859c-fbddfdeb1177",
    29  				BannerType:           "org",
    30  				ProjectID:            "d56bf564-90f7-4036-9eab-9efd435e68fe",
    31  				TenantID:             "3396a52c-6a22-4049-9593-5a63b596a378",
    32  				BSLID:                "bc1d5e11-6b1b-405b-a9c5-fec50090c31b",
    33  				Description:          "test description",
    34  				Name:                 "testBanner1",
    35  				MismatchInfo:         nil,
    36  				InfraStatus:          "PROVISIONING",
    37  				InfraStatusUpdatedAt: time.Now().Format(time.RFC3339),
    38  				BslEntityTypes:       "{}",
    39  			},
    40  		},
    41  	},
    42  	{
    43  		Name:     "seed-clusters.tmpl",
    44  		Priority: 2,
    45  		Data: utils.Clusters{
    46  			{
    47  				EdgeID:     "f983e403-b2fc-4359-83e5-53e2c993141b", // ClusterEdgeID
    48  				Registered: true,
    49  				Name:       "testStore1",
    50  				Active:     true,
    51  				ProjectID:  "d56bf564-90f7-4036-9eab-9efd435e68fe",
    52  				BannerID:   "3cf00a00-d06b-40c7-859c-fbddfdeb1177",
    53  				SiteID:     "f983e403-b2fc-4359-83e5-53e2c993141b",
    54  			},
    55  		},
    56  	},
    57  	{
    58  		Name:     "seed-terminals.tmpl",
    59  		Priority: 3,
    60  		Data: utils.Terminals{
    61  			{
    62  				TerminalID:     "55c61200-d079-4b71-9e45-f5a81b7af86d",
    63  				ClusterEdgeID:  "f983e403-b2fc-4359-83e5-53e2c993141b",
    64  				ClusterName:    "testStore1",
    65  				Hostname:       "testTerminal1",
    66  				Role:           "controlplane",
    67  				Class:          "touchpoint",
    68  				ActivationCode: "testActivationCode",
    69  			},
    70  		},
    71  	},
    72  }
    73  

View as plain text