Skip to content

Commit

Permalink
Names of the dumped files aligned with KIM
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Jul 31, 2024
1 parent 1885dba commit 9c07871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/provisioner/internal/util/testkit/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func NewTestDataWriter(shootNamespace, directory string, enabled bool) *TestData
}

func (tdw *TestDataWriter) PersistShoot(shoot *v1beta1.Shoot) (string, error) {
fileName := fmt.Sprintf("%s-%s-shootCR.yaml", shoot.Name, tdw.shootNamespace)
fileName := fmt.Sprintf("%s-%s-shootCR.yaml", tdw.shootNamespace, shoot.Name)
filePath := path.Join(tdw.directory, fileName)

writer, err := getWriter(filePath)
Expand All @@ -48,7 +48,7 @@ func (tdw *TestDataWriter) PersistShoot(shoot *v1beta1.Shoot) (string, error) {
}

func (tdw *TestDataWriter) PersistGraphQL(mutation gqlschema.ProvisionRuntimeInput) (string, error) {
fileName := fmt.Sprintf("%s-%s-mutation.json", mutation.ClusterConfig.GardenerConfig.Name, tdw.shootNamespace)
fileName := fmt.Sprintf("%s-%s-mutation.json", tdw.shootNamespace, mutation.ClusterConfig.GardenerConfig.Name)
filePath := path.Join(tdw.directory, fileName)

writer, err := getWriter(filePath)
Expand Down

0 comments on commit 9c07871

Please sign in to comment.