Skip to content

Fix spring tests emulator#35404

Merged
kushagraThapar merged 9 commits into
Azure:mainfrom
kushagraThapar:fix_spring_tests_emulator
Jun 9, 2023
Merged

Fix spring tests emulator#35404
kushagraThapar merged 9 commits into
Azure:mainfrom
kushagraThapar:fix_spring_tests_emulator

Conversation

@kushagraThapar

Copy link
Copy Markdown
Member
  • Fix spring tests emulator

@github-actions github-actions Bot added the Cosmos label Jun 9, 2023
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

validateItemResponse(properties, itemResponse);

properties = getDocumentDefinition(UUID.randomUUID().toString());
logger.info("Testing log");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

keep or remove?

assertNotNull(throughput);
assertEquals(Integer.parseInt(TestConstants.AUTOSCALE_MAX_THROUGHPUT),
throughput.getProperties().getAutoscaleMaxThroughput());
collectionManager.deleteContainer(autoScaleSampleInfo);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should this be in a try finally block - just in case somehow we got some failures

import java.util.Objects;

@Container()
@Container(ru = TestConstants.DEFAULT_MINIMUM_RU)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why we will have to specifically configure the RU here (default is 400 I think )

@xinlian12 xinlian12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks

import java.util.Objects;

@Container()
@Container(ru = TestConstants.DEFAULT_MINIMUM_RU)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this should be needed, the default is already 400 ru's isn't it?

import java.util.Objects;

@Container()
@Container(ru = TestConstants.DEFAULT_MINIMUM_RU)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this should be needed, the default is already 400 ru's isn't it?

import java.util.Objects;

@Container()
@Container(ru = TestConstants.DEFAULT_MINIMUM_RU)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this should be needed, the default is already 400 ru's isn't it?

@kushagraThapar kushagraThapar merged commit ef4a1fd into Azure:main Jun 9, 2023
trande4884 pushed a commit that referenced this pull request Jun 12, 2023
* Updated release versions to 4.46.0 for azure-cosmos and 4.19.0 for spark connector

* Updated spark readme files

* Updated quick start files

* Fixed spring tests for emulator

* Fix imports

* Added a dummy commit to run Java cosmos CI
trande4884 pushed a commit that referenced this pull request Jun 13, 2023
* Updated release versions to 4.46.0 for azure-cosmos and 4.19.0 for spark connector

* Updated spark readme files

* Updated quick start files

* Fixed spring tests for emulator

* Fix imports

* Added a dummy commit to run Java cosmos CI
trande4884 pushed a commit that referenced this pull request Jun 20, 2023
* Updated release versions to 4.46.0 for azure-cosmos and 4.19.0 for spark connector

* Updated spark readme files

* Updated quick start files

* Fixed spring tests for emulator

* Fix imports

* Added a dummy commit to run Java cosmos CI
trande4884 added a commit that referenced this pull request Jun 21, 2023
* Updated spring CI (#35453)

* Updated spring CI

* Update ci.yml

Attempting to fix CI run with stages.

* Update ci.yml

Attempting to fix CI issues.

* Update ci.yml

Reverting attempt.

* Update ci.yml

Reverting changes to spring/si.yml

* Update ci.yml

Reverting syntax.

* Create ci.cosmos.yml

Adding new yaml for cosmos emulator.

* Update ci.cosmos.yml

Removing un-needed code.

* Update ci.cosmos.yml

Adding artifacts.

* Update ci.cosmos.yml

Working on getting the new pipeline running.

* Update ci.cosmos.yml

Small change to restart pipeline

* Update ci.cosmos.yml

Fixing syntax.

* Update ci.cosmos.yml

Removing artifact.

* Update ci.cosmos.yml

Adding filter to only run spring tests.

* Update ci.cosmos.yml

Fixing syntax.

* Update ci.cosmos.yml

Fixing matrix filter.

* Update ci.cosmos.yml

Working on matrix filter.

* Update ci.cosmos.yml

Working on matrix filters.

* Updating ci logic.

Working on fixing MatrixFilters.

* Update cosmos-sdk-client.yml

Fixing matrix filter.

* Update ci.cosmos.yml

Fixing CI issue.

* Update ci.cosmos.yml

Changing to only run for azure-spring-data-cosmos

---------

Co-authored-by: Trevor Anderson <63077034+trande4884@users.noreply.github.com>
Co-authored-by: Trevor Anderson <trande@microsoft.com>

* Update ci.cosmos.yml

Adding Java Version Matrix Filter.

* Update cosmos-sdk-client.yml

Fixing java 1.8 and 1.11 issues.

* Spring ci fixing matrix filter (#35485)

* Merging

* Updating yaml filters to have a new param to support dynamic filtering in SB3.

* Fix spring tests emulator (#35404)

* Updated release versions to 4.46.0 for azure-cosmos and 4.19.0 for spark connector

* Updated spark readme files

* Updated quick start files

* Fixed spring tests for emulator

* Fix imports

* Added a dummy commit to run Java cosmos CI

* change to log4j-slf4j2-impl to run the ci pipelines

---------

Co-authored-by: Kushagra Thapar <kuthapar@microsoft.com>
Co-authored-by: Xiaolu Dai <xiada@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-spring All azure-spring related issues Cosmos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants