...
1 package integration_test
2
3 import (
4 "context"
5
6 "github.com/google/uuid"
7
8 "edge-infra.dev/pkg/edge/api/middleware"
9 "edge-infra.dev/test/framework/integration"
10 )
11
12
13 func (s *Suite) TestTerminalBootstrapYamlDiskUsePart() {
14 integration.SkipIf(s.Framework)
15 ctx := s.ctx
16 clusterEdgeID := "afd353b8-a004-466c-a577-322dc35a27af"
17 ctx = context.WithValue(ctx, middleware.ClusterEdgeIDCtxKey, clusterEdgeID)
18 ctx = context.WithValue(ctx, middleware.TerminalIDCtxKey, "6246c60b-9c8b-4510-b3bb-fb8fa1f9fbad")
19 err := s.Resolver.RegistrationService.UploadClusterCaHash(ctx, clusterEdgeID, uuid.NewString())
20 s.NoErrorf(err, "error uploading dummy clusterCAHash")
21
22
23
24
25
26
27 }
28
View as plain text