Skip to content

Commit bcc2c2f

Browse files
alicefrHarshwardhanPatil07
authored andcommitted
e2e: remove unused WithMemory and WithTargetImgRef options
Assisted-by: AI Signed-off-by: Alice Frosi <afrosi@redhat.com>
1 parent f8374f1 commit bcc2c2f

1 file changed

Lines changed: 3 additions & 21 deletions

File tree

‎test/e2e/e2eutil/env.go‎

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ type Env struct {
5454
nodes []string
5555

5656
// nodeImageDigest is the manifest digest of the bootc image seeded
57-
// into the bink registry (e.g. "sha256:abc123..."). Empty when not seeded.
57+
// into the registry (e.g. "sha256:abc123..."). Empty when not seeded.
5858
nodeImageDigest string
5959

60-
// nodeImageRegistry is the in-cluster registry path for the seeded node image
60+
// nodeImageRegistry is the registry path for the seeded node image
6161
// (e.g. "registry.cluster.local:5000/node"). Empty when not seeded.
6262
nodeImageRegistry string
6363

@@ -169,16 +169,7 @@ func New(t *testing.T) *Env {
169169
type NodeOption func(*nodeConfig)
170170

171171
type nodeConfig struct {
172-
memory int
173-
labels map[string]string
174-
targetImgRef string
175-
}
176-
177-
// WithMemory sets the VM memory in MB for the node.
178-
func WithMemory(mb int) NodeOption {
179-
return func(c *nodeConfig) {
180-
c.memory = mb
181-
}
172+
labels map[string]string
182173
}
183174

184175
// WithLabel adds a label to the provisioned node. This is in addition
@@ -192,15 +183,6 @@ func WithLabel(key, value string) NodeOption {
192183
}
193184
}
194185

195-
// WithTargetImgRef sets the target image reference for the node,
196-
// passed as --target-imgref to bink node add. Overrides the automatic
197-
// default that AddNode applies when registry metadata is available.
198-
func WithTargetImgRef(ref string) NodeOption {
199-
return func(c *nodeConfig) {
200-
c.targetImgRef = ref
201-
}
202-
}
203-
204186
// AddNode provisions a worker node via the configured provider, waits
205187
// for it to be Ready, and returns the node name. The node is labeled
206188
// with LabelE2ETest (and any extra labels from WithLabel).

0 commit comments

Comments
 (0)