-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Error: failed to build test binary: (failed to exec []string{"go", "test", "./test/e2e//..." is faced when the impl is exactly equals the example #1830
Comments
c/c @AlexNPavel |
I already tried |
Hello. It looks like one issue you are having is that your resource uses a cluster role. I believe that you currently have that configured via the For why the test |
I am facing similar issues... any breakthrough? |
Hi @AlexNPavel, In my project Following the error.
Also, note that I am NOT able to see any error when I run |
Hi @AlexNPavel, I could confirm that it is a bug since the example is not working with the operator-sdk version "v0.10.0-28-g8f1d0a04" (master branch) too. Note that the same error is faced. Could you please help us with by flagging it as a bug for the test feature of the framework which needs to be addressed?
|
@camilamacedo86 Can you try with the If your issue has to do with the image not existing in the cluster, there are 2 ways to fix it.
I believe there is also a way to build the image or push it to the OCP cluster's internal image registry, but I am unfamiliar with OCP specific features, so I am unsure how to do that. Another important thing to note is that the test will fail if any of the resources already exist in the cluster. The reason that your Postgres test failed is because the cluster role for the operator already existed. |
HI @AlexNPavel, Thank you for your reply.
Following the tests performed. With
|
@camilamacedo86 It looks like the reason that the We mention the use of I will make a PR to update the sample to use the correct funciton and verify that |
Hi @AlexNPavel, Really tks for the help and the fast reply. Note that the example is not using the latest version of the SKD. See here the Also, in its logs we can check that it using the version 0.6.0 |
@camilamacedo86 There is an open issue for that in the samples repo, but nobody has been working on it it seems: operator-framework/operator-sdk-samples#68. We need to get somebody to work on that. |
HI @AlexNPavel, |
@camilamacedo86 This issue is closed but I'm still facing a similar problem in running tests(in my project and in sample memcached-operator too). Here is my output of
|
Could you raise a new issue @pratikjagrut for we are able to analyse it specific scenario? |
Bug Report
Bug
What did you do?
Following the e2e test doc guide and impl exactly like the example suggested here
What did you expect to see?
The e2e test work with success.
What did you see instead? Under which circumstances?
Please feel free to check its impl and test it. See the code impl here: https://github.com/dev4devs-com/postgresql-operator/tree/master/test/e2e
Environment
operator-sdk version: v0.8.0-146-g4ca881a9, commit: 4ca881a (master)
go version go1.12.7 darwin/amd64
Kubernetes cluster kind: OCP
Are you writing your operator in ansible, helm, or go? Go
Possible Solution
The text was updated successfully, but these errors were encountered: