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

Add mid-layer system tests for datamover put with large/empty file, n… #76

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

Chenliang-Eric-Li
Copy link

…fs_cluster and client.

@Chenliang-Eric-Li Chenliang-Eric-Li requested a review from a team as a code owner September 13, 2023 14:09
Copy link
Contributor

@nsarras nsarras left a comment

Choose a reason for hiding this comment

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

lets also add type hinting and docstrings to all modules in conftest and classes

def test_client_put(self, get_client):
get_client.operation = "PUT"
get_client.make_client_app_command()
get_client.start()
Copy link
Contributor

Choose a reason for hiding this comment

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

we should add verification step at the end of these tests to ensure client was able to successfully perform desired operation

Copy link
Author

Choose a reason for hiding this comment

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

Verification added.

Copy link
Author

Choose a reason for hiding this comment

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

And could you please explain the type hinting and docstrings? Or is there any example I can refer to?

Copy link
Contributor

Choose a reason for hiding this comment

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

it ok you can research and add to next PR. Type hinting and docstring in python are a way to let the user know what each function does and what are the input / return types of the datastructure

def test_put_large_file(self, get_master, reset_master_obj, setup_data_dir, setup_large_file, get_pytest_configs):
print("Testing PUT operation with large file")
get_master.operation = "PUT"
get_master.fs_config['nfs'] = {'127.0.0.1': get_pytest_configs['large_file_path']}
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use localhost instead of ip addr?

Copy link
Author

Choose a reason for hiding this comment

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

Yes of course. Changed.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link
Contributor

@nsarras nsarras left a comment

Choose a reason for hiding this comment

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

ready to merge

@nsarras nsarras merged commit 18a37b6 into master Oct 12, 2023
7 checks passed
@nsarras nsarras deleted the system_tests_add_mid_layer_tests branch October 12, 2023 03:02
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