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

Align tck tests to requirements #107

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

agosh01
Copy link
Member

@agosh01 agosh01 commented Aug 6, 2024

Update up-tck L1 and L2 test cases to aline with 1.6.0 requirements
Original test cases were creating transport with default URI but then using entirely different source URI for API call i.e. spoofing which is no no spec wise.
In parallel with this up-spec will be updated to provide clarity

@agosh01 agosh01 force-pushed the aline_tck_tests_to_requirments branch 3 times, most recently from f1d8482 to 7cf0ee2 Compare August 6, 2024 19:09
@stevenhartley stevenhartley changed the title Aline tck tests to requirements Align tck tests to requirements Aug 15, 2024
@agosh01 agosh01 force-pushed the aline_tck_tests_to_requirments branch 2 times, most recently from 05251ef to 3cd501b Compare August 15, 2024 21:53
@agosh01 agosh01 marked this pull request as ready for review August 15, 2024 21:53
@agosh01 agosh01 force-pushed the aline_tck_tests_to_requirments branch from 3cd501b to 45389ec Compare August 16, 2024 00:31
Copy link

@stevenhartley stevenhartley left a comment

Choose a reason for hiding this comment

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

please see comments

@when('sets to entity URI of "{ue}" with updated "{sub_key}" to "{sub_val}"')
def set_to_ue_uri(context: Context, ue: str, sub_key: str, sub_val: str):
ue_number = ue.replace("uE", "")
context.json_dict.update(context.ue_tracker[int(ue_number) - 1][2])

Choose a reason for hiding this comment

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

ue_number? why index 2?

Copy link
Member Author

Choose a reason for hiding this comment

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

Index 2 is the transport URI

        context.ue_tracker.append(
            (
                test_agent_name,
                context.config.userdata[f"transport{str(counter)}"],
                current_uri,
                False,
            )
        )

Copy link
Member Author

@agosh01 agosh01 Aug 16, 2024

Choose a reason for hiding this comment

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

This is a dict which keep ue information. We need to know what transport URI are assigned to each uE so we can update uri for L1 and L2 api calls.

The way this dict is setup index 2 is where uri assigned to uE resides
This function pulls that uri and updated key value provided by the feature file

@given('sets to entity URI of "{ue}" with updated "{sub_key}" to "{sub_val}"')
@when('sets to entity URI of "{ue}" with updated "{sub_key}" to "{sub_val}"')
def set_to_ue_uri(context: Context, ue: str, sub_key: str, sub_val: str):
ue_number = ue.replace("uE", "")

Choose a reason for hiding this comment

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

did you mean "ue" and not "uE"?

Copy link
Member Author

Choose a reason for hiding this comment

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

no uE as feature file input to this string variable is uE1. I just need 1.

@stevenhartley
Copy link

Also @agosh01 you need to test if spoofing the source address will generate an error per the update I made in the up-l1/README.adoc

Copy link

@stevenhartley stevenhartley left a comment

Choose a reason for hiding this comment

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

please see comments

@agosh01
Copy link
Member Author

agosh01 commented Aug 16, 2024

Also @agosh01 you need to test if spoofing the source address will generate an error per the update I made in the up-l1/README.adoc

It will not as CPP implementation won't check for it. Have that been added to java or python ?

I make another task to add test for spoofing or you would like that to be covered in this PR ?

@gregmedd
Copy link
Contributor

Also @agosh01 you need to test if spoofing the source address will generate an error per the update I made in the up-l1/README.adoc

@stevenhartley - Those changes are after the alpha.3 tag in up-spec. I thought we were using the alpha.3 spec for alpha.4 code. Is that incorrect? It would be hard for us to accommodate changes in the spec this close to alpha.4, but once an alpha.4 spec is tagged we could easily implement those changes in the alpha.5 code.

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.

3 participants