Skip to content
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

1.0 testing scenarios #110

Closed
ftrotter opened this issue Dec 8, 2019 · 13 comments
Closed

1.0 testing scenarios #110

ftrotter opened this issue Dec 8, 2019 · 13 comments

Comments

@ftrotter
Copy link
Contributor

ftrotter commented Dec 8, 2019

It seems like the major refactoring process has worked for the 1.0 release.. leaving only various minor bugs around. However, the installation process still leaves a lot to be desired.. and can get to some wonky states... For that reason, lets be sure to test in the following basic deployment scenarios:

  • A new cloud server, with no supporting databases (i.e. _zermelo_cache or _zermelo_config)
  • uninstall on the new installation.
  • reinstall on the new installation.
  • create a second laravel virtual host on the same server..., and verify that the first instance is not trampled...
  • uninstall the second installation...
  • reinstall the second installation...
  • confirm that it handles the state when _zermelo_cache and _zermelo_config exist... but that the .env user/password do not have access..
  • confirm that removing DB access to _zermelo_cache and _zermelo_config in a previously working installation work as expected..
  • Ensure that when composer require for zermelo has been run... but the ./artisan zermelo:install command(s) have not been read, that the default report does not result in a gooblygook error but instead says "Hey you need to install the Zermelo UX files..."

After the "installation testing" has been completed, each test report in the ZTest project should be run... and pass...

  • Setup some kind of authentication middle ware for the installation of Zeremelo using the MIDDLEWARE configuration variable inside /config/zermelo.php and make sure it works...

And then I think we are ready for 1.0
-FT

@ftrotter
Copy link
Contributor Author

ftrotter commented Dec 8, 2019

done.

@ftrotter
Copy link
Contributor Author

ftrotter commented Dec 8, 2019

closed wrong issue..

@kchapple
Copy link
Contributor

@ftrotter This line breaks installer because there's no column 'wrench'

Is this supposed to be wrench_label you want to impose a uinique constraint?

@kchapple
Copy link
Contributor

@ftrotter You make a couple references to uninstalling Zermelo instances. What "uninstall" process are you using? Do you just mean delete the Laravel app code?

@ftrotter
Copy link
Contributor Author

I mean removing the zermelo install and other zermelo projects from composer.json and doing a composer update.

@kchapple
Copy link
Contributor

kchapple commented Dec 16, 2019 via email

@seanccsmith
Copy link

Attempting to make sure that we get a nice, clear error message when composer require has been run but before zermelo:install has been executed and an attempt is made to access a report through the browser. After a thorough uninstall of zermelo, and running composer require, I receive the following error on attempting to access a report in Lore Commander:

Screen Shot 2020-05-11 at 12 29 57 PM

Not super nice. Is this due to a bug in the error catcher, or rather due to over-zealous uninstall on my part?

@seanccsmith
Copy link

Created separate issues for bullet points 9 and 10, as these have spun into their own problems. The last point will be covered under issue #50.

@seanccsmith
Copy link

seanccsmith commented May 12, 2020

I’m confused as well about the 7th and 8th bullet points here. 7 is asking to confirm that when the db credentials specified in the .env do not have access to the cache and config tables in the db, the state is handled correctly. similarly, 8 asks to remove access from a previously working installation and to confirm that it works “as expected”.

I changed the user name in the .env to something that doesn’t exist in the users list, and got this error:

Screen Shot 2020-05-11 at 3 37 24 PM

am I understanding correctly that this is the correct error, and thus can check off both the 7th and 8th points?

If so we're ready to close this issue.

@seanccsmith
Copy link

Remaining problems will be evaluated in their own threads.

@ftrotter
Copy link
Contributor Author

We know that there are several errors that are going to regularly occur every time some new user installs zermelo. One of them is that access to _zermelo_config and _zermelo_cache is not enabled. Sometimes people will get this error from the command line (I think the install process is pretty good at this point at making that smooth) but sometimes, it will happen because they go to a website. I would like to have Zermelo be smart enough to check that database access to these two tables exist, and "catch" this error and display a single sentence on screen.

"The (insert mysqlusername here) mysql user does not have permissions to the (databaes for _zermelo_cache and _zermelo_config gotten from the config file). You need to enable this access before moving forward."

Literally I want that sentence on the screen and nothing else.

I do not want to have someone "figure out" what the most common configuration errors are when then install the system. The system should be smart enough to know "I am not installed yet".

Sean, you should spend a little time looking at the php notions of try/catch:
https://stackify.com/php-try-catch-php-exception-tutorial/

Regards,
-FT

@seanccsmith seanccsmith reopened this May 12, 2020
@seanccsmith
Copy link

Gotcha, this makes sense now.

@seanccsmith
Copy link

Bullet points 7, 8, and 9 have a functional fix, and have been moved to their own issue for completion: #119

The ZTest project has been deprecated. Middleware authentication also has its own issue: #50

Everything else is QA'd and ready for rollout.

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

No branches or pull requests

3 participants