Skip to content

Comments

ci: run tests#113

Open
ThePrez wants to merge 1 commit intomainfrom
ci/testsinpr
Open

ci: run tests#113
ThePrez wants to merge 1 commit intomainfrom
ci/testsinpr

Conversation

@ThePrez
Copy link
Member

@ThePrez ThePrez commented Aug 1, 2023

No description provided.

@ThePrez ThePrez requested a review from jeber-ibm August 1, 2023 15:19
Copy link
Member

@jeber-ibm jeber-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we run the test as the following? We'll need to add a profile with SECOFR authority.

java -cp staging/jt400-${{ env.project_version }}-java8.jar: test.jar test.RegressionTest -tc JDBC -tc UserSpace -tc DataArea -tc Conv -tc CommandCall -system ${{ secrets.IBMI_TEST_SYS }} -uid ${{ secrets.IBMI_TEST_USER }} -pwd ${{ secrets.IBMI_TEST_PW }} -pwrSys ${{ ${{ secrets.IBMI_PWR_USER }},secrets.IBMI_PWR_PWD }}

Is there a way to save the output of the run?

Can we check the output for the string --

@ThePrez
Copy link
Member Author

ThePrez commented Aug 1, 2023

Is there a way to save the output of the run?
Will do!

Can we check the output for the string --

Sure. Does that mean failure or success?

@jeber-ibm jeber-ibm self-requested a review August 1, 2023 15:42
Signed-off-by: John Eberhard <102746950+jeber-ibm@users.noreply.github.com>
Signed-off-by: Jesse Gorzinski <17914061+ThePrez@users.noreply.github.com>
@ThePrez
Copy link
Member Author

ThePrez commented Aug 7, 2023

Squashed some commits, now getting a new failure

Cleanup failed:
com.ibm.as400.access.ObjectDoesNotExistException: /QSYS.LIB/USTEST.LIB/USWRITE.USRSPC: Object does not exist.
	at com.ibm.as400.access.UserSpaceImplRemote.buildException(UserSpaceImplRemote.java:62)
	at com.ibm.as400.access.UserSpaceImplRemote.delete(UserSpaceImplRemote.java:188)
	at com.ibm.as400.access.UserSpace.delete(UserSpace.java:403)
	at test.UserSpacePgmCallTestcase.deleteUserSpace(UserSpacePgmCallTestcase.java:73)
	at test.UserSpacePgmCallTestcase.Var026(UserSpacePgmCallTestcase.java:1069)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at test.Testcase.invokeVariation(Testcase.java:1720)
	at test.Testcase.run(Testcase.java:2267)
	at test.TestDriver.run(TestDriver.java:868)
	at test.TestDriver.start(TestDriver.java:1113)
	at test.RegressionTest.main(RegressionTest.java:82)

@jeber-ibm
Copy link
Member

Looks like the call to create the user space is silently failing.

    aUserSpace.create(11000, true, " ", (byte)0x00, "create UserSpace", "*ALL");

That call should have created the user space. I wonder if there is an authority problem with the profile running the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants