Skip to content

Commit

Permalink
fix: add artifact ephemeral e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Tianchu Zhao <[email protected]>
  • Loading branch information
tczhao committed Feb 8, 2024
1 parent 5dfba8d commit d0a7df1
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions test/e2e/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,10 @@ spec:
WaitForWorkflow(fixtures.ToBeSucceeded)
}

func TestArtifactsSuite(t *testing.T) {
suite.Run(t, new(ArtifactsSuite))
}

func (s *ArtifactsSuite) TestArtifactEphemeralVolume() {
s.Given().
Workflow(`apiVersion: argoproj.io/v1alpha1
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: artifact-ephemeral-
Expand All @@ -727,29 +724,28 @@ spec:
inputs:
artifacts:
- name: artifact-ephemeral
path: /tmp/input/input.txt
raw:
data: abc
path: /tmp/input/input.txt
raw:
data: abc
container:
image: argoproj/argosay:v2
command: [sh, -c]
args: ["ls -l"]
workingDir: /tmp/input
volumeMounts:
- name: wf-workdir
mountPath: /tmp
volumes:
- name: wf-workdir
ephemeral:
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Mi
volumeMounts:
- name: wf-workdir
mountPath: /tmp
volumes:
- name: wf-workdir
ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Mi
`).
When().
SubmitWorkflow().
Expand Down

0 comments on commit d0a7df1

Please sign in to comment.