mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Use GetProjectRoot
to create secret
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package e2e
|
package e2e
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -61,9 +60,10 @@ var _ = Describe("Onepassword Operator e2e", Ordered, func() {
|
|||||||
func runCommonTestCases() {
|
func runCommonTestCases() {
|
||||||
It("Should create secret from manifest file", func() {
|
It("Should create secret from manifest file", func() {
|
||||||
By("Creating secret")
|
By("Creating secret")
|
||||||
wd, err := os.Getwd()
|
root, err := system.GetProjectRoot()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
yamlPath := filepath.Join(wd, "manifests", "secret.yaml")
|
|
||||||
|
yamlPath := filepath.Join(root, "test", "e2e", "manifests", "secret.yaml")
|
||||||
_, err = system.Run("kubectl", "apply", "-f", yamlPath)
|
_, err = system.Run("kubectl", "apply", "-f", yamlPath)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user