mwinteringham / restful-booker-platform Goto Github PK
View Code? Open in Web Editor NEWA SaaS platform used for various test automation training
Home Page: http://www.automationintesting.com
License: GNU General Public License v3.0
A SaaS platform used for various test automation training
Home Page: http://www.automationintesting.com
License: GNU General Public License v3.0
Multiple issues raised show that IP range for CORS is too restrictive and those not running off of Localhost have run into issues running the app.
Add conditioning around
The aim is for people to create pipelines that are useful for forked repos and PRs without needing every tool set up.
As a guest of the B&B
I want to be able to view details on the B&B
So I can learn about the rooms offered and more about the B&B
Features:
As a B&B owner
I want to have to provide a username and password
So that I can prevent unauthorised access to my bookings
Features:
Hi,
can you please provide me the correct username and password to login?
I used below details:
username: admin
password: password
Hi,
I've bee trying to use your platform for API Testing (exercise testing with Postman) and there are moments when this is not working.
When I do docker-compose build or docker compose up, I get this error
Can you help me with this? I'm a test apprentice at the test lab 2007 - eurostar and I'd like to prepare some API tests n your environment.
thank you
As a B&B owner
I want the ability to see available dates for a room
So I can quickly select see which dates are available for booking
Features:
End-to-end tests are needed to ensure paths are all correct between services and UI.
Running the shell script will fail if the system's timezone is set to be outside the UK (eg, if you're from Ecuador)
The script will finish after erroring out, informing that the server's been successfully raised, but the app will be unavailable
Currently, Hotel and Booking data is created in the code, which is a bit ugly. We should move the SQL out into a SQL file.
Steps to reproduce:
Actual result:
With the update, first name and family name are deleted. Price is set to 0.
Expected result:
The values should not be updated since the user did not change them.
As a B&B owner
I want to be able to see reports in the room pages
And I want to be able to see all rooms grouped by dates in the report page
So I can get visibility of both the occupation of an individual room and all rooms
Features:
Environment:
OS: Mac OSX Mojave
JVM: Java 8
Node: 8.14.0
JVM_HOME: Set
I tried running the tests two different ways.
1.) Via run_locally.sh
2.) Via mvn clean test
Expected Results:
Tests Pass and I can deploy the application
Actual Results:
This is the log when running with -X
flag.
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] BuildReportTest.testGettingBookingsSearchResults:49 » Failed Approval
Appro...
[INFO]
[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for restful-booker-platform 1.0-SNAPSHOT:
[INFO]
[INFO] restful-booker-platform-auth ....................... SUCCESS [01:39 min]
[INFO] restful-booker-platform-booking .................... SUCCESS [ 34.396 s]
[INFO] restful-booker-platform-room ....................... SUCCESS [01:03 min]
[INFO] restful-booker-platform-search ..................... SUCCESS [ 0.842 s]
[INFO] restful-booker-platform-report ..................... FAILURE [ 4.139 s]
[INFO] restful-booker-platform-ui ......................... SKIPPED
[INFO] restful-booker-platform ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:22 min
[INFO] Finished at: 2018-12-13T15:42:37-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project restful-booker-platform-report: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/silne30/Desktop/selenium-article/restful-booker-platform/report/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project restful-booker-platform-report: There are test failures.
Please refer to /Users/silne30/Desktop/selenium-article/restful-booker-platform/report/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Please refer to /Users/silne30/Desktop/selenium-article/restful-booker-platform/report/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
at org.apache.maven.plugin.surefire.SurefireHelper.throwException (SurefireHelper.java:240)
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:112)
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (SurefirePlugin.java:364)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:1052)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:868)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
AiT want to offer a place where students can practise test automation techniques. So we're going to create a continuously deployable environment of RBP for students to practise against.
At the moment the UI loads data in a very ugly way with it rendering empty components before filling them with data. It appears React "Suspense" might resolve that issue:
https://medium.com/@baphemot/understanding-react-suspense-1c73b4b0b1e6
https://gist.github.com/kentcdodds/2510249a3fc5c9dce82ccee80396fc6a
At the moment validation for bookings live both in the controller and the DB classes. We could do with making this cleaner and having a class that can be responsible for validation and simply spew out validation errors for the controller to handle.
When you have an booking in a deleted room, when located via search the app fails to load. A GET to room/[room_id]
returns a 500. An error of TypeError: Cannot read property 'toString' of undefined
is thrown.
To reproduce:
Result:
The above errors are thrown and the app fails to render.
Expected Result:
Either deleting a room should destroy all bookings, or bookings without rooms should error when accessed.
We want to be able to track users when they interact with the application using monitoring techniques
Turn the room type into a dropdown, provides more WebDriver examples, and potentially more JS interaction idea.
Some details are missing around how to use Jest.
As a B&B owner
I want to see how much each room is making
So I can quickly determine which is the most profitable room
Features:
Turns out /validate is called when the home page is loaded, which is at best pointless and at worse misleading.
Currently if I provide a single number char for either of first name and last name, the system accepts as valid name.
It should validate at least that the name should not start with numbers and should be at least more than 1 character.
Consider moving production from h2 to postgres.
As a B&B owner
I want to be able to search for bookings
So that I can easily retrieve specific bookings
Features:
Given I have a url with RBP hosted
When I amend /actuator/logfile
Then I have unauthenticated access to a logfile
When I provide checkout date which is before checkin date, it will accept me happily.
But I expected the system to validate the the checkout date always should be greater than or equal to the check in date.
I want to add ConsoleNotifier(true)
to Wiremock rules so they are more verbose and can tell me about issues going forward.
At the moment when a specific Room is requested Room calls Booking to get specific Bookings related to the Room. Room then returns a response with Room details and related Bookings.
We should decouple this and have the UI be responsible for making GETs to Room and then Bookings. It will clean up the models for both APIs and make report cleaner.
I have cloned the project and am able to build and run Compose Build and Up commands successfully. When I try to access with below URL
http://localhost:3000
http://172.18.0.3:3000
It says "This site can’t be reached localhost refused to connect.
Search Google for localhost 9000
ERR_CONNECTION_REFUSED"
Not able to access the Application.
As a guest of the B&B
I want to be able to book a specific room on specific dates
So I can book online without having to contact the B&B directly
Features:
https://reactjs.org/docs/code-splitting.html gives details on how to use lazy loading based on routing
As a B&B owner
I want to be able to manage multiple rooms and their bookings
So that I can track bookings across multiple rooms
Features include:
As a B&B owner
I want to be able to store bookings for a single room
So I can track bookings for the room
Features include:
I could not login to the site, what use name and password should I use?
I used admin & password, admin without password. Neither worked.
At the moment it's proving difficult to get the batch script to recognise if an API key for Applitools has been set and allow the visual checks to be run if the key exists. It's resulted in run_locally.cmd failing because it doesn't check the env var properly and triggers the visual checks with no API key set.
Batch scripting sucks...
There is no uniqueness check on room numbers, and as a result rooms can be created with the same room number.
To Reproduce:
Result:
Room created
Expected Result:
Should error and enforce room# uniqueness
Please add README for the branding API section.
Thanks!
As a B&B owner
I want to be able to manage user access
So that I can allow different levels of access to multiple users
Features:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.